コード例 #1
0
        private static PropertyInfo GetIDProperty()
        {
            PropertyInfo pi;

            pi = AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, new string[] { PropertyName_ID, ClassType.Name + PropertyName_ID }, "Name");

            if (pi == null)
            {
                pi = AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, "");
            }
            return(pi);
        }
コード例 #2
0
        private static PropertyInfo GetNameDBProperty(PropertyInfo defaultProperty = null)
        {
            var p = AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, new string[] { PropertyName_NameDB }, "Name");

            return(p ?? defaultProperty ?? GetNameProperty());
        }
コード例 #3
0
 private static PropertyInfo GetNameProperty()
 {
     return(AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, new string[] { PropertyName_Name }, "Name"));
 }