mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update SqlSugar
This commit is contained in:
parent
2566f24e2d
commit
55056c2dcc
@ -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();
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user