Skip to content

Commit

Permalink
Update DictionaryAdapter TypeKeyPrefix example
Browse files Browse the repository at this point in the history
Update DictionaryAdapter `TypeKeyPrefix` example to show where the namespace is coming from.
  • Loading branch information
jerone authored Sep 28, 2023
1 parent f937cc1 commit 262a7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/dictionaryadapter-customize-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ If we had more properties on the interface, they'd all get prefixed.
If you would like to prefix all keys in dictionary with full name of the interface use `TypeKeyPrefixAttribute`. This is especially useful when you have multiple adapters over common dictionary and you want to avoid one overriding another.

```csharp
namespace Acme.Crm;

[TypeKeyPrefix]
public interface IPerson
{
Expand Down

0 comments on commit 262a7c7

Please sign in to comment.