Skip to content

Commit 36e3836

Browse files
committed
docs(readme): show how to inherit non-generic Identifiable
1 parent e490683 commit 36e3836

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ public class Person : Identifiable<Guid>
7979
{ }
8080
```
8181

82+
You can use the non-generic `Identifiable` if your primary key is an integer:
83+
84+
```csharp
85+
public class Person : Identifiable
86+
{ }
87+
```
88+
8289
#### Specifying Public Attributes
8390

8491
If you want an attribute on your model to be publicly available,

0 commit comments

Comments
 (0)