예제 #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
파일: UserBus.cs 프로젝트: 1461634/DoAnWeb2
 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);
     }
 }