2023-08-26 04:41:01 +00:00
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
using MongoDB.Bson.Serialization.IdGenerators;
|
|
|
|
|
|
2023-09-01 22:33:36 +00:00
|
|
|
namespace BotSharp.Plugin.MongoStorage;
|
2023-08-26 04:41:01 +00:00
|
|
|
|
|
|
|
|
[BsonIgnoreExtraElements(Inherited = true)]
|
|
|
|
|
public class MongoBase
|
|
|
|
|
{
|
2023-10-19 22:27:51 +00:00
|
|
|
[BsonId(IdGenerator = typeof(StringObjectIdGenerator))]
|
|
|
|
|
public string Id { get; set; }
|
2023-08-26 04:41:01 +00:00
|
|
|
}
|