コード例 #1
0
ファイル: IngredientService.cs プロジェクト: ssargent/cooking
 public Ingredient Save(Ingredient data)
 {
     //return DataProvider.Save(data) as Ingredient;
     return null;
 }
コード例 #2
0
 private static Ingredient LoadIngredient(DbDataReader reader)
 {
     var ingredient = new Ingredient
     {
         IngredientID = (Int64)reader["id"],
         Title = (string)reader["title"],
         UrlKey = (string)reader["urlkey"],
         Description = (string)reader["description"],
         CreatedDate = (DateTime)reader["created_date"],
         CreatedBy = (Int64)reader["createdby"],
         ModifiedDate = (DateTime)reader["modified_date"],
         ModifiedBy = (Int64)reader["modifiedby"]
     };
     return ingredient;
 }