Scaffolding data

Posts   
 
    
Valemus avatar
Valemus
User
Posts: 37
Joined: 09-Jan-2018
# Posted on: 25-Feb-2019 16:32:03   

Hello,

is there a way to create some scaffolding data to distribute together with the Create scripts?

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 25-Feb-2019 17:53:04   

Could you please elaborate ?

Valemus avatar
Valemus
User
Posts: 37
Joined: 09-Jan-2018
# Posted on: 25-Feb-2019 18:02:04   

Walaa wrote:

Could you please elaborate ?

I mean, when I distribute my app, I also distribute the Create script generated by the designer. I'm wondering which is the best way to distribute some default data that should be stored in a new database. I think it would be lovely if the Create script could contain also this data. I'm aware that Entity framework has something like that. So, wondering if I can obtain the same thing somehow.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 26-Feb-2019 06:27:39   

LLBLGen reads schema (meta data) from the database. The generated scripts, whether Update or Create, are meant to be a starting point. And in some cases like yours, you will need to append or modify them.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Feb-2019 14:49:51   

Correct, we don't generate test data. You could, if you want, create a template and generate per table insert statements, however there are also 3rd party tools which generate test data based on a schema. LLBLGen Pro at the moment doesn't do that.

Frans Bouma | Lead developer LLBLGen Pro