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
|
I have created small sample to explain my problem. Model contains abstract entity User (who has two descendants Seller and Driver) , entity Marekt (who aggregates Sellers) and entity Car ( who aggregates Drivers). For User inheritance I use SingleTableInheritance. See picture of model in attach. CREATE TABLE [User] ( Id INT IDENTITY NOT NULL PRIMARY KEY ,
); But Seller don't depend on Car! What should I do in mine model that model Disigner can generate correct DataBase scheme? |
|
|
You should make the Car association nullable -- select the Car -> Driver arrow, go to the Properties window and set Is Nullable to true. This will cause LightSpeed to generate a nullable foreign key field which will allow you to insert Sellers who have no CarId. |
|
|
In my case Car and Market are aggregates of Driver and Seller respectively. If I make Car association and Market association nullable then i can't remove Driver and Seller in my code like Market.Sellers.Remove( badSeller ) or Car.Driver.Remove( oldDriver ).
|
|
|
In current nightly builds, it does. You can get the latest nightly from http://www.mindscapehq.com/downloads/ |
|
|
Thanks a lot. You rock! |
|