Replacing typed dataset column names with untyped names
After moving a webreference from one project to another, I could no longer refer to the name of a column in the dataset by specifying
myDS.MyTable.FooBarColumn.ColumnName
Instead I had to resort to the less desirable (but still valid)
"FooBar"
Now how do you make that change throughout a project without getting CTS in the process? Simple - use VS.NET's extended replace with regular expressions:
Find what: (<:a+\.)+{:a+}Column\.ColumnName
Replace with: "\1"
0 Comments:
Post a Comment
<< Home