Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionTable&lt;T&gt;"/> 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);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrackedTable&lt;T&gt;"/> 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>();
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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;
 }