mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update README.md
This commit is contained in:
@@ -9,5 +9,11 @@
|
|||||||
```
|
```
|
||||||
|
|
||||||
### 1.2 Introduction
|
### 1.2 Introduction
|
||||||
|
```c
|
||||||
|
var getAll = db.Queryable<Student>().ToList();
|
||||||
|
var getAllNoLock = db.Queryable<Student>().With(SqlWith.NoLock).ToList();
|
||||||
|
var getByPrimaryKey = db.Queryable<Student>().InSingle(2);
|
||||||
|
var getByWhere = db.Queryable<Student>().Where(it => it.Id == 1 || it.Name == "a").ToList();
|
||||||
|
var getByFuns = db.Queryable<Student>().Where(it => NBORM.IsNullOrEmpty(it.Name)).ToList();
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user