Geeks With Blogs
Sudheer Kumar ASP.Net, C#, BizTalk, MSBuild, WPF, WCF, WF.... June 2009 Entries
Entity Framework Tips
1. Error Message : Only parameterless constructors and initializers are supported in LINQ to Entities: The following query works perfetcly with LINQ: NoticeRecipient rec = dc.NoticeRecipients.Where(o => o.RecipientID == new Guid(id)).FirstOrDefault<... But the same query will give the above mentioned error with Entity Framework. The issue was using new Guid() inside lambda expressions. You have to change the query as follows. Guid gID = new Guid(id); NoticeRecipient rec = ......

Posted On Thursday, June 11, 2009 1:22 PM

Think MANY TIMES before choosing Entity Framework
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} If you are planning to choose ......

Posted On Wednesday, June 3, 2009 10:10 AM

Copyright © Sudheer Kumar | Powered by: