Skip to content

Commit

Permalink
Add device model navigation property on device and lorawan device #1382
Browse files Browse the repository at this point in the history
… (#1611)
  • Loading branch information
hocinehacherouf authored Nov 28, 2022
1 parent 7cd794a commit 57a5d40
Show file tree
Hide file tree
Showing 6 changed files with 644 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AzureIoTHub.Portal.Domain/Entities/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ public class Device : EntityBase
/// List of custom device tags and their values.
/// </summary>
public ICollection<DeviceTagValue> Tags { get; set; }

/// <summary>
/// The device model
/// </summary>
public DeviceModel DeviceModel { get; set; }
}
}
5 changes: 5 additions & 0 deletions src/AzureIoTHub.Portal.Domain/Entities/LorawanDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,10 @@ public LorawanDevice()
/// Device Telemetries
/// </summary>
public ICollection<LoRaDeviceTelemetry> Telemetry { get; set; }

/// <summary>
/// The device model
/// </summary>
public DeviceModel DeviceModel { get; set; }
}
}
Loading

0 comments on commit 57a5d40

Please sign in to comment.