private static IDataSource GetDataSource(HttpRequest request)
        {
            var sourceName = request.GetDataSource();

            // TODO, get the DbResource based on the sourceName
            var dbResources = new DbResources
            {
                DbTables = new List <string>
                {
                    "Table1"
                }
            };

            var dataSource = new SqlDataSource(dbResources);

            return(dataSource);
        }
Ejemplo n.º 2
0
 public SqlDataSource(DbResources dbResources)
 {
     _tableList = dbResources;
 }