public IEnumerable <Content> GetContentWithType() { var contentData = db_context.Set <Content>().ToList(); foreach (var content in contentData) { content.ContentTypes = db_context.Set <TypeMaster>().Find(content.ContentType); } return(contentData); }
public GenericRepository() { this.dbSet = context.Set <TEntity>(); }
public GenericRepository(KovaiLogDBContext dbContext) { context = dbContext; dbSet = context.Set <TEntity>(); }