mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
后台内容管理
This commit is contained in:
@ -25,7 +25,8 @@ namespace FreeSql.Site.DAL
|
||||
/// <returns></returns>
|
||||
public bool Update(DocumentContent model)
|
||||
{
|
||||
return DataBaseType.MySql.DB().Update<DocumentContent>(model.ID).ExecuteUpdated().Count > 0;
|
||||
var runsql = DataBaseType.MySql.DB().Update<DocumentContent>().SetSource(model);
|
||||
return runsql.ExecuteAffrows() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user