For example, I have an Int32 primary key called "CustomerID" and I set the value in SetDefaultValues() and the value is unique. I call BO.Add() which sets the value of CustomerID. I check the value of BO.CustomerID and it is correctly set to a valid value. However, when I do BO.Save() the CustomerID field is not written back to the SQL database (I can see this in SQL Profiler).
I have tried setting PrimaryKeyIsUpdatable to true but I guess I haven't done it correctly as Save() never writes the primary key.
Can anyone help?
Thanks in advance.
The really nice thing that has been added in the 1.6.6 beta are pre and post deployment scripts. This allows you to turn this off if you need to....while still using the DDT. This has become a very handy implementation that we have started using ourselves (pre and post deployment scripts that is )