QuocLe

Untitled

Nov 28th, 2020
1,040
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data