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)
{
//OldTestMain.Init();
OldTestMain.Init();
Demo1_SqlSugarClient.Init();

View File

@ -237,7 +237,7 @@ namespace SqlSugar
}
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);
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<T> deleteObjs) where T : class, new();
IDeleteable<T> Deleteable<T>(T deleteObj) where T : class, new();
void Dispose();
DateTime GetDate();
SimpleClient GetSimpleClient();
SimpleClient<T> GetSimpleClient<T>() where T : class, new();

View File

@ -234,6 +234,12 @@ namespace SqlSugar
#endregion
#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)
{
if (columns.HasValue())