update readme

This commit is contained in:
2881099 2023-07-12 01:22:43 +08:00
parent 72a59487e9
commit c055123919
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,10 @@ This article will introduce a very simple CRUD operation method of BaseEntity.
> dotnet add package FreeSql.Provider.Sqlite > dotnet add package FreeSql.Provider.Sqlite
```csharp
BaseEntity.Initialization(fsql, null);
```
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; 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;
```csharp ```csharp

View File

@ -30,6 +30,10 @@ BaseEntity 是一种极简单的 CodeFirst 开发方式,特别对单表或多
> dotnet add package FreeSql.Provider.Sqlite > dotnet add package FreeSql.Provider.Sqlite
```csharp
BaseEntity.Initialization(fsql, null);
```
1、定义一个主键 int 并且自增的实体类型BaseEntity TKey 指定为 int/long 时,会认为主键是自增; 1、定义一个主键 int 并且自增的实体类型BaseEntity TKey 指定为 int/long 时,会认为主键是自增;
```csharp ```csharp