The Darkside

Shedding light on things and stuff

 
  Home :: Contact :: Syndication  :: Login
  75 Posts :: 0 Stories :: 49 Comments :: 2 Trackbacks

Ads

Archives

Post Categories

Open Source Projects

Other Blogs

May 2008 Entries

Making use of the [Version] attribute in Castle ActiveRecord is a really nice way of enabling your app to detect changes in data that may have happened in other apps. Usually, you’d just save your record and it’d be in the DB. Unfortunately, you may have inadvertently overwritten someone else’s updates. In more formal terms, it is a convenient way of solving data concurrency issues. I've set up an example demonstrating (really simply) how to put this into practice.


I've recently needed to test an app on Windows XP that makes use of Windows Authentication for the application as well as for the Sql connection string, with different application functionality assigned to Windows users, and the various permissions that are set in Sql. Short of having to log in and out with every different user (which wasn't going to happen), I wasn't sure how this was going to happen, until I remembered the "runsas" DOS command. Here is how to use it...