mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
update readme
This commit is contained in:
parent
72a59487e9
commit
c055123919
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user