internal static UserAppleDeviceEntity Map(this AppleDevice device) { var entity = new UserAppleDeviceEntity(); device.MapTo(entity); return(entity); }
void IAppleDevicesRepository.UpdateUserAppleDevice(AppleDevice userDevice) { using (var dc = CreateContext()) { var entity = GetUserAppleDeviceEntityQuery(dc, userDevice.Id); if (entity != null) { userDevice.MapTo(entity); dc.SubmitChanges(); } } }