Supercell.GUT/Supercell.GUT.Server/Database/Document/MongoSerializeableBase.cs
BreadDEV 281d2789ea [v0.1.0] database implementation
not finished. early wip state
2024-03-06 22:00:12 +07:00

13 lines
322 B
C#

using System.Text.Json.Serialization;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Supercell.GUT.Server.Database.Document;
public abstract class MongoSerializeableBase
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
[JsonIgnore]
public string? MongoId { get; set; }
}