コード例 #1
0
        private string ProcessProperty(string propertyStr, Type type)
        {
            PropertyInfo property = DbObjectTools.GetProperty(type, propertyStr);

            if (property == null)
            {
                return(null);
            }
            DataFieldAttribute dataFieldAttribute = DbObjectTools.GetDataFieldAttribute(property);

            if (dataFieldAttribute == null)
            {
                return(null);
            }
            return(dataFieldAttribute.DataFieldName);
        }