Interface IDataStructure
Data object structure
Namespace: XData.DataSource.Structure
Assembly: XData.docfx.dll
Syntax
public interface IDataStructure
Properties
| Improve this Doc View SourceBaseSource
Base source
Declaration
ITableLike BaseSource { get; }
Property Value
Type | Description |
---|---|
ITableLike |
Context
Data structure context
Declaration
string Context { get; }
Property Value
Type | Description |
---|---|
String |
Distinct
Structure distinct values flag
Declaration
bool Distinct { get; }
Property Value
Type | Description |
---|---|
Boolean |
FilterValues
Runtime filter values
Declaration
SortedList<string, object> FilterValues { get; }
Property Value
Type | Description |
---|---|
SortedList<String, Object> |
Flags
Data object flags
Declaration
DataStructureFlag Flags { get; }
Property Value
Type | Description |
---|---|
DataStructureFlag |
GroupBy
Group by list
Declaration
List<Grouping> GroupBy { get; }
Property Value
Type | Description |
---|---|
List<Grouping> |
Hint
Query hints
Declaration
HintInfo[] Hint { get; set; }
Property Value
Type | Description |
---|---|
HintInfo[] |
Inverse
Structure filters inverse flag
Declaration
bool Inverse { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsReadOnly
Read only structure flag
Declaration
bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSubquery
Subquery flag
Declaration
bool IsSubquery { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsUnion
Combined structure flag
Declaration
bool IsUnion { get; }
Property Value
Type | Description |
---|---|
Boolean |
Limit
Limit objects count
Declaration
int? Limit { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
ObjectType
Structure data object type
Declaration
Type ObjectType { get; }
Property Value
Type | Description |
---|---|
Type |
OrderBy
Order by list
Declaration
List<Order> OrderBy { get; }
Property Value
Type | Description |
---|---|
List<Order> |
Parameters
Stored procedure parameters definitions
Declaration
List<IParameterDescription> Parameters { get; }
Property Value
Type | Description |
---|---|
List<IParameterDescription> |
ResultSets
Stored procedure result sets
Declaration
IResultSetDescription[] ResultSets { get; }
Property Value
Type | Description |
---|---|
IResultSetDescription[] |
ReverseOrder
Structure reversion order flag
Declaration
bool ReverseOrder { get; }
Property Value
Type | Description |
---|---|
Boolean |
RootFilterCombination
Structure root filter combination
Declaration
IFilterCombination RootFilterCombination { get; }
Property Value
Type | Description |
---|---|
IFilterCombination |
Skip
Skip objects count
Declaration
int? Skip { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Sources
Sources
Declaration
SortedSet<IDataSource> Sources { get; }
Property Value
Type | Description |
---|---|
SortedSet<IDataSource> |
StructureType
Structure type full name
Declaration
string StructureType { get; }
Property Value
Type | Description |
---|---|
String |
UnionCombination
Data object structure combination
Declaration
DataCombination UnionCombination { get; }
Property Value
Type | Description |
---|---|
DataCombination |
Methods
| Improve this Doc View SourceFillSkippedSources(SortedList<String, Object>, out ICollection<String>)
Fill skipped sources list
Declaration
bool FillSkippedSources(SortedList<string, object> filterValues, out ICollection<string> skipped)
Parameters
Type | Name | Description |
---|---|---|
SortedList<String, Object> | filterValues | Filter values |
ICollection<String> | skipped | Returned skipped sources list |
Returns
Type | Description |
---|---|
Boolean | Structure skipped flag |
GetField(String, String, out String, out String)
Returns field
Declaration
IField GetField(string sourceAlias, string fieldName, out string alias, out string fullName)
Parameters
Type | Name | Description |
---|---|---|
String | sourceAlias | Source alias |
String | fieldName | Field name |
String | alias | Relative alias |
String | fullName | Relative full name of field |
Returns
Type | Description |
---|---|
IField | Field object |
GetFields()
Returns selectable fields
Declaration
IEnumerable<SelectedField> GetFields()
Returns
Type | Description |
---|---|
IEnumerable<SelectedField> | Selectable fields sequence |
GetParent(String)
Returns parent structure by object type
Declaration
IDataStructure GetParent(string parentType)
Parameters
Type | Name | Description |
---|---|---|
String | parentType | Parent object type |
Returns
Type | Description |
---|---|
IDataStructure | Structure |
GetPrimaryKey()
Returns data object unique key fields
Declaration
IEnumerable<SelectedField> GetPrimaryKey()
Returns
Type | Description |
---|---|
IEnumerable<SelectedField> | Unique key fields sequence |
GetSubqueryVariables(String)
Subquery variables
Declaration
SortedList<string, object> GetSubqueryVariables(string subqueryAlias)
Parameters
Type | Name | Description |
---|---|---|
String | subqueryAlias | Subquery alias |
Returns
Type | Description |
---|---|
SortedList<String, Object> | Subquery variables |
GetVariableValue(String)
Returns variable value
Declaration
object GetVariableValue(string variableName)
Parameters
Type | Name | Description |
---|---|---|
String | variableName | Variable name |
Returns
Type | Description |
---|---|
Object | Variable value |
IsOuterJoined(String, String)
Check source is outer joined to parent
Declaration
bool IsOuterJoined(string alias, string parentAlias)
Parameters
Type | Name | Description |
---|---|---|
String | alias | Checked source alias |
String | parentAlias | Parent source alias |
Returns
Type | Description |
---|---|
Boolean | Outer joined flag |