Example #1
0
 protected override Album UpdateEntity(MusicalogContext entityContext, Album entity)
 {
     return(entityContext.AlbumSet.FirstOrDefault(cn => cn.AlbumId == entity.AlbumId));
 }
Example #2
0
 protected override IQueryable <Album> GetEntities(MusicalogContext entityContext)
 {
     return(entityContext.AlbumSet);
 }
Example #3
0
 protected override Album GetEntity(MusicalogContext entityContext, int id)
 {
     return(entityContext.AlbumSet.FirstOrDefault(cn => cn.AlbumId == id));
 }
Example #4
0
 protected override Album AddEntity(MusicalogContext entityContext, Album entity)
 {
     return(entityContext.AlbumSet.Add(entity));
 }