Ejemplo n.º 1
0
 public Local_Database.Shape ConvertToDBShape(SharedDataTypes.Shape s)
 {
     return(new Local_Database.Shape
     {
         ID_Shape = s.ShapeId,
         Name = s.Name,
         Image = s.Image,
         ModifyDate = DateTime.Now
     });
 }
Ejemplo n.º 2
0
 public DataBases.Shape ConvertToDBShape(SharedDataTypes.Shape shape)
 {
     return(new DataBases.Shape
     {
         ID_Shape = shape.ShapeId,
         Name = shape.Name,
         Image = shape.Image,
         ModifyDate = DateTime.Now
     });
 }
Ejemplo n.º 3
0
 public bool InsertShape(SharedDataTypes.Shape s)
 {
     localDb.Shape.Add(converter.ConvertToDBShape(s));
     return(localDb.SaveChanges() == 1);
 }