示例#1
0
 public int UpdateIngredient(Ingredient ingredient)
 {
     return(ExecuteNonQuery($"exec dbo.UpdateIngredient {ingredient.Id}, '{ingredient.Name}', {(int)ingredient.Type}"));
 }
示例#2
0
 public int NewIngredient(Ingredient ingredient)
 {
     return(ExecuteNonQuery($"exec dbo.NewIngredient '{ingredient.Name}', {(int)ingredient.Type}"));
 }