Database.cs içine aşağıdaki kodu ekleyin:
/// <summary>
/// Cem - ExecuteDataTable da olsun.
/// </summary>
/// <param name="cmd"></param>
/// <returns></returns>
public virtual DataTable ExecuteDataTable(DbCommand cmd)
{
DataTable dataTable = new DataTable();
using (ConnectionWrapper wrapper = GetOpenConnection())
{
cmd.Connection=wrapper.Connection;
using (DbDataAdapter dbDataAdapter = GetDataAdapter(UpdateBehavior.Standard))
{
((IDbDataAdapter)dbDataAdapter).SelectCommand = cmd;
dbDataAdapter.Fill(dataTable);
}
}
return dataTable;
}