Example #1
0
 public override void RenameColumn(string originalName, string newName)
 {
     if (TargetColumn.Equals(originalName))
     {
         TargetColumn = newName;
     }
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TargetColumn != 0)
            {
                hash ^= TargetColumn.GetHashCode();
            }
            if (NumberToTake != 0)
            {
                hash ^= NumberToTake.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Vertical != false)
            {
                hash ^= Vertical.GetHashCode();
            }
            if (TargetColumn != 0)
            {
                hash ^= TargetColumn.GetHashCode();
            }
            if (TargetGap != 0)
            {
                hash ^= TargetGap.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #4
0
 private IEnumerable<string> ExtractColumnSources(TargetColumn col)
 {
     if (col.RealValueType == TargetColumnValueType.Source)
     {
         yield return col.Source;
     }
     if (col.RealValueType == TargetColumnValueType.Expression)
     {
         foreach (Match m in Regex.Matches(col.Expression, ExpressionColumnRegex))
         {
             yield return m.Groups[1].Value;
         }
     }
 }
 public TargetNoRefColumnSqlModel(TargetColumn dbsh, ColumnInfo colinfo)
     : base(colinfo)
 {
     _dbsh = dbsh;
 }