后台内容管理

This commit is contained in:
hogan
2019-01-24 00:14:06 +08:00
parent e9890b771a
commit a9afd0d23d
5 changed files with 96 additions and 44 deletions

View File

@ -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>