Has anybody had to use Migrtordotnet to create rowversion or
timestamp  column in MS SQL Server ? (http://msdn.microsoft.com/en-us/
library/ms182776(SQL.90).aspx)

I was looking into the SqlServerDialect class and I thought that
perhaps I could register a new column type like so:

RegisterColumnType(DbType.Object, "ROWVERSION");

.. and then add a new column like so:

new Column("RowStamp", DbType.Object)

I modified a local copy of MigratorDotNet to Register this mapping and
I'm getting the tables created the way I would expect but I'm not
familiar enough with the code base to be sure that this is the
preferred way to go about making such a change.

I used DbType.Object because it wasn't currently supported anywhere
and so I know I wouldn't get an collision with existing mappings and
because the ROWVERSION column going to be managed by the database
server it feels like an encapsulated database object.


Thoughts? Suggestions?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"migratordotnet-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/migratordotnet-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to