Exemplo n.º 1
0
        /// <summary>
        /// 获取对应属性的标签
        /// </summary>
        /// <param name="property"></param>
        /// <returns></returns>
        public string GetViewModelPropertyHtmlTag(string property)
        {
            var tag = _attribute.GetHtmlTag(property);

            if (_withValue)
            {
                object val = ClassAction.GetObjPropertyValue(_entity, property);
                tag.SetValue(val);
            }
            else
            {
                tag.SetValue(null);
            }
            return(tag.ToString());
        }