sample code for code-first seed using data generator scripts?
sample code for code-first seed using data generator scripts?
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?
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.
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?
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?
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?
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?
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.
We collect and analyze the information from this forum in order to make a proper roadmap for future product releases.