12 lines
300 B
C#
12 lines
300 B
C#
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson.Serialization.IdGenerators;
|
|
|
|
namespace BotSharp.Plugin.MongoStorage;
|
|
|
|
[BsonIgnoreExtraElements(Inherited = true)]
|
|
public class MongoBase
|
|
{
|
|
[BsonId(IdGenerator = typeof(StringObjectIdGenerator))]
|
|
public string Id { get; set; }
|
|
}
|