Beispiel #1
0
    DataTable IBaseBOL.GetDataSource(SearchFilterCollection sFilterCols, string SortString, int PageSize, int CurrentPage)
    {
        string    WhereCond  = Tools.GetCondition(sFilterCols);
        var       ListResult = dataContext.ExecuteQuery <vNews>(string.Format("exec spGetPaged '{0}','{1}','{2}','{3}',N'{4}'", TableOrViewName, SortString, PageSize, CurrentPage, WhereCond));
        DataTable dt         = new Converter <vNews>().ToDataTable(ListResult);

        return(dt);
    }