.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Asad Ali
Post New Web Links

EntityState

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net
 

hi,

how is posible to show only added/changed rows to another grid in the page,

i tried usgin EntityState option after I addedd the record to EntitySet but it does not work, for example:


...

db.Typeofs.AddObject(itype);

gvItemTypes.DataSource = from lst in db.Typeofs
                                 where lst.EntityState == EntityState.Added
                                 select lst;



it displays the following error:

The specified type member 'EntityState' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.

can someone help me with a workaround please

regards,

behar






View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend