Class SentryQueryInfo
Information about a query - like table infos, etc.
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public abstract class SentryQueryInfo : Object, IEnumerable<TableInfo>, IEnumerable
Constructors
SentryQueryInfo(TableInfo)
Information about a query - like table infos, etc.
Declaration
protected SentryQueryInfo(TableInfo mainTable)
Parameters
Type | Name | Description |
---|---|---|
TableInfo | mainTable |
Properties
HasVisibleFor
Does this table have VisibleFor.
Declaration
public abstract bool HasVisibleFor { get; }
Property Value
Type | Description |
---|---|
Boolean |
MainTable
Main table for the sentry.
Declaration
public TableInfo MainTable { get; }
Property Value
Type | Description |
---|---|
TableInfo |
ParentFields
All field infos referring to the main table's primary key.
Declaration
public abstract FieldInfo[] ParentFields { get; }
Property Value
Type | Description |
---|---|
FieldInfo[] |
VisibleForTableInfo
Table info for the related VisibleFor table.
Declaration
public abstract VisibleForTableInfo VisibleForTableInfo { get; }
Property Value
Type | Description |
---|---|
VisibleForTableInfo |
Methods
AnalyzeQuery(PrivateSelect)
Should not be called by partners!
Declaration
public abstract void AnalyzeQuery(PrivateSelect sql)
Parameters
Type | Name | Description |
---|---|---|
PrivateSelect | sql | Query to analyze |
Remarks
Should not be called by partners: Analyze the query during the query execution process.
CanCoverTable(TableInfo)
Should not be called by partners!
Declaration
public abstract bool CanCoverTable(TableInfo table)
Parameters
Type | Name | Description |
---|---|---|
TableInfo | table | Information about the table to analyze. |
Returns
Type | Description |
---|---|
Boolean | True if this now is a table that can be covered. |
Remarks
Should not be called by partners: Check if this is a table that can be covered. If so, add it to the list of covered tables.
GetEnumerator()
Enumerator for all instances of TableInfo in the query.
Declaration
public abstract IEnumerator<TableInfo> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<TableInfo> | Enumerator for all instances of TableInfo in the query. |