mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
文档类型管理完善
This commit is contained in:
@ -27,7 +27,8 @@ namespace FreeSql.Site.DAL
|
||||
/// <returns></returns>
|
||||
public virtual bool Update(T model)
|
||||
{
|
||||
return DataBaseType.MySql.DB().Update<T>(model.ID).ExecuteUpdated().Count > 0;
|
||||
var runsql = DataBaseType.MySql.DB().Update<T>().SetSource(model);
|
||||
return runsql.ExecuteAffrows() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user