Exemplo n.º 1
0
 static void Main(string[] args)
 {
     using (PracticeDBContext db = new PracticeDBContext())
     {
         Product p = new Product()
         {
             Id = "3", Name = "sss", Price = 10000, Stock = 2, Gst = 12
         };
         db.Add(p);
         db.SaveChanges();
     }
     Console.ReadKey();
 }
Exemplo n.º 2
0
 public PersonRepository(PracticeDBContext context)
 {
     this.context = context;
 }