예제 #1
0
        /// <summary>
        /// 判断指定字段值是否存在
        /// </summary>
        /// <param name="FieldName">字段名</param>
        /// <param name="FieldValue">值</param>
        /// <param name="ConditionForCheckExist">自定义条件</param>
        /// <returns></returns>
        public bool IsExist(string ConditionForCheckExist)
        {
            EntityStruct es = EntityStructManager.GetEntityStruct(this.GetType());

            return(es.DoCheckExist(ConditionForCheckExist) > 0 ? true : false);
        }
예제 #2
0
        /// <summary>
        /// 判断指定字段值是否存在
        /// </summary>
        /// <param name="FieldName">字段名</param>
        /// <param name="FieldValue">值</param>
        /// <param name="ConditionForCheckExist">自定义条件</param>
        /// <returns></returns>
        public bool IsExist(string FieldName, object FieldValue)
        {
            EntityStruct es = EntityStructManager.GetEntityStruct(this.GetType());

            return(es.DoCheckExist(FieldName, FieldValue) > 0 ? true : false);
        }