public ReflectedConstraintInfo(MemberInfo member, UniqueConstraintAttribute attr)
        {
            if (member == null) { throw new ArgumentNullException("member"); }

            this.Member = member;
            this.Configuration.Name = member.Name;

            if (attr != null)
            {
                this.Configuration.CaseInsensitive = attr.CaseInsensitive;
            }
        }
		public ReflectedConstraintInfo(PropertyInfo property, UniqueConstraintAttribute attr) : base()
		{
			if (property == null) { throw new ArgumentNullException("property"); }

			this.Property = property;
			this.Configuration.Name = property.Name;

			if (attr != null)
			{
				this.Configuration.CaseInsensitive = attr.CaseInsensitive;
			}
		}
Beispiel #3
0
        public ReflectedConstraintInfo(PropertyInfo property, UniqueConstraintAttribute attr) : base()
        {
            if (property == null)
            {
                throw new ArgumentNullException("property");
            }

            this.Property           = property;
            this.Configuration.Name = property.Name;

            if (attr != null)
            {
                this.Configuration.CaseInsensitive = attr.CaseInsensitive;
            }
        }
        public ReflectedConstraintInfo(MemberInfo member, UniqueConstraintAttribute attr)
        {
            if (member == null)
            {
                throw new ArgumentNullException("member");
            }

            this.Member             = member;
            this.Configuration.Name = member.Name;

            if (attr != null)
            {
                this.Configuration.CaseInsensitive = attr.CaseInsensitive;
            }
        }