OK, I read these: EntityFramework show entities before saving changes Where added objects are stored in ObjectContext?
I saw a bunch of questions about lightweight alternatives to Hibernate, especially for Android. But which of them has the “Identity Map” pattern?
The identity map and unit of work patterns are part of the reasons sqlalchemy is much more attractive than django.db开发者_如何转开发. However, I am not sure how the identity map would work, or if it
Using NHibernate I usually query for single record开发者_JAVA百科s using the Get() or Load() methods (depending on if I need a proxy or not):
I need to find out if an object with a particular primary key is already attached to a DataContext and get the entity from the DataContext if it is attached.Is there any way at all to do thi开发者_开发