Browse Source

Update README.md

pull/12/MERGE
sunkaixuan 8 years ago
committed by GitHub
parent
commit
6caaaacca2
  1. 8
      README.md

8
README.md

@ -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();
```

Loading…
Cancel
Save