Update README.md

This commit is contained in:
sunkaixuan 2017-05-23 07:42:16 +08:00 committed by GitHub
parent b93205792a
commit 6caaaacca2

View File

@ -9,5 +9,11 @@
```
### 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();
```