syntax updates

This commit is contained in:
Kevin Kai Berthold 2023-09-22 22:16:56 +02:00
parent 283fa1abc2
commit 1e05d4576d
75 changed files with 3821 additions and 3905 deletions

View file

@ -2,39 +2,38 @@
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;
namespace Insight.Infrastructure.Entities
namespace Insight.Infrastructure.Entities;
[BsonIgnoreExtraElements]
public class HostOsEntity
{
[BsonIgnoreExtraElements]
public class HostOsEntity
{
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
public string? Id { get; set; }
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
public string? Id { get; set; }
[BsonElement("_host"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("host")]
public string? Host { get; set; }
[BsonElement("_host"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("host")]
public string? Host { get; set; }
[BsonElement("insert")]
public DateTime? Insert { get; set; }
[BsonElement("insert")]
public DateTime? Insert { get; set; }
[BsonElement("update")]
public DateTime? Update { get; set; }
[BsonElement("update")]
public DateTime? Update { get; set; }
[BsonElement("name")]
public string? Name { get; set; }
[BsonElement("name")]
public string? Name { get; set; }
[BsonElement("version")]
public string? Version { get; set; }
[BsonElement("version")]
public string? Version { get; set; }
[BsonElement("architecture")]
public string? Architecture { get; set; }
[BsonElement("architecture")]
public string? Architecture { get; set; }
[BsonElement("serialnumber")]
public string? SerialNumber { get; set; }
[BsonElement("serialnumber")]
public string? SerialNumber { get; set; }
[BsonElement("virtual")]
public bool? Virtual { get; set; }
[BsonElement("virtual")]
public bool? Virtual { get; set; }
[BsonElement("installed")]
public DateTime? Installed { get; set; }
}
[BsonElement("installed")]
public DateTime? Installed { get; set; }
}