コード例 #1
0
        static void Main(string[] args)
        {
            Console.Write("Chargement BDD");
            AppContexte app = new AppContexte();

            Offre offre = new Offre
            {
                Id          = 3,
                Intitule    = "1ère offre",
                Date        = new DateTime(),
                Description = "test",
                Responsable = "Axel",
                Salaire     = 2000,
                StatutId    = 1,
            };

            app.Offres.Add(offre);
            Console.Write(app.Offres.Count());
        }
コード例 #2
0
 public Service()
 {
     this.contexte = new AppContexte();
 }