Class SqlTable
public class SqlTable : SqlExpressionBase, ISqlTableSource, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>
- Inheritance
-
SqlTable
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SqlTable(SqlTable)
public SqlTable(SqlTable table)
Parameters
tableSqlTable
SqlTable(SqlTable, IEnumerable<SqlField>, ISqlExpression[])
public SqlTable(SqlTable table, IEnumerable<SqlField> fields, ISqlExpression[] tableArguments)
Parameters
tableSqlTablefieldsIEnumerable<SqlField>tableArgumentsISqlExpression[]
SqlTable(EntityDescriptor, string?)
public SqlTable(EntityDescriptor entityDescriptor, string? physicalName = null)
Parameters
entityDescriptorEntityDescriptorphysicalNamestring
SqlTable(Type, int?, SqlObjectName)
protected SqlTable(Type objectType, int? sourceId, SqlObjectName tableName)
Parameters
objectTypeTypesourceIdint?tableNameSqlObjectName
Properties
Alias
public string? Alias { get; set; }
Property Value
All
public SqlField All { get; }
Property Value
CanBeNull
public bool CanBeNull { get; set; }
Property Value
ElementType
AST node type.
public override QueryElementType ElementType { get; }
Property Value
Expression
Custom SQL expression format string (used together with TableArguments) to transform SqlTable to custom table expression. Arguments:
- {0}: TableName
- {1}: Alias
- {2+}: arguments from TableArguments (with index adjusted by 2)
public string? Expression { get; set; }
Property Value
Fields
public List<SqlField> Fields { get; }
Property Value
ID
public virtual string? ID { get; set; }
Property Value
IdentityFields
public IReadOnlyList<SqlField> IdentityFields { get; }
Property Value
ObjectType
public Type ObjectType { get; protected set; }
Property Value
Precedence
public override int Precedence { get; }
Property Value
SequenceAttributes
public SequenceNameAttribute[]? SequenceAttributes { get; protected set; }
Property Value
SourceID
public int SourceID { get; }
Property Value
SqlQueryExtensions
public List<SqlQueryExtension>? SqlQueryExtensions { get; set; }
Property Value
SqlTableType
public virtual SqlTableType SqlTableType { get; set; }
Property Value
SystemType
public override Type SystemType { get; }
Property Value
TableArguments
public ISqlExpression[]? TableArguments { get; set; }
Property Value
TableName
public virtual SqlObjectName TableName { get; set; }
Property Value
TableOptions
public TableOptions TableOptions { get; set; }
Property Value
Methods
Add(SqlField)
public void Add(SqlField field)
Parameters
fieldSqlField
AddRange(IEnumerable<SqlField>)
public void AddRange(IEnumerable<SqlField> collection)
Parameters
collectionIEnumerable<SqlField>
CanBeNullable(NullabilityContext)
public override bool CanBeNullable(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
Create<T>(IDataContext)
public static SqlTable Create<T>(IDataContext dataContext)
Parameters
dataContextIDataContext
Returns
Type Parameters
T
Equals(ISqlExpression?, Func<ISqlExpression, ISqlExpression, bool>)
public override bool Equals(ISqlExpression? other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
otherISqlExpressioncomparerFunc<ISqlExpression, ISqlExpression, bool>
Returns
FindFieldByMemberName(string)
Search for table field by mapping class member name.
public SqlField? FindFieldByMemberName(string memberName)
Parameters
memberNamestringMapping class member name.
Returns
GetElementHashCode()
public override int GetElementHashCode()
Returns
GetIdentityField()
public SqlField? GetIdentityField()
Returns
GetKeys(bool)
public virtual IList<ISqlExpression>? GetKeys(bool allIfEmpty)
Parameters
allIfEmptybool
Returns
ResetKeys()
public void ResetKeys()
ToString(QueryElementTextWriter)
Generates debug text representation of AST node.
public override QueryElementTextWriter ToString(QueryElementTextWriter writer)
Parameters
writerQueryElementTextWriter