Ejemplo n.º 1
0
        public static RelationshipCardinality GetCardinalityOfChildRelation(this PropertyInfo propertyInfo)
        {
            ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>();

            Debug.Assert(attr != null);

            return(attr.Cardinality);
        }
Ejemplo n.º 2
0
        public static object GetIdentifyingPropertyValueOfChildRelation(this PropertyInfo propertyInfo)
        {
            ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>();

            return((attr == null) ? null : attr.ChildIdentifyingPropertyValue);
        }
Ejemplo n.º 3
0
        public static Type GetTypeOfChildRelation(this PropertyInfo propertyInfo)
        {
            ChildRelationshipAttribute attr = propertyInfo.GetCustomAttribute <ChildRelationshipAttribute>();

            return((attr == null) ? null : attr.ChildType);
        }