How To Generate With Data (Video)
Following up this post where we generated a SQL Server database and our C# object model, the next logical step is to use the generated code to try it out. However, to try your application you’re going to need some data so you can manipulate it in your app.
CodeFluent Entities provides an Instance concept which you can use to specify instances of your entities. Persistence producers such as the SQL Server Producer, Oracle Database Producer or the SQL Azure Producer will then generate and run a SQL script containing all your instances and initializing your database.
Here’s a video showing how to specify instances in your model using the Visual Studio integrated interface, and it also shows how to use the generated code in a console application: