Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
henkmollema committed May 15, 2014
1 parent bc2fd00 commit 3343b8f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ When initializing Dapper.FluentMap with conventions, the entities on which a con

```csharp
FluentMapper.Intialize(config =>
{
// Configure entities explicitly.
config.AddConvention(new TypePrefixConvention())
.ForEntity<Product>()
.ForEntity<Order>;
{
// Configure entities explicitly.
config.AddConvention(new TypePrefixConvention())
.ForEntity<Product>()
.ForEntity<Order>;

// Configure all entities in a certain assembly with an optional namespaces filter.
config.AddConvention(new TypePrefixConvention())
.ForEntitiesInAssembly(typeof (Product).Assembly, "App.Domain.Model");
// Configure all entities in a certain assembly with an optional namespaces filter.
config.AddConvention(new TypePrefixConvention())
.ForEntitiesInAssembly(typeof (Product).Assembly, "App.Domain.Model");

// Configure all entities in the current assembly with an optional namespaces filter.
config.AddConvention(new TypePrefixConvention())
.ForEntitiesInCurrentAssembly("App.Domain.Model.Catalog", "App.Domain.Model.Order");
});
// Configure all entities in the current assembly with an optional namespaces filter.
config.AddConvention(new TypePrefixConvention())
.ForEntitiesInCurrentAssembly("App.Domain.Model.Catalog", "App.Domain.Model.Order");
});
```

0 comments on commit 3343b8f

Please sign in to comment.