Skip to content

Commit c055123

Browse files
committed
update readme
1 parent 72a5948 commit c055123

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Extensions/FreeSql.Extensions.BaseEntity/README.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ This article will introduce a very simple CRUD operation method of BaseEntity.
3131
3232
> dotnet add package FreeSql.Provider.Sqlite
3333
34+
```csharp
35+
BaseEntity.Initialization(fsql, null);
36+
```
37+
3438
1. Define an auto-increment primary key of type `int`. When the `TKey` of `BaseEntity` is specified as `int/long`, the primary key will be considered as auto-increment;
3539

3640
```csharp

Extensions/FreeSql.Extensions.BaseEntity/README.zh-CN.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ BaseEntity 是一种极简单的 CodeFirst 开发方式,特别对单表或多
3030
3131
> dotnet add package FreeSql.Provider.Sqlite
3232
33+
```csharp
34+
BaseEntity.Initialization(fsql, null);
35+
```
36+
3337
1、定义一个主键 int 并且自增的实体类型,BaseEntity TKey 指定为 int/long 时,会认为主键是自增;
3438

3539
```csharp

0 commit comments

Comments
 (0)