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