Ejemplo n.º 1
0
 public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo)
 {
     _connectionString = connectionString;
     _userInfo = userInfo;
     _logger = logProvider.GetLogger("MsSqlExecuter");
     _performanceLogger = logProvider.GetLogger("Performance");
 }
Ejemplo n.º 2
0
 public PersistenceTransaction(ILogProvider logProvider, ConnectionString connectionString, IUserInfo userInfo)
 {
     _logger = logProvider.GetLogger(GetType().Name);
     _connectionString = connectionString;
     _userInfo = userInfo;
     _persistenceTransactionId = Interlocked.Increment(ref _counter);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This constructor is typically used in run-time, when persistence transaction is active, in order to execute
 /// the SQL queries in the same transaction.
 /// </summary>
 public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo, IPersistenceTransaction persistenceTransaction)
 {
     _connectionString = connectionString;
     _userInfo = userInfo;
     _logger = logProvider.GetLogger("MsSqlExecuter");
     _performanceLogger = logProvider.GetLogger("Performance");
     _persistenceTransaction = persistenceTransaction;
 }
Ejemplo n.º 4
0
 public NHibernatePersistenceEngine(
     ILogProvider logProvider,
     INHibernateMapping nHibernateMapping,
     IDomainObjectModel domainObjectModel,
     ConnectionString connectionString,
     IEnumerable<INHibernateConfigurationExtension> nHibernateConfigurationExtensions)
 {
     _performanceLogger = logProvider.GetLogger("Performance");
     _nHibernateMapping = nHibernateMapping;
     _domainObjectModel = domainObjectModel;
     _connectionString = connectionString;
     _nHibernateConfigurationExtensions = nHibernateConfigurationExtensions;
 }
 public EntityFrameworkGenerateMetadataFiles(ILogProvider logProvider, IDomainObjectModel dom, ConnectionString connectionString)
 {
     _performanceLogger = logProvider.GetLogger("Performance");
     _dom = dom;
     _connectionString = connectionString;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// This constructor is typically used in deployment time, when persistence transaction does not exist.
 /// </summary>
 public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo)
     : this(connectionString, logProvider, userInfo, null)
 {
 }