Fixing typo
This commit is contained in:
parent
ad6869d560
commit
f960f2ca35
|
|
@ -25,12 +25,12 @@ namespace MusicStore.Models
|
||||||
{
|
{
|
||||||
// TODO: All this configuration needs to be done manually right now.
|
// TODO: All this configuration needs to be done manually right now.
|
||||||
// We can remove this once EF supports the conventions again.
|
// We can remove this once EF supports the conventions again.
|
||||||
builder.Entity<Album>().ForRelational.Table("Albums");
|
builder.Entity<Album>().ForRelational().Table("Albums");
|
||||||
builder.Entity<Artist>().ForRelational.Table("Artists");
|
builder.Entity<Artist>().ForRelational().Table("Artists");
|
||||||
builder.Entity<Order>().ForRelational.Table("Orders");
|
builder.Entity<Order>().ForRelational().Table("Orders");
|
||||||
builder.Entity<Genre>().ForRelational.Table("Genres");
|
builder.Entity<Genre>().ForRelational().Table("Genres");
|
||||||
builder.Entity<CartItem>().ForRelational.Table("CartItems");
|
builder.Entity<CartItem>().ForRelational().Table("CartItems");
|
||||||
builder.Entity<OrderDetail>().ForRelational.Table("OrderDetails");
|
builder.Entity<OrderDetail>().ForRelational().Table("OrderDetails");
|
||||||
|
|
||||||
builder.Entity<Album>().Key(a => a.AlbumId);
|
builder.Entity<Album>().Key(a => a.AlbumId);
|
||||||
builder.Entity<Artist>().Key(a => a.ArtistId);
|
builder.Entity<Artist>().Key(a => a.ArtistId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue