From: Richard B. <rb...@ar...> - 2003-09-09 08:26:24
|
I have added support for SQL identity columns to the Atoms Framework (.NET version). The support at this stage is only for MSSQL databases. To mark an attribute as an identity column add identity="true" to the XML file. If the attribute has a non-zero value when the object is saved the current value will be used. If it is zero then we let the database will set the value. The framework queries the @@IDENTITY value to retrieve the new value and stores it in the object. This is required if the object is subclassed and the identity column is part of the reference key. Hope that all makes sense :-) - Richard Banks http://www.arel.com http://www.arelretail.com |