Exemple #1
0
 public SqlCommanderRepo(CommanderContext context)
 {
     _dbContext = context;
 }
 public SqLiteCommanderRepo(CommanderContext context)
 {
     _context = context;
 }
Exemple #3
0
 public PostgresCommanderRepo(CommanderContext context)
 {
     _context = context;
 }
 public SqlCommanderRepo(CommanderContext context)               //dependency injection via ctor to be able to access																														   //the database
 {
     _context = context;
 }
Exemple #5
0
 public SqlCommanderRepo(CommanderContext ctx)
 {
     _ctx = ctx;
 }
Exemple #6
0
 public SqlCommanderRepository(CommanderContext context)
 {
     _context = context;
 }
 public SqlCommandeRepo(CommanderContext context)
 {
     _context = context;
 }
 public NpgsqlCommanderRepo(CommanderContext context)
 {
     _context = context;
 }
 public SqlCommanderRepo(CommanderContext context)
 {
     this.context = context;
 }
 // make use of dbcontext to return command items from database
 public SqlCommanderRepo(CommanderContext context)
 {
     //get implementation of dbcontext which is CommanderContext
     _context = context;
 }
Exemple #11
0
 public CategoryRepo(CommanderContext context)
 {
     _context = context;
 }
 public SqlCommanderRepo(CommanderContext context)   //Dependency injection used , using context class to get data from database
 {
     _context = context;
 }
Exemple #13
0
 public SqlServerCommanderRepo(CommanderContext context)
 {
     _context = context;
 }
Exemple #14
0
 public SqlCommanderRepo(CommanderContext context) => _context = context;
Exemple #15
0
 public MariaDBCommanderRepo(CommanderContext context)
 {
     _context = context;
 }
 public Commands(CommanderContext conte)
 {
     _context = conte;
 }
 public SqlCommanderRepo(CommanderContext Context)
 {
     _Context = Context;
 }
Exemple #18
0
 public SqlCommanderRepo(CommanderContext db)
 {
     _db = db;
 }
 public SqlCommanderRepo(CommanderContext context)
 {
     _context = context; // Dependency injection to utilize Context
 }
 public SqlCommanderRespository(CommanderContext context)
 {
     this.context = context;
 }
Exemple #21
0
 public MySqlRepo(CommanderContext context)
 {
     _context = context;
 }
Exemple #22
0
 public CommanderRepo(CommanderContext context)
 {
     _context = context;
 }
        private readonly CommanderContext _context;       ///DB Context

        public SqlCommanderRepo(CommanderContext context) /// Dependency injection via constructor
        {
            _context = context;
        }