Can someone tell me the difference between POCO, self-monitoring objects, POCO Proxies?
Actually, I am working on Entity Framework 4.0 and POCO (storage template), and whenever I make some changes to POCO and call ObjectContext.Savechanges, it reflects the database. My question is:
Sample code that I use
IEFRepository<Category> catRepository = new EFRepository<Category>(); Category c = catRepository.FindOne<Category>(x => x.Name == "Paper"); c.Name = "Paper"; catRepository.SaveChanges(System.Data.Objects.SaveOptions.None);
POCOs. , . , EntityObject , . , , ObjectContext.
EntityObject
ObjectContext
"" POCOs, , . , , , . DetectChanges.
DetectChanges
-POCO-- , () POCO -POCO . "", , . - , , , . . ADO.NET.