Changeset 9641 for branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingContext.cs
- Timestamp:
- 06/18/13 11:39:31 (11 years ago)
- File:
-
- 1 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() {
Note: See TracChangeset
for help on using the changeset viewer.