Beispiel #1
0
 public void AddBed(Bed b)
 {
     using (SqlCommand cmd = new SqlCommand("INSERT INTO Bed(BedName, Garden_Id, Shape, Size) VALUES (@BedName, @Garden_Id, @Shape, @Size)"))
     {
         cmd.CommandType = System.Data.CommandType.Text;
         cmd.Connection  = conn;
         cmd.Parameters.AddWithValue("@BedName", b.BedName);
         cmd.Parameters.AddWithValue("@Garden_Id", b.Garden_Id);
         cmd.Parameters.AddWithValue("@Shape", b.Shape);
         //cmd.Parameters.AddWithValue("@Size", b.Size);
         cmd.ExecuteNonQuery();
     }
 }
Beispiel #2
0
 public void UpdateBed(Bed b)
 {
     throw new NotImplementedException();
 }