예제 #1
0
 // delete a product
 public static int Delete(int id)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         return(db.Delete <Product>("WHERE Id = @0", id));
     }
 }
예제 #2
0
파일: UserBus.cs 프로젝트: 1461634/DoAnWeb2
 public static int Delete(string id)
 {
     using (var db = new ElectronicStoreConnectionDB())
     {
         var user = Details(id);
         return(db.Delete(user));
     }
 }