Beispiel #1
0
        public UnitOfWork(DbContext context)
        {
            if (context == null)
                throw new ArgumentNullException("context");
            isDisposed = false;

            Context = context;
        }
Beispiel #2
0
 public UnitOfWork()
 {
     context = new BOTContext();
 }
Beispiel #3
0
 public UnitOfWork(DbContext context)
 {
     this.context = context;
 }
Beispiel #4
0
 public RoleRepository(DbContext con)
 {
     context = con;
 }
Beispiel #5
0
 public FDictionaryDAL(DbContext db, string areaNo)
     : base(db, areaNo)
 {
 }
Beispiel #6
0
 public UnitOfWork(DbContext context)
 {
     Debug.WriteLine("\n\n\nOn DbContext ctor\n\n\n");
     Context = context;
 }
Beispiel #7
0
 public TWindowAreaDAL(string dbKey)
 {
     this.db = Factory.Instance.CreateDbContext(dbKey);
 }
 public UnitOfWork(DbContext context)
 {
     Context = context;
 }
 public Repository(DbContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
 public TestResultRepository(DbContext _context)
 {
     this.context = _context;
 }
 public UnitOfWork(DbContext db)
 {
     this.db = db;
 }
Beispiel #12
0
 /// <summary>
 ///   Initializes a new instance of the class with a
 ///   <see cref="IUnitOfWork" /> implementation.
 /// </summary>
 /// <param name="unitOfWork"> The Unit of Work implementation. </param>
 public Repository(IUnitOfWork unitOfWork)
 {
     UnitOfWork = unitOfWork;
     _dbContext = unitOfWork.Context;
     _dbSet     = unitOfWork.Context.Set <T>();
 }
 public QuestionRepository(DbContext _context)
 {
     this.context = _context;
 }
 public ProfileRepository(DbContext db)
 {
     this.context = db;
 }
 public UserRepository(DbContext u)
 {
     this.context = u;
 }
 public PhotoRepository(DbContext dc)
 {
     this.context = dc;
 }
Beispiel #17
0
 public UserRepository(DbContext _context)
 {
     this.context = _context;
 }
Beispiel #18
0
 public FDictionaryDAL(DbContext db)
     : base(db)
 {
 }
 public LikeRepository(DbContext dc)
 {
     this.context = dc;
 }
Beispiel #20
0
 public TWindowAreaDAL()
 {
     this.db = Factory.Instance.CreateDbContext();
 }