SocialPub/PrivaPub/Models/socialpub.cs

24 lines
579 B
C#
Raw Normal View History

2023-02-18 08:52:17 +01:00
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Entities;
2023-02-19 00:43:43 +01:00
namespace PrivaPub.Models.Data
2023-02-18 08:52:17 +01:00
{
[BsonIgnoreExtraElements]
2023-02-19 00:43:43 +01:00
public class PrivaPub : Entity
2023-02-18 08:52:17 +01:00
{
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; }
}
}