C# Class Remotion.Linq.SqlBackend.UnitTests.MappingResolverStub

Inheritance: IMappingResolver
Mostra file Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
ResolveConstantExpression ( ConstantExpression constantExpression ) : Expression
ResolveJoinInfo ( UnresolvedJoinInfo joinInfo, UniqueIdentifierGenerator generator ) : ResolvedJoinInfo
ResolveMemberExpression ( SqlColumnExpression sqlColumnExpression, MemberInfo memberInfo ) : Expression
ResolveMemberExpression ( SqlEntityExpression originatingEntity, MemberInfo memberInfo ) : Expression
ResolveSimpleTableInfo ( IResolvedTableInfo tableInfo, UniqueIdentifierGenerator generator ) : SqlEntityDefinitionExpression
ResolveTableInfo ( UnresolvedTableInfo tableInfo, UniqueIdentifierGenerator generator ) : IResolvedTableInfo
ResolveTypeCheck ( Expression checkedExpression, Type desiredType ) : Expression
TryResolveOptimizedIdentity ( SqlEntityRefMemberExpression entityRefMemberExpression ) : Expression
TryResolveOptimizedMemberExpression ( SqlEntityRefMemberExpression entityRefMemberExpression, MemberInfo memberInfo ) : Expression

Private Methods

Method Description
CreateColumn ( Type columnType, string tableAlias, string columnName, bool isPriamryKey ) : SqlColumnExpression
CreateMetaIDExpression ( Expression valueExpression, Expression classIDColumn ) : Expression
CreateResolvedJoinInfo ( SqlEntityExpression originatingEntity, string leftColumnName, Type leftColumnType, bool leftColumnIsPrimaryKey, IResolvedTableInfo joinedTableInfo, string rightColumnName, Type rightColumnType, bool rightColumnIsPrimaryKey ) : ResolvedJoinInfo
CreateResolvedTableInfo ( Type entityType, UniqueIdentifierGenerator generator ) : ResolvedSimpleTableInfo

Method Details

ResolveConstantExpression() public method

public ResolveConstantExpression ( ConstantExpression constantExpression ) : Expression
constantExpression System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

ResolveJoinInfo() public method

public ResolveJoinInfo ( UnresolvedJoinInfo joinInfo, UniqueIdentifierGenerator generator ) : ResolvedJoinInfo
joinInfo Remotion.Linq.SqlBackend.SqlStatementModel.Unresolved.UnresolvedJoinInfo
generator UniqueIdentifierGenerator
return Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.ResolvedJoinInfo

ResolveMemberExpression() public method

public ResolveMemberExpression ( SqlColumnExpression sqlColumnExpression, MemberInfo memberInfo ) : Expression
sqlColumnExpression Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.SqlColumnExpression
memberInfo System.Reflection.MemberInfo
return System.Linq.Expressions.Expression

ResolveMemberExpression() public method

public ResolveMemberExpression ( SqlEntityExpression originatingEntity, MemberInfo memberInfo ) : Expression
originatingEntity Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.SqlEntityExpression
memberInfo System.Reflection.MemberInfo
return System.Linq.Expressions.Expression

ResolveSimpleTableInfo() public method

public ResolveSimpleTableInfo ( IResolvedTableInfo tableInfo, UniqueIdentifierGenerator generator ) : SqlEntityDefinitionExpression
tableInfo IResolvedTableInfo
generator UniqueIdentifierGenerator
return Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.SqlEntityDefinitionExpression

ResolveTableInfo() public method

public ResolveTableInfo ( UnresolvedTableInfo tableInfo, UniqueIdentifierGenerator generator ) : IResolvedTableInfo
tableInfo Remotion.Linq.SqlBackend.SqlStatementModel.Unresolved.UnresolvedTableInfo
generator UniqueIdentifierGenerator
return IResolvedTableInfo

ResolveTypeCheck() public method

public ResolveTypeCheck ( Expression checkedExpression, Type desiredType ) : Expression
checkedExpression System.Linq.Expressions.Expression
desiredType System.Type
return System.Linq.Expressions.Expression

TryResolveOptimizedIdentity() public method

public TryResolveOptimizedIdentity ( SqlEntityRefMemberExpression entityRefMemberExpression ) : Expression
entityRefMemberExpression Remotion.Linq.SqlBackend.SqlStatementModel.Unresolved.SqlEntityRefMemberExpression
return System.Linq.Expressions.Expression

TryResolveOptimizedMemberExpression() public method

public TryResolveOptimizedMemberExpression ( SqlEntityRefMemberExpression entityRefMemberExpression, MemberInfo memberInfo ) : Expression
entityRefMemberExpression Remotion.Linq.SqlBackend.SqlStatementModel.Unresolved.SqlEntityRefMemberExpression
memberInfo System.Reflection.MemberInfo
return System.Linq.Expressions.Expression