Example #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();
            }
        }
Example #2
0
 public UsersRepository(Licence_APIsContext context) : base(context)
 {
     _context = context;
     dbSet    = _context.Set <User>();
     dbSet    = _context.Set <User>();
 }
Example #3
0
 public DataRepository(Licence_APIsContext context)
 {
     _context = context;
     dbSet    = _context.Set <TEntity>();
 }