Update SqlSugar

This commit is contained in:
sunkaixuan 2019-05-06 15:22:57 +08:00
parent 2566f24e2d
commit 55056c2dcc
4 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,7 @@ namespace OrmTest
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
//OldTestMain.Init(); OldTestMain.Init();
Demo1_SqlSugarClient.Init(); Demo1_SqlSugarClient.Init();

View File

@ -237,7 +237,7 @@ namespace SqlSugar
} }
public virtual bool AddTableRemark(string tableName, string description) public virtual bool AddTableRemark(string tableName, string description)
{ {
string sql = string.Format(this.AddTableRemarkSql,this.SqlBuilder.GetTranslationTableName(tableName), description); string sql = string.Format(this.AddTableRemarkSql,tableName, description);
this.Context.Ado.ExecuteCommand(sql); this.Context.Ado.ExecuteCommand(sql);
return true; return true;
} }

View File

@ -43,7 +43,6 @@ namespace SqlSugar
IDeleteable<T> Deleteable<T>(List<dynamic> pkValue) where T : class, new(); IDeleteable<T> Deleteable<T>(List<dynamic> pkValue) where T : class, new();
IDeleteable<T> Deleteable<T>(List<T> deleteObjs) where T : class, new(); IDeleteable<T> Deleteable<T>(List<T> deleteObjs) where T : class, new();
IDeleteable<T> Deleteable<T>(T deleteObj) where T : class, new(); IDeleteable<T> Deleteable<T>(T deleteObj) where T : class, new();
void Dispose();
DateTime GetDate(); DateTime GetDate();
SimpleClient GetSimpleClient(); SimpleClient GetSimpleClient();
SimpleClient<T> GetSimpleClient<T>() where T : class, new(); SimpleClient<T> GetSimpleClient<T>() where T : class, new();

View File

@ -234,6 +234,12 @@ namespace SqlSugar
#endregion #endregion
#region Methods #region Methods
public override bool AddTableRemark(string tableName, string description)
{
string sql = string.Format(this.AddTableRemarkSql, this.SqlBuilder.GetTranslationTableName(tableName), description);
this.Context.Ado.ExecuteCommand(sql);
return true;
}
public override bool CreateTable(string tableName, List<DbColumnInfo> columns, bool isCreatePrimaryKey = true) public override bool CreateTable(string tableName, List<DbColumnInfo> columns, bool isCreatePrimaryKey = true)
{ {
if (columns.HasValue()) if (columns.HasValue())