SocialPub/PrivaPub/Models/socialpub.cs
2023-02-19 00:43:43 +01:00

24 lines
579 B
C#

using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Entities;
namespace PrivaPub.Models.Data
{
[BsonIgnoreExtraElements]
public class PrivaPub : Entity
{
public DateTime Timestamp { get; set; }
public string Level { get; set; }
public string RenderedMessage { get; set; }
[BsonIgnoreIfDefault, BsonIgnoreIfNull]
public DbLogProperties Properties { get; set; }
[BsonIgnoreIfDefault, BsonIgnoreIfNull]
public string Exception { get; set; }
}
[BsonIgnoreExtraElements]
public class DbLogProperties
{
public string SourceContext { get; set; }
}
}