- Timestamp:
- 06/19/13 15:25:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Model/Model.cs
r9641 r9645 2 2 using System; 3 3 using System.Collections.Generic; 4 using HeuristicLab.Services.Optimization.Billing.Interfaces; 4 5 namespace HeuristicLab.Services.Optimization.Billing.Model { 5 6 … … 14 15 */ 15 16 16 public class ContactInformation {17 public class ContactInformation : IObjectWithState { 17 18 public long ContactInformationId { get; set; } 18 19 public string OrganizationName { get; set; } … … 24 25 public string FirstName { get; set; } 25 26 public string Email { get; set; } 27 28 // Property is not mapped 29 // It is used to track state (disconnected entities) 30 public State EntityState { get; set; } 26 31 } 27 32 28 public class PaymentInformation {33 public class PaymentInformation : IObjectWithState { 29 34 public long PaymentInformationId { get; set; } 30 35 public long UserId { get; set; } … … 39 44 set { PaymentMethodValue = (int)value; } 40 45 } 46 47 public State EntityState { get; set; } 41 48 } 42 49 … … 60 67 } 61 68 62 public class Product {69 public class Product : IObjectWithState { 63 70 public long ProductId { get; set; } 64 71 public string Name { get; set; } … … 66 73 public string ProductType { get; set; } 67 74 public double Price { get; set; } 75 76 public State EntityState { get; set; } 68 77 } 69 78 70 public class User {79 public class User : IObjectWithState { 71 80 public long UserId { get; set; } 72 81 public long ContactInformationId { get; set; } … … 75 84 public virtual IList<PaymentInformation> PaymentInformation { get; set; } 76 85 public virtual ContactInformation ContactInformation { get; set; } 86 87 public State EntityState { get; set; } 77 88 } 78 89 … … 85 96 } 86 97 87 public class Order {98 public class Order : IObjectWithState { 88 99 public long OrderId { get; set; } 89 100 public long UserId { get; set; } … … 112 123 set { BillingPeriodValue = (int)value; } 113 124 } 125 126 public State EntityState { get; set; } 114 127 } 115 128 116 public class OrderLine {129 public class OrderLine : IObjectWithState { 117 130 public long OrderLineId { get; set; } 118 131 public long OrderId { get; set; } … … 123 136 public virtual Order Order { get; set; } 124 137 public virtual Product Product { get; set; } 138 139 public State EntityState { get; set; } 125 140 } 126 141 … … 129 144 } 130 145 131 public class Invoice {146 public class Invoice : IObjectWithState { 132 147 public long InvoiceId { get; set; } 133 148 public long UserId { get; set; } … … 148 163 set { StatusValue = (int)value; } 149 164 } 165 166 public State EntityState { get; set; } 150 167 } 151 168 152 public class InvoiceLine {169 public class InvoiceLine : IObjectWithState { 153 170 public long InvoiceLineId { get; set; } 154 171 public long InvoiceId { get; set; } … … 159 176 public virtual Invoice Invoice { get; set; } 160 177 public virtual Product Product { get; set; } 178 179 public State EntityState { get; set; } 161 180 } 162 181 163 public class UsageRecord {182 public class UsageRecord : IObjectWithState { 164 183 public long UsageRecordId { get; set; } 165 184 public long UserId { get; set; } … … 172 191 public virtual User User { get; set; } 173 192 public virtual Product Product { get; set; } 193 194 public State EntityState { get; set; } 174 195 } 175 196 }
Note: See TracChangeset
for help on using the changeset viewer.