public ExecuteSelectStatement ( string selectStatement ) : |
||
selectStatement | string | |
return |
public DataTable ExecuteSelectStatement(string selectStatement)
{
using (var connection = new SqlConnection(_connectionString))
{
SqlDataAdapter adap;
adap = new SqlDataAdapter(selectStatement, connection);
var dsSelectResult = new DataTable();
adap.Fill(dsSelectResult);
return dsSelectResult;
}
}