EntityDB.cs 327 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(Location))]
  8. public class EntityDB: Entity
  9. {
  10. protected EntityDB()
  11. {
  12. }
  13. protected EntityDB(long id): base(id)
  14. {
  15. }
  16. }
  17. }