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();
            }
        }
Beispiel #2
0
 public CollaborationSpaceRepository(MoBContext context) : base(context)
 {
 }
 public Repository(MoBContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <TEntity>();
 }
 public LookupListViewComponent(MoBContext db)
 {
     _db = db;
 }
Beispiel #5
0
 public ArtistRepository(MoBContext context) : base(context)
 {
 }