Beispiel #1
0
 internal void Reset()
 {
     DetachCacheFromEntity();
     _cache      = null;
     _entity     = null;
     _entryState = EntityRowState.Detached;
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         this.CloseOwnedConnection();
     }
     this._connection = null;
     this._workspace  = null;
     this._cache      = null;
 }
Beispiel #3
0
 public EntityCacheEntry(IExtensibleEntity entity, ExtensibleObjectCache cache, bool newInstance)
 {
     _entryState = newInstance ? EntityRowState.Added : EntityRowState.Unchanged;
     _entity     = entity;
     _cache      = cache;
 }