コード例 #1
0
        // GET: ProduitController

        public ProduitsController()
        {
            ctx         = new dbtirelireshopContext();
            repoProduit = new Repository <Produits>(ctx);
        }
コード例 #2
0
 // GET: CouleurController
 
 public CouleursController()
 {
     ctx = new dbtirelireshopContext();
     repoCouleur = new Repository<Couleur>(ctx);
 }
コード例 #3
0
 // GET: CommandesController
 public StatutCommandesController()
 {
     ctx = new dbtirelireshopContext();
     repoStatutCommande = new Repository <StatutCommande>(ctx);
 }
コード例 #4
0
 // GET: CommandesController
 public CommandesController()
 {
     ctx          = new dbtirelireshopContext();
     repoCommande = new Repository <Commandes>(ctx);
 }
コード例 #5
0
ファイル: Repository.cs プロジェクト: jgaman/TireLireEshophop
 public Repository(dbtirelireshopContext context)
 {
     _context = context;
 }
コード例 #6
0
        // GET: ClientController

        public ClientsController()
        {
            ctx        = new dbtirelireshopContext();
            repoClient = new Repository <Clients>(ctx);
        }