コード例 #1
0
        /// <summary>
        /// すべてのデータ検証対象プロパティのデータ検証を行います。
        /// </summary>
        /// <returns></returns>
        protected bool Validate()
        {
            var result     = true;
            var properties = ValidationUtility.GetPropatyNamesWithAttribute(GetType());

            foreach (var property in properties)
            {
                _dictionary.RemoveErrorByKey(property);
                if (!Validate(property))
                {
                    result = false;
                }
            }

            return(result);
        }