public static RelationshipCardinality GetCardinalityOfChildRelation(this PropertyInfo propertyInfo) { ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>(); Debug.Assert(attr != null); return(attr.Cardinality); }
public static object GetIdentifyingPropertyValueOfChildRelation(this PropertyInfo propertyInfo) { ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>(); return((attr == null) ? null : attr.ChildIdentifyingPropertyValue); }
public static Type GetTypeOfChildRelation(this PropertyInfo propertyInfo) { ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>(); return((attr == null) ? null : attr.ChildType); }