Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected QdfDbContext(DbCompiledModel model)
     : base(model)
 {
     //Logger = NullLogger.Instance;
     QdfSession = NullQdfSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected QdfDbContext(DbConnection existingConnection, bool contextOwnsConnection)
     : base(existingConnection, contextOwnsConnection)
 {
     //Logger = NullLogger.Instance;
     QdfSession = NullQdfSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected QdfDbContext(string nameOrConnectionString)
     : base(nameOrConnectionString)
 {
     //Logger = NullLogger.Instance;
     QdfSession = NullQdfSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 4
0
        public BdfNHibernateInterceptor(IIocManager iocManager)
        {
            _iocManager = iocManager;
            _BdfSession =
                new Lazy <IBdfSession>(
                    () => _iocManager.IsRegistered(typeof(IBdfSession))
                        ? _iocManager.Resolve <IBdfSession>()
                        : NullBdfSession.Instance
                    );

            EntityChangedEventHelper =
                _iocManager.IsRegistered(typeof(IEntityChangedEventHelper))
                    ? _iocManager.Resolve <IEntityChangedEventHelper>()
                    : NullEntityChangedEventHelper.Instance;
        }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor.
 /// Uses <see cref="IAbpStartupConfiguration.DefaultNameOrConnectionString"/> as connection string.
 /// </summary>
 protected AbpDbContext()
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbCompiledModel model)
     : base(model)
 {
     AbpSession = NullAbpSession <TTenantId, TUserId> .Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper <TTenantId, TUserId> .Instance;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(string nameOrConnectionString)
     : base(nameOrConnectionString)
 {
     AbpSession = NullAbpSession <TTenantId, TUserId> .Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper <TTenantId, TUserId> .Instance;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructor.
 /// Uses <see cref="IAbpStartupConfiguration.DefaultNameOrConnectionString"/> as connection string.
 /// </summary>
 protected AbpDbContext()
 {
     AbpSession = NullAbpSession <TTenantId, TUserId> .Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper <TTenantId, TUserId> .Instance;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbConnection existingConnection, DbCompiledModel model, bool contextOwnsConnection)
     : base(existingConnection, model, contextOwnsConnection)
 {
     AbpSession = NullAbpSession <TTenantId, TUserId> .Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper <TTenantId, TUserId> .Instance;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected YLDbContext(DbConnection existingConnection, bool contextOwnsConnection)
     : base(existingConnection, contextOwnsConnection)
 {
     //AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(string nameOrConnectionString, DbCompiledModel model)
     : base(nameOrConnectionString, model)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbCompiledModel model)
     : base(model)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 13
0
        /// <summary>
        /// Reference to the logger.
        /// </summary>
        //public ILogger Logger { get; set; }

        /// <summary>
        /// Constructor.
        /// Uses <see cref="IQdfStartupConfiguration.DefaultNameOrConnectionString"/> as connection string.
        /// </summary>
        protected QdfDbContext()
        {
            //Logger = NullLogger.Instance;
            QdfSession = NullQdfSession.Instance;
            EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
        }
Exemplo n.º 14
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbConnection existingConnection, DbCompiledModel model, bool contextOwnsConnection)
     : base(existingConnection, model, contextOwnsConnection)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(ObjectContext objectContext, bool dbContextOwnsObjectContext)
     : base(objectContext, dbContextOwnsObjectContext)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(string nameOrConnectionString, DbCompiledModel model)
     : base(nameOrConnectionString, model)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbCompiledModel model)
     : base(model)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Constructor.
 /// Uses <see cref="IAbpStartupConfiguration.DefaultNameOrConnectionString"/> as connection string.
 /// </summary>
 protected AbpDbContext()
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(DbConnection existingConnection, bool contextOwnsConnection)
     : base(existingConnection, contextOwnsConnection)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 20
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected QdfDbContext(ObjectContext objectContext, bool dbContextOwnsObjectContext)
     : base(objectContext, dbContextOwnsObjectContext)
 {
     //Logger = NullLogger.Instance;
     QdfSession = NullQdfSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpDbContext(ObjectContext objectContext, bool dbContextOwnsObjectContext)
     : base(objectContext, dbContextOwnsObjectContext)
 {
     AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }
Exemplo n.º 22
0
 /// <summary>
 /// 实例化.
 /// </summary>
 protected YLDbContext(string nameOrConnectionString)
     : base(nameOrConnectionString)
 {
     //AbpSession = NullAbpSession.Instance;
     EntityChangedEventHelper = NullEntityChangedEventHelper.Instance;
 }