diff --git a/SqlSugar/SqlSugarClient.cs b/SqlSugar/SqlSugarClient.cs index a2ebae3d7..f74878443 100644 --- a/SqlSugar/SqlSugarClient.cs +++ b/SqlSugar/SqlSugarClient.cs @@ -135,7 +135,7 @@ namespace SqlSugar { var result = InstanceFactory.GetQueryable(base.CurrentConnectionConfig); var sqlBuilder = InstanceFactory.GetSqlbuilder(base.CurrentConnectionConfig); - result.Context = this;; + result.Context = this; ; result.SqlBuilder = sqlBuilder; result.SqlBuilder.QueryBuilder = InstanceFactory.GetQueryBuilder(base.CurrentConnectionConfig); result.SqlBuilder.QueryBuilder.Builder = sqlBuilder; @@ -301,6 +301,10 @@ namespace SqlSugar { return this.Updateable(new T[] { UpdateObj }); } + public virtual IUpdateable Updateable() where T : class, new() + { + return this.Updateable(new T[] { new T() }); + } #endregion #region DbFirst @@ -348,7 +352,7 @@ namespace SqlSugar } return base._DbMaintenance; } - } + } #endregion #region Entity Methods