예제 #1
0
파일: Column.cs 프로젝트: DickyMacias/Fileo
        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();
        }
예제 #2
0
 public IncorrectActionException(string columnName, ValueType columnValueType, ValueType tryToGetValueType)
 {
     _columnName        = columnName;
     _columnValueType   = columnValueType;
     _tryToGetValueType = tryToGetValueType;
 }