/// <summary> Получение результата выполнения запроса (одно значение)</summary>
 public object ExecuteScalar(DataCommand command, DataConnection dc = null)
 {
     return(dc == null?DoAction(command.ExecuteScalar) : command.ExecuteScalar(dc));
 }
 /// <summary> Получение результата выполнения запроса в виде массива (одна строка)</summary>
 public object[] ExecuteRow(DataCommand command)
 {
     return(DoAction(command.ExecuteRow));
 }
 public void JoinVerticalTable(DataCommand command, Action <List <object[]> > onGroup)
 {
     DoAction(dc => command.JoinVerticalTable(dc, onGroup));
 }
 public DataCommand ReadObjectList(DataCommand command, Action <DataProvider.IDataRow> onRow)
 {
     return(DoAction(dc => command.ReadObjectList(dc, null, onRow)));
 }
 public List <T> GetObjectList <T>(DataCommand command, Func <DataProvider.IDataRow, T> onRow)
 {
     return(DoAction(dc => command.GetObjectList(dc, onRow)));
 }
 public List <T> GetObjectList <T>(DataCommand command)// where T : new()
 {
     return(DoAction(command.GetObjectList <T>));
 }
 /// <summary> Получение результата выполнения запроса </summary>
 public DataTable GetQueryResult(DataCommand command)
 {
     return(DoAction(command.GetQueryResult));
 }
Beispiel #8
0
 public IDataBulkCommand Add(DataCommand command)
 {
     CommandList.Add(command);
     return(this);
 }
Beispiel #9
0
 public DataBulkCommand <T> Add(string command, params object[] param)
 {
     CommandList.Add(DataCommand <T> .CreateCommand(command, param));
     return(this);
 }