Ejemplo n.º 1
0
        protected MemberHandler(MemberAdapter fi)
        {
            MemberInfo = fi;
            var attributes = GetAttributes();

            Is             = new MemberBoolAttributes(fi, attributes);
            Name           = GetName(attributes);
            CrossTableName = GetCrossTableName(attributes);
            UnsavedValue   = GetUnsavedValue(attributes);

            var len = GetLength(attributes);

            MinLength          = len.Min;
            MaxLength          = len.Max;
            LengthErrorMessage = len.ErrorMessage;

            var prec = GetPrecision(attributes);

            MaxLength   = prec.IntegralPart;
            DecimalPart = prec.DecimalPart;

            Regular             = GetRegular(attributes, false);
            RegularErrorMessage = GetRegular(attributes, true);
            OrderByString       = GetOrderByString(attributes);
            UniqueErrorMessage  = GetUniqueErrorMessage();
            ShowString          = GetShowString(attributes);
            Description         = GetDescription(attributes);
        }
Ejemplo n.º 2
0
        protected MemberHandler(MemberAdapter fi)
        {
            MemberInfo = fi;
            var attributes = GetAttributes();
            Is = new MemberBoolAttributes(fi, attributes);
            Name = GetName(attributes);
            CrossTableName = GetCrossTableName(attributes);
            UnsavedValue = GetUnsavedValue(attributes);

            var len = GetLength(attributes);
            MinLength = len.Min;
            MaxLength = len.Max;
            LengthErrorMessage = len.ErrorMessage;

            var prec = GetPrecision(attributes);
            MaxLength = prec.IntegralPart;
            DecimalPart = prec.DecimalPart;

            Regular = GetRegular(attributes, false);
            RegularErrorMessage = GetRegular(attributes, true);
            OrderByString = GetOrderByString(attributes);
            UniqueErrorMessage = GetUniqueErrorMessage();
            ShowString = GetShowString(attributes);
            Description = GetDescription(attributes);
        }