This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
A few questions:
|
|
|
|
|
|
1 How would I go about doing this? I would like to override some default behaviour on Entity. 3 Sorry, maybe I did not write it well. Is acquirement of IDs performed in different transaction then the one used for commiting the inserts? Because we had problems with duplicate IDs being acquired when using the same/nested transactions for acquirement of IDs. Just to double check. 4 Yes, I was working with designer. I will check the migrations. 6 I believe it had to do with using table names with spaces without quoting being turned on. I will check and try to reproduce it again. Thank you for quick answers! |
|
|
(1) For hand-coded entities, just specify the base class in C# in the normal way e.g. (3) Yes, it is done in a separate transaction. In fact, the acquisition of IDs is done long before any INSERT -- it occurs when an entity is added to the unit of work, not when the unit of work is flushed to the database. (But even if there is a transaction in place when the entity is added, we still use a separate transaction to allocate IDs.) |
|
|
(6) My mistake. It does not write out the query immediately. However if you press Run after the exception it does write it out. |
|