Line data Source code
1 : using System;
2 : using System.ComponentModel.DataAnnotations;
3 : using System.Runtime.Serialization;
4 : using MongoDB.Bson.Serialization.Attributes;
5 :
6 : namespace Cqrs.Mongo.Entities
7 : {
8 : [Serializable]
9 : [DataContract]
10 : public abstract class MongoEntity : Cqrs.Entities.Entity
11 0 : {
12 : [Required]
13 : [BsonId]
14 : [DataMember]
15 : public override Guid Rsn { get; set; }
16 :
17 : [DataMember]
18 : public override int SortingOrder { get; set; }
19 :
20 : [Required]
21 : [DataMember]
22 : public override bool IsLogicallyDeleted { get; set; }
23 : }
24 : }
|