mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-28 19:20:57 +08:00
Updated 动态操作 (markdown)
4
动态操作.md
4
动态操作.md
@@ -11,10 +11,12 @@ fsql.Update<object>().AsType(实体类型)
|
|||||||
.SetSource(data)
|
.SetSource(data)
|
||||||
.ExecuteAffrows();
|
.ExecuteAffrows();
|
||||||
|
|
||||||
fsql.Select<object>().AsType(实体类型)
|
fsql.Delete<object>().AsType(实体类型)
|
||||||
.Where(a => (a as BaseEntity).Id == 1)
|
.Where(a => (a as BaseEntity).Id == 1)
|
||||||
.ExecuteAffrows();
|
.ExecuteAffrows();
|
||||||
|
|
||||||
|
//fsql.Select<object>()...
|
||||||
|
|
||||||
//或者仓储
|
//或者仓储
|
||||||
var repo = fsql.GetRepository<object>();
|
var repo = fsql.GetRepository<object>();
|
||||||
repo.AsType(实体类型);
|
repo.AsType(实体类型);
|
||||||
|
|||||||
Reference in New Issue
Block a user