Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="cdmdotnet Limited">
4 : // // Copyright cdmdotnet Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using System.ComponentModel.DataAnnotations;
11 : using System.Runtime.Serialization;
12 : using MongoDB.Bson.Serialization.Attributes;
13 :
14 : namespace Cqrs.MongoDB.Entities
15 : {
16 : [Serializable]
17 : [DataContract]
18 : public abstract class MongoEntity : Cqrs.Entities.Entity
19 0 : {
20 : [Required]
21 : [BsonId]
22 : [DataMember]
23 : public override Guid Rsn { get; set; }
24 :
25 : [DataMember]
26 : public override int SortingOrder { get; set; }
27 :
28 : [Required]
29 : [DataMember]
30 : public override bool IsLogicallyDeleted { get; set; }
31 : }
32 : }
|