/// <summary> /// Constructor /// </summary> /// <param name="persistentStore"></param> /// <param name="mode"></param> internal UpdateContext(PersistentStore persistentStore, UpdateContextSyncMode mode) : base(persistentStore) { if (mode == UpdateContextSyncMode.Hold) throw new NotSupportedException("UpdateContextSyncMode.Hold is not supported"); // create a default change-set logger _changeSetRecorder = new DefaultEntityChangeSetRecorder(); _validator = new DomainObjectValidator(); _validationChangeTracker = new ChangeTracker(); }
internal PersistenceContext(PersistentStore persistentStore) { _persistentStore = persistentStore; _queryExecutor = new QueryExecutor(this); }
/// <summary> /// Constructor /// </summary> /// <param name="sessionFactory"></param> internal ReadContext(PersistentStore pstore) : base(pstore) { }