Esempio n. 1
0
        public static NonMemberSettingEntity Map(this NonMemberSettings settings)
        {
            var entity = new NonMemberSettingEntity {
                id = settings.Id
            };

            settings.MapTo(entity);
            return(entity);
        }
Esempio n. 2
0
 void ISettingsRepository.UpdateNonMemberSettings(NonMemberSettings settings)
 {
     using (var dc = CreateContext())
     {
         var entity = GetNonMemberSettingsEntity(dc, settings.Id);
         if (entity != null)
         {
             settings.MapTo(entity);
             dc.SubmitChanges();
         }
     }
 }