Esempio n. 1
0
        private void CheckKeyFields(IEnumerable <PropertyInfo> properties, object obj)
        {
            bool avaiable = ReflectionUtils.CheckPropertyAvailable(properties.ToArray(), obj);

            if (!avaiable)
            {
                throw new NullKeyException(obj.GetType().Name + " " + string.Join(",", properties.Select(o => o.Name).ToArray()) + "键值没有赋值");
            }
        }