public async Task DeleteAsync(int kdBarang)
        {
            var p = new
            {
                kdBarang = kdBarang
            };

            string sql = @"delete barang_m where kdBarang=@kdBarang";
            await _db.DeleteData <dynamic>(sql, p);
        }
示例#2
0
 public void DeletePost(int postId)
 {
     _sql.DeleteData("dbo.spPost_Delete", new { Id = postId }, "SQLData");
 }
示例#3
0
 // Delete a specific ordered food detail with Id = id
 public async Task DeleteOrderDetail(int id)
 {
     await _sql.DeleteData <dynamic>("OrderDetail_Delete", new { id });
 }
示例#4
0
 public void DeleteComment(int commentId)
 {
     _sql.DeleteData("dbo.spComment_Delete", new { Id = commentId }, "SQLData");
 }
示例#5
0
 public void DeleteRoom(int id)
 {
     _sql.DeleteData("dbo.spRoom_Remove", new { id }, "OHMData");
 }
示例#6
0
        public async Task DeleteStudent(int studentId)
        {
            string sql = @"delete from dbo.Student where StudentId = @studentId";

            await _db.DeleteData(sql, new { studentId });
        }
 public void DeleteClient(int id)
 {
     _sql.DeleteData("dbo.spClient_Remove", new { id }, "OHMData");
 }
 // Delete Person from database with Id = id
 public async Task DeletePerson(int id)
 {
     await _sql.DeleteData <dynamic>("People_Delete", new { id });
 }
 // Delete specific DiningTable from database with Id = id
 public async Task DeleteTable(int id)
 {
     await _sql.DeleteData <dynamic>("DiningTable_Delete", new { id });
 }
示例#10
0
 public void DeleteCheckIn(int id)
 {
     _sql.DeleteData("dbo.spCheckIn_Remove", new { id }, "OHMData");
 }
示例#11
0
 // Delete specific food from database with Id = id
 public async Task DeleteFood(int id)
 {
     await _sql.DeleteData <dynamic>("Food_Delete", new { id });
 }