public async Task <IEnumerable <AnnualReportTableObject> > GetAnnualReportsAsync(string userId, bool isAdmin, string searchdata, int page, int pageSize, int sortKey, bool auth)
        {
            var items = EPlastDBContext.Set <AnnualReportTableObject>().FromSqlRaw(
                "dbo.getCityAnnualReportsInfo @userId={0}, @AdminRole={1}, @searchData = {2}, @PageIndex ={3}, @PageSize={4}, @sort={5}, @auth={6}",
                userId, isAdmin ? 1 : 0, searchdata, page, pageSize, sortKey, auth ? 1 : 0);

            return(items);
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <RegionMembersInfoTableObject> > GetRegionMembersInfoAsync(int regionId, int year, bool?getGeneral,
                                                                                                  int?page, int?pageSize)
        {
            var items = EPlastDBContext.Set <RegionMembersInfoTableObject>().FromSqlRaw(
                "dbo.GetRegionMembersInfo @regionId={0}, @year={1}, @GetGeneral={2}, @PageIndex ={3}, @PageSize={4}",
                regionId, year, getGeneral, page, pageSize);

            return(items);
        }
        public async Task <Tuple <IEnumerable <UserTableObject>, int> > GetUserTableObjects(int pageNum, int pageSize, string tab, string regions, string cities, string clubs, string degrees, string searchData)
        {
            var items = EPlastDBContext.Set <UserTableObject>().FromSqlRaw("dbo.usp_GetUserInfo @PageIndex = {0}, @PageSize = {1}, @tab = {2}, @filterRegion = {3}, " +
                                                                           "@filterCity = {4}, @filterClub = {5}, @filterDegree = {6}, @searchData = {7}", pageNum, pageSize, tab, regions, cities, clubs, degrees, searchData);

            var num      = items.Select(u => u.Count).ToList();
            int rowCount = num[0];

            return(new Tuple <IEnumerable <UserTableObject>, int>(items, rowCount));
        }
Ejemplo n.º 4
0
 public MethodicDocumentRepository(EPlastDBContext dbContext) : base(dbContext)
 {
 }
Ejemplo n.º 5
0
 public EventCategoryRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 6
0
 public NotificationTypeRepository(EPlastDBContext dbContext) : base(dbContext)
 {
 }
Ejemplo n.º 7
0
 public RepositoryWrapper(EPlastDBContext ePlastDBContext)
 {
     _dbContext = ePlastDBContext;
 }
Ejemplo n.º 8
0
 public UserRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 9
0
 public UserPrecautionRepository(EPlastDBContext dBContext)
     : base(dBContext)
 {
 }
Ejemplo n.º 10
0
 public RegionAdministrationRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 11
0
 public RegionAnnualReportRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 12
0
 public AdminTypeRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 13
0
 public ClubRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 14
0
 public EventAdminRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 15
0
 public NationalityRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 16
0
 public DocumentTemplateRepository(EPlastDBContext dbContext) : base(dbContext)
 {
 }
 public UserMembershipDatesRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 18
0
 public ClubAnnualReportRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 19
0
 public IEnumerable <UserTableObject> GetUserTableObjects(int pageNum, int pageSize)
 {
     return(EPlastDBContext.Set <UserTableObject>().FromSqlRaw("dbo.usp_GetUserInfo @PageIndex = {0}, @PageSize = {1}", pageNum, pageSize));
 }
Ejemplo n.º 20
0
 public CityManagementsRepository(EPlastDBContext dBContext)
     : base(dBContext)
 {
 }
Ejemplo n.º 21
0
 public MembersStatisticsRepository(EPlastDBContext dBContext)
     : base(dBContext)
 {
 }
Ejemplo n.º 22
0
 public CityLegalStatusesRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
 public AnnualReportsRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 24
0
 public RepositoryBase(EPlastDBContext ePlastDBContext)
 {
     this.EPlastDBContext = ePlastDBContext;
 }
Ejemplo n.º 25
0
 public RegionRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 26
0
 public CityMembersRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 27
0
 public GoverningBodyDocumentsRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 28
0
 public EventTypeRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 29
0
 public EventStatusRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 30
0
 public GallaryRepository(EPlastDBContext dbContext)
     : base(dbContext)
 {
 }