Page 1 of 1

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

Posted: Tue 05 May 2015 21:53
by osoviejo
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.

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

Posted: Wed 06 May 2015 10:07
by alexa
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.

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

Posted: Thu 07 May 2015 02:49
by osoviejo
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.

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

Posted: Thu 07 May 2015 15:49
by Shalex
Am I correct in thinking that your question concerns the possibility to use the dbForge Data Generator for SQL Server functionality from C# code?

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

Posted: Thu 07 May 2015 19:44
by osoviejo
Yes, I'd like to populate the database from the generated script file(s) using C#.

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

Posted: Tue 12 May 2015 12:30
by alexa
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.