gilf
Name: gilf
Score: 1,061.07
Last Seen: 12 days, 3 hours, 11 minutes ago
Member Since: 6 February, 2009
DotNetShoutout
atom rss
6
shouts

Performing Queries Against Active Directory Domain Services - Gil Fink on .Net

published 11 days, 22 hours, 14 minutes ago posted by gilfgilf 13 days, 18 minutes ago
Thursday, March 04, 2010 11:31:14 AM GMT Wednesday, March 03, 2010 9:27:49 AM GMT
One of the missions that needed my attention lately was to check whether a user exists in an enterprise Active Directory. The post will show exactly how to perform such a query. (more)
category: Foundation | clicked: 31 | comment | | source: blogs.microsoft.co.il
tags: Active Directory, C#
5
shouts

Discover which Control Raised a PostBack - Gil Fink on .Net

posted by gilfgilf 15 days, 2 hours, 20 minutes ago
Monday, March 01, 2010 7:25:03 AM GMT
Yesterday I needed a solution for an annoying problem. I have some buttons on a ASP.NET web form and I need to know which button raised the postback not in the event itself but in the page load event. This post will show a way to solve this conundrum. (more)
category: ASP.NET | clicked: 2 | comment | | source: blogs.microsoft.co.il
tags: ASP.NET, WebForms
6
shouts

CompiledQuery in Entity Framework - Gil Fink on .Net

posted by gilfgilf 15 days, 2 hours, 52 minutes ago
Monday, March 01, 2010 6:53:43 AM GMT
There are times when we want to make optimizations on some piece of code. If we want to reduce the cost of executing a query in Entity Framework we can use a CompiledQuery to the rescue. Yesterday I used added a compiled query to a code base which was executing multiple times. This reduced the execution time of the repeating queries. In the post I’ll explain what are CompiledQueries and how to use them. (more)
category: Foundation | clicked: 5 | comment | | source: blogs.microsoft.co.il
tags: compilation, Entity Framework
7
shouts

Quick Tip – Making Beep From the PC Speaker Using P/Invoke - Gil Fink on .Net

published 15 days, 20 hours, 51 minutes ago posted by gilfgilf 17 days, 18 hours, 43 minutes ago
Sunday, February 28, 2010 12:54:31 PM GMT Friday, February 26, 2010 3:02:32 PM GMT
I was asked yesterday how can we perform a beep sound from the PC speaker. This is something that is needed in one of the applications that I’m consulting for to indicate a successful transaction (don’t ask me way…). (more)
category: Foundation | clicked: 33 | comment | | source: blogs.microsoft.co.il
tags: C#, P/Invoke
5
shouts

Back to Basics – Using MasterType Directive - Gil Fink on .Net

posted by gilfgilf 36 days, 2 hours, 52 minutes ago
Monday, February 08, 2010 6:53:17 AM GMT
This post is a result of a question that I got from one of the developers that I work with. The question was how to use master page properties from an ASP.NET page. (more)
category: ASP.NET | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: ASP.NET, MasterPage
6
shouts

Entity Framework Context Lifetime Best Practices - Gil Fink on .Net

published 35 days, 20 hours, 5 minutes ago posted by gilfgilf 37 days, 1 hour, 58 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Sunday, February 07, 2010 7:47:14 AM GMT
In this post I’m going to write about one of the major decisions that you need to take when you use ORM tools like Entity Framework. This decision is the context lifetime. (more)
category: Foundation | clicked: 79 | comment | | source: blogs.microsoft.co.il
tags: Best Practices, Context, Entity Framework
6
shouts

Using Unit of Work Pattern with Entity Framework - Gil Fink on .Net

published 38 days, 2 hours, 21 minutes ago posted by gilfgilf 38 days, 20 hours, 18 minutes ago
Saturday, February 06, 2010 7:24:26 AM GMT Friday, February 05, 2010 1:27:26 PM GMT
In a previous post I explained how to create a simple repository on top of Entity Framework. In this post I’ll explain the Unit of Work pattern and how we can use it with our data access layer. (more)
category: Foundation | clicked: 60 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Unit of Work
5
shouts

To Use OSS or Not to Use? - Gil Fink on .Net

published 39 days, 22 hours, 25 minutes ago posted by gilfgilf 40 days, 20 hours, 2 minutes ago
Thursday, February 04, 2010 11:21:05 AM GMT Wednesday, February 03, 2010 1:44:01 PM GMT
This post is a result of a very big discussion I had with a customer that I’m currently consulting for. (more)
category: Foundation | clicked: 49 | comment | | source: blogs.microsoft.co.il
tags: OSS
10
shouts

Don’t Repeat Yourself - Gil Fink on .Net

published 46 days, 21 hours, 36 minutes ago posted by gilfgilf 48 days, 3 hours, 25 minutes ago
Thursday, January 28, 2010 12:09:39 PM GMT Wednesday, January 27, 2010 6:20:30 AM GMT
Today while I was doing code review I found myself writing a new generic function instead of one piece of code that was repeating itself in the developer’s code. When you write code sometimes you have to duplicate some piece of code. When it occurs, this is the best time to think of refactoring your functionality. (more)
category: Foundation | clicked: 75 | comment | | source: blogs.microsoft.co.il
tags: Code Review, Principles and Patterns
5
shouts

Table Per Concrete Type Inheritance in Entity Framework - Gil Fink on .Net

posted by gilfgilf 50 days, 3 hours, 56 minutes ago
Monday, January 25, 2010 5:49:36 AM GMT
The last inheritance mapping that I’m going to write about is the Table Per Concrete Type inheritance (TPC). This inheritance type is very rare but you should be aware of how to create it when it is needed. You can read about TPT and TPH from here and from here. (more)
category: Foundation | clicked: 9 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Inheritance
8
shouts

Table Per Hierarchy Inheritance in Entity Framework - Gil Fink on .Net

published 49 days, 21 hours, 34 minutes ago posted by gilfgilf 51 days, 1 hour, 29 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Sunday, January 24, 2010 8:17:03 AM GMT
In the second inheritance mappings tutorials I’m going to write about the Table Per Hierarchy (TPH) inheritance mapping. If you want to read about the first mapping I showed go to the Table Per Type post from here. (more)
category: Foundation | clicked: 39 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Inheritance
9
shouts

Table Per Type Inheritance in Entity Framework - Gil Fink on .Net

published 50 days, 22 hours, 2 minutes ago posted by gilfgilf 53 days, 12 minutes ago
Sunday, January 24, 2010 11:44:10 AM GMT Friday, January 22, 2010 9:33:32 AM GMT
The first inheritance mapping I’m going to show is called Table Per Type or TPT. Before I start with the example lets define what is TPT. (more)
category: Foundation | clicked: 55 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Inheritance, Mapping, TPT
8
shouts

Using Repository Pattern with Entity Framework - Gil Fink on .Net

published 51 days, 22 hours, 29 minutes ago posted by gilfgilf 54 days, 22 hours, 5 minutes ago
Saturday, January 23, 2010 11:16:12 AM GMT Wednesday, January 20, 2010 11:40:19 AM GMT
One of the tools for reaching for persistence ignorance is to build a facade between the data access layer and your business logic. Such facade will prevent the knowledge of how the data access is working and with which technology. That abstraction can be achieved by using the Repository Pattern. In the post I’ll show how you can use the Repository Pattern. (more)
category: Architecture | clicked: 73 | comment | | source: blogs.microsoft.co.il
tags: Architecture, Entity Framework, Patterns
10
shouts

Defining Custom Functions in Entity Framework - Gil Fink on .Net

published 71 days, 20 hours, 11 minutes ago posted by gilfgilf 73 days, 19 hours, 41 minutes ago
Sunday, January 03, 2010 1:34:59 PM GMT Friday, January 01, 2010 2:04:21 PM GMT
During the SDP conference I have been asked about the use of functions inside the EDM. This post will try to answer one such question of how to define a custom function in EF. (more)
category: Foundation | clicked: 70 | comment | | source: blogs.microsoft.co.il
tags: ADO.NET, Entity Framework
14
shouts

Entity Framework Profiler

published 126 days, 21 hours, 31 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 128 days, 17 hours, 25 minutes ago
Monday, November 09, 2009 12:14:23 PM GMT Saturday, November 07, 2009 4:20:50 PM GMT
Entity Framework Profiler I was sitting with Julie Lerman today, and we got into a discussion on how to provide more information to EF users. It appears that there is much need for that. This is what I do, more or less, so we decided to tackle that problem in the bar. Some drinks later, we had a working version of EF Prof that was actually able to intercept all queries coming from the Entity Framework. Initial testing also shows that I’ll be able to provide much more information about EF than I’ll be ... (more)
category: SQL | clicked: 64 | comment | | source: ayende.com
tags: EF, Entity Framework, entityframework, EntityFramework Profiler
8
shouts

Reading a Xml File in T4 Templates - Gil Fink on .Net

published 91 days, 17 hours, 53 minutes ago posted by gilfgilf 93 days, 16 hours, 37 minutes ago
Monday, December 14, 2009 3:52:23 PM GMT Saturday, December 12, 2009 5:08:51 PM GMT
After I wrote the post about the use of T4 templates in EF4, I played with them for a while (not in EF but generally with T4 templates). In an old project that I’ve created almost 3 years ago which automated the use of lookup tables I had an enum. That enum was meant to be the connection between an Xml node names and was heavily used in the application. (more)
category: Foundation | clicked: 36 | comment | | source: blogs.microsoft.co.il
tags: T4 Templates, XML
12
shouts

T4 Templates in Entity Framework 4 - Gil Fink on .Net

published 98 days, 9 hours, 9 minutes ago posted by gilfgilf 100 days, 19 hours, 59 minutes ago
Tuesday, December 08, 2009 12:36:28 AM GMT Saturday, December 05, 2009 1:46:36 PM GMT
T4 templates or Text Template Transformation Toolkit is a mean of creating a code generation artifacts which can save a lot of time. This technology is a part of Visual Studio since 2005 but was one of those technologies that were kept in secret by Microsoft. Almost all the code generation stuff that is being used in Visual Studio in technologies such as MVC, Entity Framework,... (more)
category: Foundation | clicked: 69 | comment | | source: blogs.microsoft.co.il
tags: EF4, Entity Framework, T4 Templates
10
shouts

Execute T-SQL Statements in Entity Framework 4 - Gil Fink on .Net

published 108 days, 13 hours, 53 minutes ago posted by gilfgilf 111 days, 1 hour, 56 minutes ago
Friday, November 27, 2009 7:52:36 PM GMT Wednesday, November 25, 2009 7:49:31 AM GMT
In this post I’m going to show a new Entity Framework 4 feature that enable us to execute T-SQL from the ObjectContext directly to the database. (more)
category: Foundation | clicked: 64 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, entity framework 4.0, T-SQL
11
shouts

Applying Strategy Pattern Instead of Using Switch Statements - Gil Fink on .Net

published 112 days, 22 hours, 52 minutes ago posted by gilfgilf 114 days, 1 hour, 49 minutes ago
Monday, November 23, 2009 10:54:04 AM GMT Sunday, November 22, 2009 7:56:56 AM GMT
Once in a while I’m stumbling on switch statements during a Code Review session. Whenever this is happening my first reaction is to understand why did the developer use it. Since using switch statement sometime implies spaghetti code and also can get very crowded (in case statements of course) in this post I’m going to show an alternative method that I pr... (more)
category: Foundation | clicked: 96 | comment | | source: blogs.microsoft.co.il
tags: C#, Design Pattern, Strategy
11
shouts

Using External Configuration File for Enterprise Library Configuration - Gil Fink on .Net

published 119 days, 23 hours, 57 minutes ago posted by gilfgilf 120 days, 14 hours, 4 minutes ago
Monday, November 16, 2009 9:48:51 AM GMT Sunday, November 15, 2009 7:42:10 PM GMT
One of the things that I always do when I’m using Enterprise Library is to separate its configurations to external configuration file. The reason is very obvious – using Enterprise Library makes configuration files very crowded. Since this is the case, the configuration files become unmanageable and then its time to ... (more)
category: Foundation | clicked: 35 | comment | | source: blogs.microsoft.co.il
tags: Configuration, Enterprise Library
Previous 1 2 3 4 Next