C# 클래스 Zetbox.API.Common.LinqExtensions

파일 보기 프로젝트 열기: daszat/zetbox

공개 메소드들

메소드 설명
IsIgnorableCast ( Type operandType, Type targetType ) : bool

Checks whether the cast from operandType to targetType needs to be respected in a linq statement

Ignore Converts for all IExportable and IPersistenceObject casts. This may happen even if we don't yet know what the underlying type is. The database will catch that. Also remove casts to assignment compatible types, except when casting to Nullable<T>. The latter casts are necessary to keep operator methods happy, since they do not accept mixed nullability arguments.

IsIgnorableCastExpression ( this e ) : bool

See IsIgnorableCast(Type, Type)

메소드 상세

IsIgnorableCast() 공개 정적인 메소드

Checks whether the cast from operandType to targetType needs to be respected in a linq statement
Ignore Converts for all IExportable and IPersistenceObject casts. This may happen even if we don't yet know what the underlying type is. The database will catch that. Also remove casts to assignment compatible types, except when casting to Nullable<T>. The latter casts are necessary to keep operator methods happy, since they do not accept mixed nullability arguments.
public static IsIgnorableCast ( Type operandType, Type targetType ) : bool
operandType System.Type
targetType System.Type
리턴 bool

IsIgnorableCastExpression() 공개 정적인 메소드

See IsIgnorableCast(Type, Type)
public static IsIgnorableCastExpression ( this e ) : bool
e this An expression to check.
리턴 bool