sample code for code-first seed using data generator scripts?

Discussion of open issues, suggestions and bugs regarding database management and development tools for SQL Server
Post Reply
osoviejo
Posts: 3
Joined: Tue 05 May 2015 21:48

sample code for code-first seed using data generator scripts?

Post by osoviejo » Tue 05 May 2015 21:53

I'd like to be able to use the sample data produced by the data generator within the Seed() method for EF Code First. How would I go about this? Thanks.

alexa

Re: sample code for code-first seed using data generator scripts?

Post by alexa » Wed 06 May 2015 10:07

We are planning to expand the Data Generator feature already in the next version.

In the second version of Data Generator, there will be implemented generating data basing on regular expressions, query results, selection from specific column or view, etc.

Then, in the third version, we will implement generating meaningful data. This feature will include generating first name/last name, e-mail, cities, states, etc.

In total, there will be about 100 generators. We have already prepared all the necessary dictionaries for this. The multiple dictionaries support is awaiting program implementation.

osoviejo
Posts: 3
Joined: Tue 05 May 2015 21:48

Re: sample code for code-first seed using data generator scripts?

Post by osoviejo » Thu 07 May 2015 02:49

Thanks alexa. I'm glad to hear the generator options will improve. However, my question concerned C# sample code for using scripts from the current data generators from the Entity Framework Seed() method. Thanks.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: sample code for code-first seed using data generator scripts?

Post by Shalex » Thu 07 May 2015 15:49

Am I correct in thinking that your question concerns the possibility to use the dbForge Data Generator for SQL Server functionality from C# code?

osoviejo
Posts: 3
Joined: Tue 05 May 2015 21:48

Re: sample code for code-first seed using data generator scripts?

Post by osoviejo » Thu 07 May 2015 19:44

Yes, I'd like to populate the database from the generated script file(s) using C#.

alexa

Re: sample code for code-first seed using data generator scripts?

Post by alexa » Tue 12 May 2015 12:30

Unfortunately, there is no such a possibility. However, you can add a suggestion on our UserVoice forum where other users can vote for it http://devart.uservoice.com/forums/1770 ... sql-server

We collect and analyze the information from this forum in order to make a proper roadmap for future product releases.

Post Reply