Line data Source code
1 : using System;
2 : using System.ComponentModel.DataAnnotations;
3 : using System.Runtime.Serialization;
4 : using System.Data.Linq.Mapping;
5 :
6 : namespace Cqrs.Entities
7 : {
8 : [Serializable]
9 : [DataContract]
10 : public abstract class Entity : IEntity
11 0 : {
12 : [Required]
13 : [DataMember]
14 : [Column(IsPrimaryKey = true)]
15 : public virtual Guid Rsn { get; set; }
16 :
17 : [DataMember]
18 : [Column]
19 : public virtual int SortingOrder { get; set; }
20 :
21 : [Required]
22 : [DataMember]
23 : [Column]
24 : public virtual bool IsLogicallyDeleted { get; set; }
25 : }
26 : }
|