コード例 #1
0
        public static JobAdListEntity Map(this JobAdList list)
        {
            var entity = new JobAdListEntity {
                id = list.Id
            };

            list.MapTo(entity);
            return(entity);
        }
コード例 #2
0
 void IJobAdListsRepository.UpdateList(JobAdList list)
 {
     using (var dc = CreateContext())
     {
         var entity = GetListEntity(dc, list.Id);
         if (entity != null)
         {
             list.MapTo(entity);
             dc.SubmitChanges();
         }
     }
 }