示例#1
0
 public AlbumSeed(MvcMusicStoreContext context)
 {
     context.Albums.Add(new Album
     {
         Artist = new Artist { Name = "Rush" },
         Genre = new Genre { Name = "Rock" },
         Price = 9.99m,
         Title = "Caravan",
     });
 }
示例#2
0
 public AlbumController(MvcMusicStoreContext context)
 {
     _context = context;
 }
 public SongsController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#4
0
 public OrderController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#5
0
 public TestController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#6
0
 public ArtistRepository(MvcMusicStoreContext context)
 {
     _mvcMusicStoreContext = context;
 }
示例#7
0
 public SampleController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#8
0
 public ArtistSeed(MvcMusicStoreContext context)
 {
     context.Artists.Add(new Artist { Name = "Al Di Meola" });
 }
示例#9
0
 public CheckoutController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#10
0
 public CatalogController(MvcMusicStoreContext context)
 {
     this._musicStoreContext = context;
 }
示例#11
0
 public ArtistsController(MvcMusicStoreContext context)
 {
     _context = context;
 }
示例#12
0
 public GenreSeed(MvcMusicStoreContext context)
 {
     context.Genres.Add(new Genre { Name = "Jazz" });
 }