Line data Source code
1 : using System;
2 : using System.Data.Linq.Mapping;
3 : using System.Runtime.Serialization;
4 : using Cqrs.Entities;
5 :
6 : namespace Cqrs.Tests.Substitutes
7 : {
8 : [Serializable]
9 : [DataContract]
10 : [Table(Name = "Orders")]
11 : public class OrderEntity : Entity
12 0 : {
13 : [DataMember]
14 : [Column]
15 : public override Guid Rsn { get; set; }
16 :
17 : [DataMember]
18 : [Column]
19 : public override int SortingOrder { get; set; }
20 :
21 : [DataMember]
22 : [Column]
23 : public override bool IsLogicallyDeleted { get; set; }
24 :
25 : [DataMember]
26 : [Column(Name = "OrderID", IsPrimaryKey = true, IsDbGenerated = true)]
27 : public virtual int OrderId { get; set; }
28 :
29 : [DataMember]
30 : [Column(Name = "CustomerID")]
31 : public virtual string CustomerId { get; set; }
32 :
33 : [DataMember]
34 : [Column(Name = "EmployeeID")]
35 : public virtual int? EmployeeId { get; set; }
36 :
37 : [DataMember]
38 : [Column]
39 : public virtual DateTime? OrderDate { get; set; }
40 :
41 : [DataMember]
42 : [Column]
43 : public virtual DateTime? RequiredDate { get; set; }
44 :
45 : [DataMember]
46 : [Column]
47 : public virtual DateTime? ShippedDate { get; set; }
48 :
49 : [DataMember]
50 : [Column(Name = "ShipVia")]
51 : public virtual int? ShipViaId { get; set; }
52 :
53 : [DataMember]
54 : [Column]
55 : public virtual decimal? Freight { get; set; }
56 :
57 : [DataMember]
58 : [Column]
59 : public virtual string ShipName { get; set; }
60 :
61 : [DataMember]
62 : [Column]
63 : public virtual string ShipAddress { get; set; }
64 :
65 : [DataMember]
66 : [Column]
67 : public virtual string ShipCity { get; set; }
68 :
69 : [DataMember]
70 : [Column]
71 : public virtual string ShipRegion { get; set; }
72 :
73 : [DataMember]
74 : [Column]
75 : public virtual string ShipPostalCode { get; set; }
76 :
77 : [DataMember]
78 : [Column]
79 : public virtual string ShipCountry { get; set; }
80 : }
81 : }
|