C# Class Signum.Engine.Linq.SmartEqualizer

显示文件 Open project: signumsoftware/framework Class Usage Examples

Public Properties

Property Type Description
False System.Linq.Expressions.ConstantExpression
True System.Linq.Expressions.ConstantExpression

Public Methods

Method Description
ConstantToEntity ( Expression expression ) : Expression
ConstantToLite ( Expression expression ) : Expression
EntityEquals ( Expression e1, Expression e2 ) : Expression
EqualNullable ( Expression e1, Expression e2 ) : Expression
EqualNullableGroupBy ( Expression e1, Expression e2 ) : Expression
In ( Expression element, object values ) : Expression
InPrimaryKey ( Expression element, PrimaryKey values ) : Expression
LiteEquals ( Expression e1, Expression e2 ) : Expression
MListElementEquals ( Expression e1, Expression e2 ) : Expression
NotEqualNullable ( Expression e1, Expression e2 ) : Expression
ObjectEquals ( Expression expr1, Expression expr2 ) : Expression
PolymorphicEqual ( Expression exp1, Expression exp2 ) : Expression
PrimaryKeyEquals ( Expression exp1, Expression exp2 ) : Expression
UnwrapPrimaryKey ( Expression unary ) : Expression
UnwrapPrimaryKeyBinary ( BinaryExpression b ) : BinaryExpression

Private Methods

Method Description
ChangeConstant ( Expression exp, Type type ) : Expression
CoalesceEquals ( Expression exp1, Expression exp2 ) : Expression
ConditionalEquals ( Expression exp1, Expression exp2 ) : Expression
ConstanToNewExpression ( Expression exp ) : Expression
DispachCoalesce ( BinaryExpression be, Expression exp ) : Expression
DispachConditional ( ConditionalExpression ce, Expression exp ) : Expression
DispachConditionalTypesIn ( ConditionalExpression ce, IEnumerable collection ) : Expression
EmbeddedNullEquals ( Signum.Engine.Linq.EmbeddedEntityExpression eee ) : Expression
EntityIn ( Expression newItem, PrimaryKey[]>.Dictionary entityIDs ) : Expression
EntityIn ( Expression newItem, IEnumerable collection ) : Expression
EntityIn ( Signum.Engine.Linq.LiteReferenceExpression liteReference, IEnumerable collection ) : Expression
EqualsToNull ( Signum.Engine.Linq.PrimaryKeyExpression exp ) : Expression
FieFieEquals ( Signum.Engine.Linq.EntityExpression fie1, Signum.Engine.Linq.EntityExpression fie2 ) : Expression
FieIbEquals ( Signum.Engine.Linq.EntityExpression ee, Signum.Engine.Linq.ImplementedByExpression ib ) : Expression
FieIbaEquals ( Signum.Engine.Linq.EntityExpression ee, Signum.Engine.Linq.ImplementedByAllExpression iba ) : Expression
GetEntity ( Expression exp ) : Expression
IbIbEquals ( Signum.Engine.Linq.ImplementedByExpression ib, Signum.Engine.Linq.ImplementedByExpression ib2 ) : Expression
IbIbaEquals ( Signum.Engine.Linq.ImplementedByExpression ib, Signum.Engine.Linq.ImplementedByAllExpression iba ) : Expression
IbaIbaEquals ( Signum.Engine.Linq.ImplementedByAllExpression iba, Signum.Engine.Linq.ImplementedByAllExpression iba2 ) : Expression
NotEqualToNull ( Signum.Engine.Linq.PrimaryKeyExpression exp ) : Expression
SmartAnd ( Expression e1, Expression e2 ) : Expression
SmartNot ( Expression e ) : Expression
SmartOr ( Expression e1, Expression e2 ) : Expression
TypeConstantConstantEquals ( ConstantExpression c1, ConstantExpression c2 ) : Expression
TypeConstantFieEquals ( ConstantExpression ce, Signum.Engine.Linq.TypeEntityExpression typeFie ) : Expression
TypeConstantIbEquals ( ConstantExpression ce, Signum.Engine.Linq.TypeImplementedByExpression typeIb ) : Expression
TypeConstantIbaEquals ( ConstantExpression ce, Signum.Engine.Linq.TypeImplementedByAllExpression typeIba ) : Expression
TypeEquals ( Expression exp1, Expression exp2 ) : Expression
TypeFieFieEquals ( Signum.Engine.Linq.TypeEntityExpression typeFie1, Signum.Engine.Linq.TypeEntityExpression typeFie2 ) : Expression
TypeFieIbEquals ( Signum.Engine.Linq.TypeEntityExpression typeFie, Signum.Engine.Linq.TypeImplementedByExpression typeIb ) : Expression
TypeFieIbaEquals ( Signum.Engine.Linq.TypeEntityExpression typeFie, Signum.Engine.Linq.TypeImplementedByAllExpression typeIba ) : Expression
TypeIbIbEquals ( Signum.Engine.Linq.TypeImplementedByExpression typeIb1, Signum.Engine.Linq.TypeImplementedByExpression typeIb2 ) : Expression
TypeIbIbaEquals ( Signum.Engine.Linq.TypeImplementedByExpression typeIb, Signum.Engine.Linq.TypeImplementedByAllExpression typeIba ) : Expression
TypeIbaIbaEquals ( Signum.Engine.Linq.TypeImplementedByAllExpression t1, Signum.Engine.Linq.TypeImplementedByAllExpression t2 ) : Expression
TypeIn ( Expression typeExpr, IEnumerable collection ) : Expression
UncastObject ( Expression expr ) : Expression

Method Details

ConstantToEntity() public static method

public static ConstantToEntity ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

ConstantToLite() public static method

public static ConstantToLite ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

EntityEquals() public static method

public static EntityEquals ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

EqualNullable() public static method

public static EqualNullable ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

EqualNullableGroupBy() public static method

public static EqualNullableGroupBy ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

In() public static method

public static In ( Expression element, object values ) : Expression
element System.Linq.Expressions.Expression
values object
return System.Linq.Expressions.Expression

InPrimaryKey() public static method

public static InPrimaryKey ( Expression element, PrimaryKey values ) : Expression
element System.Linq.Expressions.Expression
values PrimaryKey
return System.Linq.Expressions.Expression

LiteEquals() public static method

public static LiteEquals ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

MListElementEquals() public static method

public static MListElementEquals ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

NotEqualNullable() public static method

public static NotEqualNullable ( Expression e1, Expression e2 ) : Expression
e1 System.Linq.Expressions.Expression
e2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

ObjectEquals() public static method

public static ObjectEquals ( Expression expr1, Expression expr2 ) : Expression
expr1 System.Linq.Expressions.Expression
expr2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

PolymorphicEqual() public static method

public static PolymorphicEqual ( Expression exp1, Expression exp2 ) : Expression
exp1 System.Linq.Expressions.Expression
exp2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

PrimaryKeyEquals() public static method

public static PrimaryKeyEquals ( Expression exp1, Expression exp2 ) : Expression
exp1 System.Linq.Expressions.Expression
exp2 System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

UnwrapPrimaryKey() public static method

public static UnwrapPrimaryKey ( Expression unary ) : Expression
unary System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

UnwrapPrimaryKeyBinary() public static method

public static UnwrapPrimaryKeyBinary ( BinaryExpression b ) : BinaryExpression
b System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.BinaryExpression

Property Details

False public_oe static_oe property

public static ConstantExpression,System.Linq.Expressions False
return System.Linq.Expressions.ConstantExpression

True public_oe static_oe property

public static ConstantExpression,System.Linq.Expressions True
return System.Linq.Expressions.ConstantExpression