mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
form编辑
This commit is contained in:
@@ -30,11 +30,16 @@ namespace OpenAuth.App
|
||||
|
||||
public void Update(Form obj)
|
||||
{
|
||||
UnitWork.Update<Form>(u => u.Id == obj.Id, u => new Form
|
||||
Repository.Update(u => u.Id == obj.Id, u => new Form
|
||||
{
|
||||
//todo:要修改的
|
||||
ContentData = obj.ContentData,
|
||||
Content = obj.Content,
|
||||
ContentParse = obj.ContentParse,
|
||||
Name = obj.Name,
|
||||
FrmDbId = obj.FrmDbId
|
||||
});
|
||||
|
||||
Repository.ExecuteSql(FormUtil.GetSql(obj));
|
||||
}
|
||||
|
||||
public Form FindSingle(string id)
|
||||
|
Reference in New Issue
Block a user