/// <summary>
 /// Initializes a new instance of the <see cref="OrderCategoryConfiguration" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 public OrderCategoryConfiguration(OrderRepository repository)
 {
     repository.ConfigureEntity(this);
     this.ToTable("Categories").HasKey(x => x.CategoryId);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderProductConfiguration" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 public OrderProductConfiguration(OrderRepository repository)
 {
     repository.ConfigureEntity(this);
     this.ToTable("Products").HasKey(x => x.ProductId);
 }