/// <summary>
 /// Construct a <see cref="EntitySession"/>
 /// </summary>
 public EntitySession(EntityProvider provider)
 {
     this.provider        = provider;
     this.sessionProvider = new SessionProvider(this, provider);
     this.tables          = new Dictionary <MappingEntity, ISessionTable>();
 }
Exemple #2
0
 public EntityTable(EntityProvider provider, MappingEntity entity)
     : base(provider, typeof(IEntityTable <T>))
 {
     this.provider = provider;
     this.entity   = entity;
 }
 public SessionProvider(EntitySession session, EntityProvider provider)
 {
     this.session  = session;
     this.provider = provider;
 }
 internal DbSessionProvider(EntityProvider provider)
 {
     this.provider        = provider;
     this.sessionProvider = new SessionProvider(this, provider);
 }