- Timestamp:
- 06/18/13 11:39:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Model/Model.cs
r9619 r9641 7 7 * Note: enum support 8 8 * Although we use EF5 enums are not supported as we target .NET 4.0. 9 * Therefor we use the following workaround:9 * Therefore we use the following workaround: 10 10 * Just create an int property on your class to represent the int value of the enum. 11 11 * That's the property that EF should map, then have a "mini wrapper" property to allow you to use the enum … … 70 70 public class User { 71 71 public long UserId { get; set; } 72 public long ContactInformationId { get; set; } 72 73 public string Name { get; set; } 73 74 74 75 public virtual IList<PaymentInformation> PaymentInformation { get; set; } 75 76 public virtual ContactInformation ContactInformation { get; set; } 76 77 } 77 78
Note: See TracChangeset
for help on using the changeset viewer.