protected AbstractRepository(IMapper <T> mapper, IGraphSession session, IProxyFactory proxyFactory) { _mapper = mapper; _session = session; _proxyFactory = proxyFactory; _entityStateCache = session.State; }
public TrackableCollection(object parent, RelationshipMetadata relatioship, IEnumerable <object> source, IEntityStateCache state) { _data = new List <T>(); _removed = new List <T>(); _parent = parent; _relationship = relatioship; _state = state; Add(source); }
public Generator(IGraphSession session, IMetadataFactory metadataFactory, ProxyGenerator generator, ProxyGenerationOptions options, EntityStatus status = EntityStatus.Clean) { _generator = generator; _session = session; _metadataFactory = metadataFactory; _state = session.State; _status = status; _dependencyStack = new Stack <EntityReference>(); _options = options; }
public GraphSession(IUnitOfWork uow, IEnumerable <IListener> listeners, IQueryExecutorFactory queryExecutorFactory, IRepositoryFactory repositoryFactory, IEntityStateCache state, IProxyFactory proxyFactory) { _repositories = new ConcurrentDictionary <Type, IRepository>(); _uow = uow; _listeners = listeners.ToList(); _queryExecutorFactory = queryExecutorFactory; _repositoryFactory = repositoryFactory; _state = state; _proxyFactory = proxyFactory; }
public RelationshipInterceptor(IMetadataFactory metadataFactory, IEntityStateCache state) { _relationshipState = new ConcurrentDictionary <RelationshipMetadata, RelationshipState>(); _metadataFactory = metadataFactory; _state = state; }
public EntityStateInterceptor(IEntityStateCache state) { _state = state; }
public UnitOfWork(IEntityStateCache entityStateCache) { _items = new List <object>(); _entityStateCache = entityStateCache; }