C# Class MvcApi.OData.EdmLibHelpers

显示文件 Open project: dax70/MvcApi

Public Methods

Method Description
CanBindTo ( this function, IEdmCollectionType collection ) : bool
CanBindTo ( this function, IEdmEntityType entity ) : bool
EdmFullName ( this clrType ) : string
EdmName ( this clrType ) : string
FindBindableAction ( this functions, IEdmCollectionType collectionType, string actionIdentifier ) : IEdmFunctionImport
FindBindableAction ( this functions, IEdmEntityType entityType, string actionIdentifier ) : IEdmFunctionImport
GetClrType ( IEdmTypeReference edmTypeReference, IEdmModel edmModel ) : Type
GetClrType ( IEdmTypeReference edmTypeReference, IEdmModel edmModel, IAssembliesResolver assembliesResolver ) : Type
GetCollection ( this entityType ) : IEdmCollectionType
GetEdmPrimitiveTypeOrNull ( Type clrType ) : IEdmPrimitiveType
GetEdmPrimitiveTypeReferenceOrNull ( Type clrType ) : IEdmPrimitiveTypeReference
GetEdmType ( this edmModel, Type clrType ) : IEdmType
GetEdmTypeReference ( this edmModel, Type clrType ) : IEdmTypeReference
GetMatchingActions ( this functions, string actionIdentifier ) : IEnumerable
IsNonstandardEdmPrimitive ( Type type, bool &isNonstandardEdmPrimitive ) : Type
IsNullable ( Type type ) : bool

Private Methods

Method Description
ExtractGenericInterface ( Type queryType, Type interfaceType ) : Type
GetMatchingTypes ( string edmFullName, IAssembliesResolver assembliesResolver ) : IEnumerable
GetPrimitiveType ( EdmPrimitiveTypeKind primitiveKind ) : IEdmPrimitiveType
MangleClrTypeName ( Type type ) : string

Method Details

CanBindTo() public static method

public static CanBindTo ( this function, IEdmCollectionType collection ) : bool
function this
collection IEdmCollectionType
return bool

CanBindTo() public static method

public static CanBindTo ( this function, IEdmEntityType entity ) : bool
function this
entity IEdmEntityType
return bool

EdmFullName() public static method

public static EdmFullName ( this clrType ) : string
clrType this
return string

EdmName() public static method

public static EdmName ( this clrType ) : string
clrType this
return string

FindBindableAction() public static method

public static FindBindableAction ( this functions, IEdmCollectionType collectionType, string actionIdentifier ) : IEdmFunctionImport
functions this
collectionType IEdmCollectionType
actionIdentifier string
return IEdmFunctionImport

FindBindableAction() public static method

public static FindBindableAction ( this functions, IEdmEntityType entityType, string actionIdentifier ) : IEdmFunctionImport
functions this
entityType IEdmEntityType
actionIdentifier string
return IEdmFunctionImport

GetClrType() public static method

public static GetClrType ( IEdmTypeReference edmTypeReference, IEdmModel edmModel ) : Type
edmTypeReference IEdmTypeReference
edmModel IEdmModel
return System.Type

GetClrType() public static method

public static GetClrType ( IEdmTypeReference edmTypeReference, IEdmModel edmModel, IAssembliesResolver assembliesResolver ) : Type
edmTypeReference IEdmTypeReference
edmModel IEdmModel
assembliesResolver IAssembliesResolver
return System.Type

GetCollection() public static method

public static GetCollection ( this entityType ) : IEdmCollectionType
entityType this
return IEdmCollectionType

GetEdmPrimitiveTypeOrNull() public static method

public static GetEdmPrimitiveTypeOrNull ( Type clrType ) : IEdmPrimitiveType
clrType System.Type
return IEdmPrimitiveType

GetEdmPrimitiveTypeReferenceOrNull() public static method

public static GetEdmPrimitiveTypeReferenceOrNull ( Type clrType ) : IEdmPrimitiveTypeReference
clrType System.Type
return IEdmPrimitiveTypeReference

GetEdmType() public static method

public static GetEdmType ( this edmModel, Type clrType ) : IEdmType
edmModel this
clrType System.Type
return IEdmType

GetEdmTypeReference() public static method

public static GetEdmTypeReference ( this edmModel, Type clrType ) : IEdmTypeReference
edmModel this
clrType System.Type
return IEdmTypeReference

GetMatchingActions() public static method

public static GetMatchingActions ( this functions, string actionIdentifier ) : IEnumerable
functions this
actionIdentifier string
return IEnumerable

IsNonstandardEdmPrimitive() public static method

public static IsNonstandardEdmPrimitive ( Type type, bool &isNonstandardEdmPrimitive ) : Type
type System.Type
isNonstandardEdmPrimitive bool
return System.Type

IsNullable() public static method

public static IsNullable ( Type type ) : bool
type System.Type
return bool