Exemple #1
0
 public List <Employee> ProjectEmployeeGet(int ID)
 {
     return(_context.Set <Employee>()
            .Join(_context.Set <ProjectEmployee>(), e => e.ID, pe => pe.EmployeeID, (e, pe) => new { e, pe })
            .Where(x => x.pe.ProjectID == ID)
            .Select(x => x.e)
            .ToList());
 }
 public TEntity Get(int id)
 {
     return(_context.Set <TEntity>().Find(id));
 }