mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Virtual member in constructor.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Aaru.CommonTypes.Metadata;
|
||||
|
||||
namespace Aaru.Database.Models
|
||||
@@ -50,6 +51,7 @@ namespace Aaru.Database.Models
|
||||
/// Builds a device from a device report
|
||||
/// </summary>
|
||||
/// <param name="report">Device report</param>
|
||||
[SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
|
||||
public Device(DeviceReportV2 report)
|
||||
{
|
||||
ATA = report.ATA;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Aaru.CommonTypes.Metadata;
|
||||
|
||||
namespace Aaru.Database.Models
|
||||
@@ -53,6 +54,7 @@ namespace Aaru.Database.Models
|
||||
/// Builds a device report model from a device report
|
||||
/// </summary>
|
||||
/// <param name="report">Device report</param>
|
||||
[SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
|
||||
public Report(DeviceReportV2 report)
|
||||
{
|
||||
ATA = report.ATA;
|
||||
|
||||
Reference in New Issue
Block a user