Skip to content

Commit

Permalink
refactored based on review
Browse files Browse the repository at this point in the history
+ renamed title.
+ rephrased sentence.
+ added csharp snippet styling.
+ added line snippets to classes.
+ included namespaces required.
  • Loading branch information
Sam committed Jul 10, 2018
1 parent a2a6ba9 commit 374c357
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ title: Entity Framework 6
Npgsql has an Entity Framework 6 provider. You can use it by installing the
[EntityFramework6.Npgsql](https://www.nuget.org/packages/EntityFramework6.Npgsql/) nuget.

## Basic Usage ##
Create an inheritor of DbConfiguration in the same assembly as your entity framework DbContext. Ensure that you configure provider services, a provider factory, a default connection factory as shown below:
## Basic Configuration ##
To use Entity Framework with Npgsql, define a class that inherits from `DbConfiguration` in the same assembly as your class inheriting `DbContext`. Ensure that you configure provider services, a provider factory, a default connection factory as shown below:

```csharp
using Npgsql;
using System.Data.Entity;

```
class NpgSqlConfiguration : DbConfiguration
{
public NpgSqlConfiguration()
Expand Down

0 comments on commit 374c357

Please sign in to comment.