Пример #1
0
 // add new product
 public static void Add(Product p)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(p);
     }
 }
Пример #2
0
 public static void Insert(Comment entity)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(entity);
     }
 }
Пример #3
0
 public static void Add(View_Profile entity)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(entity);
     }
 }
Пример #4
0
 public static void Add(Category entity)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(entity);
     }
 }
Пример #5
0
 // add new image
 public static void Add(Image image)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(image);
     }
 }
Пример #6
0
 public static void Add(OrderDetail entity)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(entity);
     }
 }
Пример #7
0
 public static int Insert(Order o)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         db.Insert(o);
         return(o.Id);
     }
 }