Browse Source

Code optimization

pull/29/head
sunkaixuan 2 years ago
parent
commit
59fa064e63
  1. 9
      Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs
  2. 9
      Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

9
Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

@ -258,6 +258,15 @@ namespace SqlSugar
#endregion #endregion
#region Methods #region Methods
public override void AddDefaultValue(EntityInfo entityInfo)
{
Console.WriteLine("sqlite no support AddDefaultValue");
}
public override bool AddDefaultValue(string tableName, string columnName, string defaultValue)
{
Console.WriteLine("sqlite no support AddDefaultValue");
return true;
}
public override bool TruncateTable(string tableName) public override bool TruncateTable(string tableName)
{ {
base.TruncateTable(tableName);//delete data base.TruncateTable(tableName);//delete data

9
Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

@ -255,6 +255,15 @@ namespace SqlSugar
#endregion #endregion
#region Methods #region Methods
public override void AddDefaultValue(EntityInfo entityInfo)
{
Console.WriteLine("sqlite no support AddDefaultValue");
}
public override bool AddDefaultValue(string tableName, string columnName, string defaultValue)
{
Console.WriteLine("sqlite no support AddDefaultValue");
return true;
}
public override bool TruncateTable(string tableName) public override bool TruncateTable(string tableName)
{ {
base.TruncateTable(tableName);//delete data base.TruncateTable(tableName);//delete data

Loading…
Cancel
Save