Geeks With Blogs
Rohit Gupta Engaging talk on Microsoft Technologies ....My Resume
April 2010 Entries
Entity Framework v1 – tips and Tricks Part 3
The previous posts on Entity framework are available here : Entity Framework version 1- Brief Synopsis and Tips – Part 1 Entity Framework v1 … Brief Synopsis and Tips – Part 2 General Tips on Entity Framework v1 & Linq to Entities: ToTraceString() If you need to know the underlying SQL that the EF generates for a Linq To Entities query, then use the ToTraceString() method of the ObjectQuery class. (or use LINQPAD) Note that you need to cast the LINQToEntities query to ObjectQuery before calling ......

Posted On Tuesday, April 27, 2010 7:49 AM

What personality is that blog --- typealyzer
Came across this interesting site that tells the personality of the blog. The site is : http://typealyzer.com/index... Here is what it said about my blog : ......

Posted On Wednesday, April 14, 2010 4:28 AM

Entity Framework v1 … Brief Synopsis and Tips – Part 2
Using Entity Framework with ASMX Web Services and WCF Web Service: If you use ASMX WebService to expose Entity objects from Entity Framework... then the ASMX Webservice does not include object graphs, one work around is to use Facade pattern or to use WCF Service. The other important aspect of using ASMX Web Services along with Entity Framework is that the ASMX Client is not aware of the existence of EF v1 since the client solely deals with C# objects (not EntityObjects or ObjectContext). Since the ......

Posted On Tuesday, April 13, 2010 2:56 PM

Entity Framework version 1- Brief Synopsis and Tips – Part 1
Eager loading with EF To Do Eager loading use Projections (for e.g. : 1: var custWithAddresses = from c in context.Contacts 2: where c.LastName == "Gupta" 3: select new {c, c.Addresses} or use Include Query Builder Methods (Include(“Addresses”)) 1: from c in context.Contacts.Include("A... 2: select c; If there is multi-level hierarchical Data then to eager load all the relationships use Include Query Builder methods like customers.Include("Order.Or... to include Order and OrderDetail ......

Posted On Thursday, April 1, 2010 6:04 AM

Copyright © Rohit Gupta | Powered by: GeeksWithBlogs.net