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