public virtual SelectedData SelectData(params SelectStatement[] selects) { var args = new DataStoreSelectDataEventArgs(selects); OnDataStoreSelectData(args); return(args.SelectedData ?? _dataStoreCore.SelectData(args.SelectStatements)); }
protected void OnDataStoreSelectData(DataStoreSelectDataEventArgs args) { if (DataStoreSelectData != null) { DataStoreSelectData(this, args); } }
public void SelectData(DataStoreSelectDataEventArgs args) { var resultSet = new List<SelectStatementResult>(); List<SelectedData> selectedDatas =args.SelectStatements.Select(stm => _dataStoreManager.SimpleDataLayers[_dataStoreManager.GetKey(stm.TableName)].SelectData(stm)).ToList(); foreach (SelectedData selectedData in selectedDatas.Where( selectedData => selectedData != null)) { resultSet.AddRange(selectedData.ResultSet); } args.SelectedData = new SelectedData(resultSet.ToArray()); }
public void SelectData(DataStoreSelectDataEventArgs args) { var resultSet = new List <SelectStatementResult>(); List <SelectedData> selectedDatas = args.SelectStatements.Select(stm => _dataStoreManager.SimpleDataLayers[_dataStoreManager.GetKeyInfo(stm.TableName)].SelectData(stm)).ToList(); foreach (SelectedData selectedData in selectedDatas.Where( selectedData => selectedData != null)) { resultSet.AddRange(selectedData.ResultSet); } args.SelectedData = new SelectedData(resultSet.ToArray()); }
private void Proxy_DataStoreSelectData(object sender, DataStoreSelectDataEventArgs e) { if (_tablesDictionary.Count > 0) FilterData(e.SelectStatements); }
private void Proxy_DataStoreSelectData(object sender, DataStoreSelectDataEventArgs e) { FilterData(e.SelectStatements); }
public virtual SelectedData SelectData(params SelectStatement[] selects) { var args = new DataStoreSelectDataEventArgs(selects); OnDataStoreSelectData(args); return args.SelectedData ?? dataLayerCore.SelectData(args.SelectStatements); }
protected void OnDataStoreSelectData(DataStoreSelectDataEventArgs args) { DataStoreSelectData?.Invoke(this, args); }
bool IsQueryingXPObjectType(DataStoreSelectDataEventArgs dataEventArgs) { return(dataEventArgs.SelectStatements.Select(statement => statement.TableName).Where(s => s == "XPObjectType").FirstOrDefault() != null); }
bool IsQueryingXPObjectType(DataStoreSelectDataEventArgs dataEventArgs){ return dataEventArgs.SelectStatements.Select(statement => statement.TableName).Where(s => s == "XPObjectType").FirstOrDefault() != null; }