protected void Page_Load(object sender, EventArgs e) { using (IMoBContext context = new MoBContext()) { //last 20 Artist records created var newArtistsQuery = (from m in context.Artists orderby m.CreateDate descending select m).Take(20); List <Artist> newArtistsList = newArtistsQuery.ToList <Artist>(); NewArtistDataList.DataSource = newArtistsList; NewArtistDataList.DataBind(); } }
public BandController(MoBContext context) { _context = context; }
public LookupListViewComponent(MoBContext db) { _db = db; }
public TagCloudViewComponent(MoBContext dbcontext) { _context = dbcontext; }
public LookupListViewComponent(MoBContext dbContext) { _dbContext = dbContext; }