Default data for installation

Is it possible to add default data to my SchemaExport. If not the best way to do this? I would like to have one * .sql file with creating a script for the "tables" and the "default data", or is there a better way?

+4
source share
2 answers

I just have a small console application that calls SchemaExport and then creates the default objects and calls Session.Save() on them.
all i have to do is set up the connection string on this application and run it as well .. voila!
there are actually no .sql files that I like.

+1
source

I created a circuit, after which I had to run another script to insert test data.

As another option, you can see these two data construction projects that will allow you to create N number of objects that you could save.

+1
source

All Articles