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); }
private static PropertyInfo GetNameDBProperty(PropertyInfo defaultProperty = null) { var p = AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, new string[] { PropertyName_NameDB }, "Name"); return(p ?? defaultProperty ?? GetNameProperty()); }
private static PropertyInfo GetNameProperty() { return(AttributeManager <IDNameObjectPropertyAttribute> .GetPropertyAttributeNameProp(ClassType, new string[] { PropertyName_Name }, "Name")); }