示例#1
0
 public IActionResult Create()
 {
     ViewData["MovieFk"] = new SelectList(_context.Set <Movie>(), "Id", "MovieName");
     return(View());
 }
示例#2
0
 public BaseRepository(MSMContext context)
 {
     DbSet      = context.Set <TEntity>();
     _dbContext = context;
 }