public SchemaRepository(ProviderMetadata providerMetadata, AbstractRevisionRepository <EntitySchema> revisions, IProviderTransaction providerTransaction, ISession nhSession, IFrameworkContext frameworkContext, bool isReadOnly) : base(providerMetadata, revisions, providerTransaction, frameworkContext) { IsReadonly = isReadOnly; Transaction = providerTransaction; Helper = new NhSessionHelper(nhSession, frameworkContext); }
public RevisionRepository(ProviderMetadata providerMetadata, IProviderTransaction providerTransaction, ISession nhSession, IFrameworkContext frameworkContext, bool isReadOnly) : base(providerMetadata, providerTransaction, frameworkContext) { IsReadonly = isReadOnly; Transaction = providerTransaction; Helper = new NhSessionHelper(nhSession, frameworkContext); }
public EntityRepository(ProviderMetadata providerMetadata, AbstractSchemaRepository schemas, AbstractRevisionRepository <TypedEntity> revisions, IProviderTransaction providerTransaction, ISession nhSession, IFrameworkContext frameworkContext, bool isReadOnly) : base(providerMetadata, providerTransaction, revisions, schemas, frameworkContext) { Helper = new NhSessionHelper(nhSession, frameworkContext); IsReadonly = isReadOnly; #if DEBUG if (schemas is SchemaRepository) { var sesh = schemas as SchemaRepository; if (sesh.Helper.NhSession != Helper.NhSession) { throw new InvalidOperationException("NHibernate provider can only be used in conjunction with an NHibernate schema provider when they share the same NHibernate session"); } } #endif }
public RdbmsModelMapper(NhSessionHelper nhSessionHelper, IFrameworkContext frameworkContext) : base(frameworkContext) { _nhSessionHelper = nhSessionHelper; }