コード例 #1
0
 public void Set(NetworkDevice model)
 {
     DatabaseUtility.Exec("INSERT INTO BookNetworkDevice (NameNetworkDevice) VALUES (@NameNetworkDevice)", new List <SqlParameter>()
     {
         new SqlParameter("@NameNetworkDevice", model.NameNetworkDevice)
     });
 }
コード例 #2
0
 public void Delete(NetworkDevice model)
 {
     DatabaseUtility.Exec("DELETE FROM BookNetworkDevice WHERE Id = @Id",
                          new List <SqlParameter>()
     {
         new SqlParameter("@Id", model.Id)
     });
 }
コード例 #3
0
 public void Update(NetworkDevice model)
 {
     DatabaseUtility.Exec("UPDATE BookNetworkDevice SET  NameNetworkDevice = @NameNetworkDevice  WHERE Id = @Id", new List <SqlParameter>()
     {
         new SqlParameter("@Id", model.Id),
         new SqlParameter("@NameNetworkDevice", model.NameNetworkDevice)
     });
 }