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:

Define instances and use the generated code

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s