Example #1
0
 /// <summary>
 /// 检查实例中是否存在指定的属性及其值对应的字符串(不区分大小写)
 /// </summary>
 /// <param name="model">实体的实例</param>
 /// <param name="property">属性名</param>
 /// <param name="value">属性值</param>
 /// <returns>是否存在</returns>
 protected bool CheckVariableValue(string property, string value)
 {
     return(DictionaryHelper.CheckValue(Variables, property, value));
 }
Example #2
0
 /// <summary>
 /// 获取一个实体属性的值
 /// </summary>
 /// <param name="model">实体</param>
 /// <param name="property">属性名</param>
 /// <returns></returns>
 protected object GetVariableValue(string property)
 {
     return(DictionaryHelper.GetValue(Variables, property));
 }