What I think I understand (Please correct me if I am wrong)
- POCO - Plain Old C# Objects. They are simple classes that dont inherit from anything?
- STE - Self-Tracking Entities. they track changes on the individual entity objects so that when we do
context.SaveChanges();
the changes on the entity objects are registered. This does not work on collections?
What I want to know?
- If my context inherits from ObjectContext, does that mean I have POCO or STE? Similarly, is DbContext POCO or STE?
- What does EF5 generate by default? POCO entities or STE? (I am using Model First)
Also can somebody give me some code examples representing these two types of entities?