Exemplo n.º 1
0
        private Column(string columnName, int columnIndexInFile, bool isRequired, bool isIdentity, ValueType valueType
                       , int stringMaxLenght, string[] dateTimeFormats, CultureInfo[] cultureInfos, decimal minValue, decimal maxValue
                       , RegexValidation regexValidation = RegexValidation.None, string regex = "")
        {
            RegexValidation   = regexValidation;
            _regex            = regex;
            ColumnName        = columnName;
            ColumnIndexInFile = columnIndexInFile;
            IsRequired        = isRequired;
            IsIdentity        = isIdentity;
            ValueType         = valueType;
            StringMaxLenght   = stringMaxLenght;
            DateTimeFormats   = dateTimeFormats;
            CultureInfos      = cultureInfos;
            MinValue          = minValue;
            MaxValue          = maxValue;
            SetRegex();

            Validate();
        }
Exemplo n.º 2
0
 public IncorrectActionException(string columnName, ValueType columnValueType, ValueType tryToGetValueType)
 {
     _columnName        = columnName;
     _columnValueType   = columnValueType;
     _tryToGetValueType = tryToGetValueType;
 }