コード例 #1
0
        private FieldInfo GetUniqueParentLinkField(object oVal)
        {
            // Get TypeInfo of the value
            EntityTypeInfo oTypeInfo =
                Reflection.GetEntityTypeInfo(oVal);

            // Get a field that is a unique link to us
            FieldInfo oField =
                oTypeInfo.GetUniqueParentLinkField(this.GetType());

            return(oField);
        }