Beispiel #1
0
 public void AddStylist(Stylist tempStylist)
 {
     DB.OpenConnection();
     DB.SetCommand(@"INSERT INTO " + _tableRelational + " (specialtyId,stylistId) VALUES (@SpecialtyId,@StylistId);");
     DB.AddParameter("@SpecialtyId", _id);
     DB.AddParameter("@StylistId", tempStylist.GetId());
     DB.RunSqlCommand();
     DB.CloseConnection();
 }