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
|
Hi, how can I populate the database with initial data. Entity framework has a custom database initializer. Does lightspeed have anything like this? |
|
|
Have a look at using migrations for managing database schema changes - http://www.mindscapehq.com/documentation/lightspeed/Database-Migrations, for populating data itself you can just use LightSpeed to insert your initial entities as required. e.g.
If you are using the migrations then you can just include this data population step as part of your migration code.
|
|
|
ok |
|