Commit 8752ea7
committed
refactor(orm-entity): 添加泛型 notnull 约束增强类型安全
- EntityBaseId<TKey> 添加 where TKey : notnull
- EntityTenantBase<TKey> 添加 where TKey : notnull
- 防止可空类型作为主键导致的运行时问题1 parent d62b9f8 commit 8752ea7
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments