Ejemplo n.º 1
0
        internal static UserAppleDeviceEntity Map(this AppleDevice device)
        {
            var entity = new UserAppleDeviceEntity();

            device.MapTo(entity);

            return(entity);
        }
Ejemplo n.º 2
0
 void IAppleDevicesRepository.UpdateUserAppleDevice(AppleDevice userDevice)
 {
     using (var dc = CreateContext())
     {
         var entity = GetUserAppleDeviceEntityQuery(dc, userDevice.Id);
         if (entity != null)
         {
             userDevice.MapTo(entity);
             dc.SubmitChanges();
         }
     }
 }