示例#1
0
        //string sConnectionString;

        public DbContext()
        {
            //Amal_Entities context = new Amal_Entities();

            //_context = context ?? throw new ArgumentNullException("context");

            //sConnectionString = _context.Database.Connection.ConnectionString;


            if (_context == null)
            {
                _context = new Licence_APIsContext();
            }
        }
示例#2
0
 public UsersRepository(Licence_APIsContext context) : base(context)
 {
     _context = context;
     dbSet    = _context.Set <User>();
     dbSet    = _context.Set <User>();
 }
示例#3
0
 public DataRepository(Licence_APIsContext context)
 {
     _context = context;
     dbSet    = _context.Set <TEntity>();
 }