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