C# Class Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.SqlEntityExpression

SqlEntityExpression represents an entity in a SQL expression. It consists of a list of columns, a primary key (which is usually part of the columns list), and a table alias identifying the table or substatement the entity stems from. An entity can have a name, which is used to prefix all of its columns with in the generated SQL.
Inheritance: Remotion.Linq.Clauses.Expressions.ExtensionExpression
Show file Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
CreateReference ( string newTableAlias, Type newType ) : SqlEntityExpression
GetColumn ( Type type, string columnName, bool isPrimaryKeyColumn ) : SqlColumnExpression
GetIdentityExpression ( ) : Expression
Update ( Type itemType, string tableAlias, string entityName ) : SqlEntityExpression

Protected Methods

Method Description
SqlEntityExpression ( Type entityType, string tableAlias, string entityName, Expression>.Func identityExpressionGenerator ) : System

Method Details

Accept() public method

public Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
return System.Linq.Expressions.Expression

CreateReference() public abstract method

public abstract CreateReference ( string newTableAlias, Type newType ) : SqlEntityExpression
newTableAlias string
newType System.Type
return SqlEntityExpression

GetColumn() public abstract method

public abstract GetColumn ( Type type, string columnName, bool isPrimaryKeyColumn ) : SqlColumnExpression
type System.Type
columnName string
isPrimaryKeyColumn bool
return SqlColumnExpression

GetIdentityExpression() public method

public GetIdentityExpression ( ) : Expression
return System.Linq.Expressions.Expression

SqlEntityExpression() protected method

protected SqlEntityExpression ( Type entityType, string tableAlias, string entityName, Expression>.Func identityExpressionGenerator ) : System
entityType System.Type
tableAlias string
entityName string
identityExpressionGenerator Expression>.Func
return System

Update() public abstract method

public abstract Update ( Type itemType, string tableAlias, string entityName ) : SqlEntityExpression
itemType Type
tableAlias string
entityName string
return SqlEntityExpression