/// <summary> /// Initializes a new instance of the <see cref="SessionTable<T>"/> class. /// </summary> /// <param name="session">The session.</param> /// <param name="entity">The entity.</param> public SessionTable(EntitySessionEx session, MappingEntity entity) : base(session.sessionProvider, typeof(ISessionTable <T>)) { this.session = session; this.entity = entity; this.underlyingTable = this.session.Provider.GetTable <T>(entity.TableId); }
/// <summary> /// Initializes a new instance of the <see cref="TrackedTable<T>"/> class. /// </summary> /// <param name="session">The session.</param> /// <param name="entity">The entity.</param> public TrackedTable(EntitySessionEx session, MappingEntity entity) : base(session, entity) { this.tracked = new Dictionary <T, TrackedItem>(); this.identityCache = new Dictionary <object, T>(); }
/// <summary> /// Initializes a new instance of the <see cref="SessionExecutor"/> class. /// </summary> /// <param name="session">The session.</param> /// <param name="executor">The executor.</param> public SessionExecutor(EntitySessionEx session, QueryExecutor executor) { this.session = session; this.executor = executor; }
/// <summary> /// Initializes a new instance of the <see cref="SessionProvider"/> class. /// </summary> /// <param name="session">The session.</param> /// <param name="provider">The provider.</param> public SessionProvider(EntitySessionEx session, EntityProvider provider) { this.session = session; this.provider = provider; }