public void Set(NetworkDevice model) { DatabaseUtility.Exec("INSERT INTO BookNetworkDevice (NameNetworkDevice) VALUES (@NameNetworkDevice)", new List <SqlParameter>() { new SqlParameter("@NameNetworkDevice", model.NameNetworkDevice) }); }
public void Delete(NetworkDevice model) { DatabaseUtility.Exec("DELETE FROM BookNetworkDevice WHERE Id = @Id", new List <SqlParameter>() { new SqlParameter("@Id", model.Id) }); }
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) }); }