21 namespace Deveel.Data.Sql.Expressions {
33 public FromTable(
string tableName,
string tableAlias)
34 : this(tableName, null, tableAlias) {
35 if (String.IsNullOrEmpty(tableName))
36 throw new ArgumentNullException(
"tableName");
44 : this(tableName, null) {
61 : this(null, query, tableAlias) {
63 throw new ArgumentNullException(
"query");
70 IsSubQuery = query != null;
77 IsSubQuery = data.
HasValue(
"SubQuery");
83 public string Name {
get;
private set; }
88 public string Alias {
get;
private set; }
93 internal string UniqueKey {
get; set; }
98 public bool IsSubQuery {
get;
private set; }
106 var subQuery = SubQuery;
107 if (subQuery != null)
110 return new FromTable(Name, subQuery, Alias);
115 data.
SetValue(
"SubQuery", SubQuery);
FromTable(string tableName)
A simple table definition (not aliased).
void GetData(SerializeData data)
FromTable(string tableName, string tableAlias)
Constructs a table that is aliased under a different name.
FromTable(ObjectData data)
void SetValue(string key, Type type, object value)
FromTable(SqlQueryExpression query, string tableAlias)
A table that is a sub-query and given an aliased name.
An interface used to prepare a SqlExpression object.
FromTable(string tableName, SqlQueryExpression query, string alias)
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
object GetValue(string key)
Describes a single table declaration in the from clause of a table expression (SELECT).
bool HasValue(string key)
FromTable(SqlQueryExpression query)
A table that is a sub-query with no alias set.
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
string GetString(string key)