Skip to content

Commit 374c357

Browse files
author
Sam
committed
refactored based on review
+ renamed title. + rephrased sentence. + added csharp snippet styling. + added line snippets to classes. + included namespaces required.
1 parent a2a6ba9 commit 374c357

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

doc/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ title: Entity Framework 6
66
Npgsql has an Entity Framework 6 provider. You can use it by installing the
77
[EntityFramework6.Npgsql](https://www.nuget.org/packages/EntityFramework6.Npgsql/) nuget.
88

9-
## Basic Usage ##
10-
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:
9+
## Basic Configuration ##
10+
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:
11+
12+
```csharp
13+
using Npgsql;
14+
using System.Data.Entity;
1115

12-
```
1316
class NpgSqlConfiguration : DbConfiguration
1417
{
1518
public NpgSqlConfiguration()

0 commit comments

Comments
 (0)