コード例 #1
0
 public CrudRepositoryBase(Abstractions.IDatabaseFactory databaseFactory, ICrudRepositoryServiceCollection crudRepositoryServiceCollection)
     : base(databaseFactory)
 {
     _crudRepositoryServiceCollection =
         crudRepositoryServiceCollection
         ?? Configuration.DefaultConfiguration?.CrudServiceCollection
         ?? new CrudRepositoryServiceCollection();
 }
コード例 #2
0
 public static void InitDefault(Abstractions.IDatabaseFactory databaseFactory, Abstractions.ICrudRepositoryServiceCollection crudServiceCollection)
 {
     DefaultConfiguration = new Configuration()
     {
         DatabaseFactory       = databaseFactory,
         CrudServiceCollection = crudServiceCollection,
     };
 }
コード例 #3
0
        public UnitOfWork(Abstractions.IDatabaseFactory databaseFactory)
        {
            _databaseFactory = databaseFactory;

            var db = this.GetDatabase();

            _petaTransaction = new Transaction(db);
            _db = db;
        }
コード例 #4
0
 public static void InitDefault(Abstractions.IDatabaseFactory databaseFactory)
 {
     InitDefault(databaseFactory, new CrudRepositoryServiceCollection());
 }
コード例 #5
0
 public UnitOfWorkProvider(Abstractions.IDatabaseFactory databaseFactory)
 {
     _databaseFactory = databaseFactory;
 }
コード例 #6
0
 public RepositoryBase(Abstractions.IDatabaseFactory databaseFactory)
 {
     _databaseFactory = databaseFactory;
 }
コード例 #7
0
 public ReadRepositoryBase(Abstractions.IDatabaseFactory databaseFactory)
     : base(databaseFactory)
 {
 }