コード例 #1
0
        // The return type can be changed to IEnumerable, however to support
        // paging and sorting, the following parameters must be added:
        //     int maximumRows
        //     int startRowIndex
        //     out int totalRowCount
        //     string sortByExpression
        public IQueryable <RichalndCountyCheckRegistry.CountyCheck> CountyGridView_GetData()
        {
            CountyChecksDataContext  dc     = new CountyChecksDataContext();
            IQueryable <CountyCheck> checks = dc.CountyChecks.Where(p => p == p);

            return(checks);
        }
コード例 #2
0
 // The return type can be changed to IEnumerable, however to support
 // paging and sorting, the following parameters must be added:
 //     int maximumRows
 //     int startRowIndex
 //     out int totalRowCount
 //     string sortByExpression
 public IQueryable<RichalndCountyCheckRegistry.CountyCheck> CountyGridView_GetData()
 {
     CountyChecksDataContext dc = new CountyChecksDataContext();
         IQueryable<CountyCheck> checks = dc.CountyChecks.Where(p => p == p);
         return checks;
 }