public async Task <List <T> > GetGroupReportAsync <T>(SettingsDBContext dbConnection, DbDataReader reader) where T : new()
        {
            List <T> totalList = GetResultSet <T>(dbConnection, reader);
            await reader.NextResultAsync();

            return(totalList);
        }
 public List <T> GetResultSet <T>(SettingsDBContext db, DbDataReader reader) where T : new() => ((IObjectContextAdapter)db).ObjectContext.Translate <T>(reader).ToList();
 public EmployerReportRepository()
 {
     dbConnection = new SettingsDBContext("name=" + Constants.SqlConnectionString);
 }
Example #4
0
 public GroupRepository()
 {
     dbConnection = new SettingsDBContext("name=" + Constants.SqlConnectionString);
 }