Firebird Documentation IndexFirebird 3.0 Developer's GuideCreating Web Applications in Entity Framework with MVC → Creating an EDM
Firebird Home Firebird Home Prev: Creating a ProjectFirebird Documentation IndexUp: Creating Web Applications in Entity Framework with MVCNext: Creating a User Interface

Creating an EDM

If you already have a Windows Forms application that uses Entity Framework, you can just model classes to the Models folder. Otherwise, you have to create them from scratch. The process of creating an EDM is described in the previous chapter in the topic Creating an Entity Data Model (EDM).

There is one more small difference: your response to the EDM wizard's question about how to store the connection string:

Figure 5.7. Configuring connection string storage

Configuring connection string storage


When we create a web application, all users will work with the database using a single account, so select Yes for this question. Any user with enough privileges can be specified as the username. It is advisable not to use the SYSDBA user because it has more privileges than are required for a web application to work.

You can always change the username in the application when it is ready for testing and deployment, by just editing the connection string in the AppName.exe.conf application configuration file.

The connection string will be stored in the connectionStrings section and will look approximately as follows:

<add name="DbModel"
     connectionString="character set=UTF8; data source=localhost;
     initial catalog=examples; port number=3050;
     user id=sysdba; dialect=3; isolationlevel=Snapshot;
     pooling=True; password=masterkey;"
     providerName="FirebirdSql.Data.FirebirdClient" />
      

Prev: Creating a ProjectFirebird Documentation IndexUp: Creating Web Applications in Entity Framework with MVCNext: Creating a User Interface
Firebird Documentation IndexFirebird 3.0 Developer's GuideCreating Web Applications in Entity Framework with MVC → Creating an EDM