wtorek, 22 stycznia 2008

How to remove primary key column in DataTable

Sometimes you need to drop column from DataTable which is marked as PrimaryKey (else you will get an exception). There's a nice way to accomplish that.

DataTable.PrimaryKey = null;

So simple, so nice :)

czwartek, 3 stycznia 2008

Deleting all svn folders recursively

Offtopic post: If you want eaisly delete all svn subfolders just use this clever sollution under Windows with usage of Total Commander:
  • Invoke a search (Alt+F7) from the projects root directory
  • Search for .svn (or _svn) - it depends on your settings
  • When the results are displayed, click the “Feed to listbox” button (bottom right)
  • In the list that appears select all the folders and delete (Shift-F8)