Update sqlite truncate

This commit is contained in:
sunkaixuan
2022-05-22 15:03:50 +08:00
parent c990d44d64
commit 7ac582e794

View File

@@ -258,6 +258,11 @@ namespace SqlSugar
#endregion
#region Methods
public override bool TruncateTable(string tableName)
{
base.TruncateTable(tableName);
return this.Context.Ado.ExecuteCommand($"UPDATE sqlite_sequence SET seq = 0 WHERE name = '{tableName}'") > 0;
}
/// <summary>
///by current connection string
/// </summary>