C# Class System.Data.Entity.Utilities.PropertyInfoExtensions

显示文件 Open project: aspnet/EntityFramework6 Class Usage Examples

Public Methods

Method Description
AsEdmPrimitiveProperty ( this propertyInfo ) : System.Data.Entity.Core.Metadata.Edm.EdmProperty
CanWriteExtended ( this propertyInfo ) : bool
ContainsSame ( this enumerable, PropertyInfo propertyInfo ) : bool
GetPropertiesInHierarchy ( this property ) : IEnumerable
GetPropertyInfoForSet ( this propertyInfo ) : PropertyInfo
Getter ( this property ) : MethodInfo
IsPublic ( this property ) : bool
IsSameAs ( this propertyInfo, PropertyInfo otherPropertyInfo ) : bool
IsStatic ( this property ) : bool
IsValidEdmNavigationProperty ( this propertyInfo ) : bool
IsValidEdmScalarProperty ( this propertyInfo ) : bool
IsValidInterfaceStructuralProperty ( this propertyInfo ) : bool
IsValidStructuralProperty ( this propertyInfo ) : bool
Setter ( this property ) : MethodInfo

Private Methods

Method Description
CollectProperties ( PropertyInfo property, IList collection ) : void
FindNextProperty ( PropertyInfo property, IList collection, bool getter ) : void
GetDeclaredProperty ( PropertyInfo propertyInfo ) : PropertyInfo

Method Details

AsEdmPrimitiveProperty() public static method

public static AsEdmPrimitiveProperty ( this propertyInfo ) : System.Data.Entity.Core.Metadata.Edm.EdmProperty
propertyInfo this
return System.Data.Entity.Core.Metadata.Edm.EdmProperty

CanWriteExtended() public static method

public static CanWriteExtended ( this propertyInfo ) : bool
propertyInfo this
return bool

ContainsSame() public static method

public static ContainsSame ( this enumerable, PropertyInfo propertyInfo ) : bool
enumerable this
propertyInfo System.Reflection.PropertyInfo
return bool

GetPropertiesInHierarchy() public static method

public static GetPropertiesInHierarchy ( this property ) : IEnumerable
property this
return IEnumerable

GetPropertyInfoForSet() public static method

public static GetPropertyInfoForSet ( this propertyInfo ) : PropertyInfo
propertyInfo this
return System.Reflection.PropertyInfo

Getter() public static method

public static Getter ( this property ) : MethodInfo
property this
return System.Reflection.MethodInfo

IsPublic() public static method

public static IsPublic ( this property ) : bool
property this
return bool

IsSameAs() public static method

public static IsSameAs ( this propertyInfo, PropertyInfo otherPropertyInfo ) : bool
propertyInfo this
otherPropertyInfo System.Reflection.PropertyInfo
return bool

IsStatic() public static method

public static IsStatic ( this property ) : bool
property this
return bool

IsValidEdmNavigationProperty() public static method

public static IsValidEdmNavigationProperty ( this propertyInfo ) : bool
propertyInfo this
return bool

IsValidEdmScalarProperty() public static method

public static IsValidEdmScalarProperty ( this propertyInfo ) : bool
propertyInfo this
return bool

IsValidInterfaceStructuralProperty() public static method

public static IsValidInterfaceStructuralProperty ( this propertyInfo ) : bool
propertyInfo this
return bool

IsValidStructuralProperty() public static method

public static IsValidStructuralProperty ( this propertyInfo ) : bool
propertyInfo this
return bool

Setter() public static method

public static Setter ( this property ) : MethodInfo
property this
return MethodInfo