- Timestamp:
- 06/18/13 11:39:31 (12 years ago)
- Location:
- branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingContext.cs
r9619 r9641 85 85 internal UserConfiguration() { 86 86 this.HasMany(u => u.PaymentInformation).WithRequired(pi => pi.User).HasForeignKey(pi => pi.UserId); 87 this.HasRequired(u => u.ContactInformation).WithMany().HasForeignKey(u => u.ContactInformationId); 87 88 } 88 89 } … … 97 98 protected override void Seed(BillingContext context) { 98 99 Product p1 = new Product() { 99 Name = "OaaS B Asic Service Charge",100 Name = "OaaS Basic Service Charge", 100 101 Description = "Create and run your experiments within HeuristicLab Hive", 101 102 Price = 20.0, … … 137 138 LastName = "Mustermann", 138 139 Email = "max.mustermann@fh-hagenberg.at", 139 OrganizationName = "University of Applied Sciences Upper Austria School of Informatics/Communications/Media",140 OrganizationName = "University of Applied Sciences Upper Austria " + Environment.NewLine + "School of Informatics/Communications/Media", 140 141 Street = "Softwarepark 11", 141 142 PostalCode = "4232", 142 City = "Hagenberg" 143 City = "Hagenberg", 143 144 }; 144 145 145 146 ci1 = context.ContactInformations.Add(ci1); 147 u1.ContactInformation = ci1; 148 149 ContactInformation ci2 = new ContactInformation() { 150 FirstName = "Max", 151 LastName = "Mustermann", 152 Email = "max.mustermann@fh-hagenberg.at", 153 OrganizationName = "University of Applied Sciences Upper Austria " + Environment.NewLine + "School of Informatics/Communications/Media", 154 Street = "Softwarepark 11", 155 PostalCode = "4232", 156 City = "Hagenberg", 157 }; 158 159 ci2 = context.ContactInformations.Add(ci2); 160 u2.ContactInformation = ci2; 146 161 147 162 Order o1 = new Order() { -
branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingDao.cs
r9619 r9641 109 109 .Include(o => o.OrderLines) 110 110 .Include(o => o.User) 111 .Include(o => o.User.ContactInformation) 111 112 .Include(o => o.Invoices) 112 113 .Include(o => o.OrderLines.Select(ol => ol.Product))
Note: See TracChangeset
for help on using the changeset viewer.