예제 #1
0
 internal Local_Database.CustomStyle ConvertToDBCustomStyle(SharedDataTypes.CustomStyle cs)
 {
     return(new Local_Database.CustomStyle
     {
         ID_CustomStyle = cs.CustomStyleId,
         Name = cs.Name,
         Description = cs.Description,
         ModifyDate = DateTime.Now
     });
 }
예제 #2
0
 public bool InsertCustomStyle(SharedDataTypes.CustomStyle cs)
 {
     localDb.CustomStyle.Add(converter.ConvertToDBCustomStyle(cs));
     return(localDb.SaveChanges() == 1);
 }