예제 #1
0
        public async Task <DataTable> QueryTableAsync()
        {
            DataConnection.InitCommand(CommandType, CommandText, Parameters, null);
            Dictionary <string, CustomerParam> param = new Dictionary <string, CustomerParam>();

            if (Parameters != null && Parameters.Length > 0)
            {
                param = SetParameters(DataConnection, Parameters);
            }

            return(await AsyncExtensions.GetTask(() => DataConnection.ExecuteDataTable(CommandText, param), CancellationToken.None));
        }