Esempio n. 1
0
 public override void Set()
 {
     //Removing LocationBase mix-in fields
     if (!string.IsNullOrWhiteSpace(this.Mapping))
     {
         var model = new DeviceLocationMap {
             DeviceId = this.DeviceId, LocationBaseId = this.LocationBaseId, Mapping = this.Mapping
         };
         model.Set();
     }
     else
     {
         DeviceLocationMap.Delete(DeviceId, LocationBaseId);
     }
 }