TypeExtensions class

public static class Korzh.EasyQuery.TypeExtensions

Static Methods

Type Name Description
IEnumerable<PropertyInfo> GetMappedProperties(this IEnumerable<PropertyInfo> source) Filters the list of properties (defined by source parameter) to return only those which does not have "NotMapped" attribute.
Boolean IsAttributeDefined(this PropertyInfo pi, String attrName) Determines whether the attribute with specified name is defined for the property.
Boolean IsComplexType(this Type typeToCheck) Determines whether the specified type is complex type (marked by ComplexType attribute).
Boolean IsEnum(this Type typeToCheck) Determines whether the specified type is an enumeration.
Boolean IsGenericType(this Type typeToCheck) Determines whether the specified type is generic type.
Boolean IsInheritedFrom(this Type type, String fullTypeName)
Boolean IsNullable(this Type typeToCheck) Determines whether the specified type is a nullable type.
Boolean IsPrimaryKey(this PropertyInfo pi) Determines whether specified property is a primary key.
Boolean IsSimpleType(this Type t) Checks if the type can be used in columns and conditions