DBEntity.cs 332 B

12345678910111213141516171819
  1. using MongoDB.Bson.Serialization.Attributes;
  2. namespace Model
  3. {
  4. [BsonIgnoreExtraElements]
  5. [BsonKnownTypes(typeof(RechargeRecord))]
  6. [BsonKnownTypes(typeof(Recharge))]
  7. [BsonKnownTypes(typeof(DBSceneEntity))]
  8. public class DBEntity: Entity
  9. {
  10. protected DBEntity()
  11. {
  12. }
  13. protected DBEntity(long id): base(id)
  14. {
  15. }
  16. }
  17. }