Пример #1
0
 private Model.Plant ConvertPlant(Plant plant)
 {
     if (plant != null)
     {
         Model.Plant mPlant = new Model.Plant
         {
             ID          = plant.id,
             LName       = plant.lname,
             CName       = plant.cname,
             ImageURL    = plant.imgurl,
             Description = plant.description,
             SDays       = plant.sdays
         };
         return(mPlant);
     }
     else
     {
         return(null);
     }
 }
Пример #2
0
 partial void UpdatePlant(Plant instance);
Пример #3
0
 partial void DeletePlant(Plant instance);
Пример #4
0
 partial void InsertPlant(Plant instance);