Advertisement
QuocLe

Untitled

Nov 28th, 2020
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1.         public bool InsertTheLoai(int id, string ten)
  2.         {
  3.             string query = string.Format("INSERT INTO dbo.[TheLoai](MaTheLoai, TenTheLoai)" +
  4.                                         "VALUES('{0}', N{1})", id, ten);  
  5.         }
  6.  
  7.         public bool InsertTheLoai(TheLoai tl)
  8.         {
  9.             string query = string.Format("INSERT INTO dbo.[TheLoai](MaTheLoai, TenTheLoai)" +
  10.                                         "VALUES('{0}', N{1})", tl.MaTheLoai, tl.TenTheLoai);  
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement