- Timestamp:
- 06/04/13 10:59:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Model/Model.cs
r9558 r9576 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 3 6 4 namespace HeuristicLab.Services.Optimization.Billing.Model { 7 5 public class ContactInformation { 8 public long Id { get; set; }6 public long ContactInformationId { get; set; } 9 7 public string OrganizationName { get; set; } 10 8 public string Street { get; set; } … … 26 24 27 25 public class Product { 28 public long Id { get; set; }26 public long ProductId { get; set; } 29 27 public string Name { get; set; } 30 28 public string Description { get; set; } … … 34 32 35 33 public class User { 34 public long UserId { get; set; } 36 35 public string Name { get; set; } 37 36 } … … 46 45 47 46 public class Order { 48 public long Id { get; set; }49 public User User{ get; set; }47 public long OrderId { get; set; } 48 public long UserId { get; set; } 50 49 public string BillingType { get; set; } 51 public OrderState State{ get; set; }50 public long OrderStateId { get; set; } 52 51 public string BillingPeriod { get; set; } 53 52 public DateTime ActiveSince { get; set; } 54 53 public DateTime ActiveUntil { get; set; } 55 public IList<Invoice> Invoices { get; set; } 56 public IList<OrderLine> OrderLines { get; set; } 54 55 56 public virtual User User { get; set; } 57 public virtual OrderState State { get; set; } 58 public virtual IList<Invoice> Invoices { get; set; } 59 public virtual IList<OrderLine> OrderLines { get; set; } 57 60 } 58 61 59 62 public class OrderLine { 60 public long Id { get; set; }61 public Order Order{ get; set; }62 public Product Product{ get; set; }63 public long OrderLineId { get; set; } 64 public long OrderId { get; set; } 65 public long ProductId { get; set; } 63 66 public int Quantity { get; set; } 64 67 public double ProductPrice { get; set; } 68 69 public virtual Order Order { get; set; } 70 public virtual Product Product { get; set; } 65 71 } 66 72 67 73 public class Invoice { 68 public long Id { get; set; } 69 public User User { get; set; } 74 public long InvoiceId { get; set; } 75 public long UserId { get; set; } 76 public long OrderId { get; set; } 70 77 public DateTime Due { get; set; } 71 78 public string Status { get; set; } 72 79 public string InvoiceDocument { get; set; } 73 public Order Order { get; set; } 80 81 public virtual User User { get; set; } 82 public virtual Order Order { get; set; } 74 83 } 75 84 76 85 public class InvoiceLine { 77 public long I d { get; set; }78 public Invoice Invoice{ get; set; }79 public Product Product{ get; set; }86 public long InvoiceLineId { get; set; } 87 public long InvoiceId { get; set; } 88 public long ProductId { get; set; } 80 89 public int Quantity { get; set; } 81 90 public double ProductPrice { get; set; } 91 92 public virtual Invoice Invoice { get; set; } 93 public virtual Product Product { get; set; } 82 94 } 83 95 84 public class Usage { 85 public long Id { get; set; } 86 public User User { get; set; } 87 public IList<UsageLine> UsageLines { get; set; } 96 public class UsageRecord { 97 public long UsageRecordId { get; set; } 98 public long UserId { get; set; } 99 100 public virtual User User { get; set; } 101 public virtual IList<UsageRecordLine> UsageRecordLines { get; set; } 88 102 } 89 103 90 public class Usage Line {91 public long Id { get; set; }92 public Usage Usage{ get; set; }104 public class UsageRecordLine { 105 public long UsageRecordLineId { get; set; } 106 public long UsageRecordId { get; set; } 93 107 public DateTime Begin { get; set; } 94 108 public DateTime End { get; set; } 109 110 public virtual UsageRecord UsageRecord { get; set; } 95 111 } 96 112 }
Note: See TracChangeset
for help on using the changeset viewer.