diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBuilder.cs
index 10828da25..d836405ff 100644
--- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBuilder.cs
+++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBuilder.cs
@@ -6,16 +6,18 @@ namespace SqlSugar
{
public class MySqlBuilder : SqlBuilderProvider
{
-
public override string GetTranslationTableName(string name)
{
- if (name.Contains("`")) return name;
Check.ArgumentNullException(name, string.Format(ErrorMessage.ObjNotExist, "Table Name"));
var context = this.Context;
var mappingInfo = context
.MappingTables
.FirstOrDefault(it => it.EntityName.Equals(name, StringComparison.CurrentCultureIgnoreCase));
- return "`" + (mappingInfo == null ? name : mappingInfo.DbTableName) + "`";
+ name = (mappingInfo == null ? name : mappingInfo.DbTableName);
+ if (name.Contains("`"))
+ return name;
+ else
+ return "`" + name + "`";
}
public override string GetTranslationColumnName(string entityName, string propertyName)
{
diff --git a/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteDeleteBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteDeleteBuilder.cs
index 97189bcab..9c70f83af 100644
--- a/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteDeleteBuilder.cs
+++ b/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteDeleteBuilder.cs
@@ -1,6 +1,6 @@
namespace SqlSugar
{
- public class MySqlDeleteBuilder : DeleteBuilder
+ public class SqliteDeleteBuilder : DeleteBuilder
{
}
diff --git a/Src/Asp.Net/SqliteTest/Program.cs b/Src/Asp.Net/SqliteTest/Program.cs
new file mode 100644
index 000000000..289944874
--- /dev/null
+++ b/Src/Asp.Net/SqliteTest/Program.cs
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Linq.Expressions;
+using SqlSugar;
+//using OrmTest.Models;
+//using System.Data.SqlClient;
+//using OrmTest.UnitTest;
+//using OrmTest.PerformanceTesting;
+
+namespace OrmTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ ////// /***Unit Test***/
+ //new Field(1).Init();
+ //new Where(1).Init();
+ //new Method(1).Init();
+ //new JoinQuery(1).Init();
+ //new SingleQuery(1).Init();
+ //new SelectQuery(1).Init();
+ //new AutoClose(1).Init();
+ //new Insert(1).Init();
+ //new Delete(1).Init();
+ //new Update(1).Init();
+ //new Mapping(1).Init();
+ //new DataTest(1).Init();
+
+ //// /***Performance Test***/
+ //// new SqlSugarPerformance(100).Select();
+
+ ///***Demo***/
+ //OrmTest.Demo.Query.Init();
+ //OrmTest.Demo.Insert.Init();
+ //OrmTest.Demo.Delete.Init();
+ //OrmTest.Demo.Update.Init();
+ //OrmTest.Demo.DbFirst.Init();
+ //OrmTest.Demo.JoinSql.Init();
+ //OrmTest.Demo.Filter.Init();
+ //OrmTest.Demo.ComplexModel.Init();
+ //OrmTest.Demo.CodeFirst.Init();
+ }
+ }
+}
diff --git a/Src/Asp.Net/SqliteTest/SqliteTest.csproj b/Src/Asp.Net/SqliteTest/SqliteTest.csproj
index e5fb3bbf6..6e758a09d 100644
--- a/Src/Asp.Net/SqliteTest/SqliteTest.csproj
+++ b/Src/Asp.Net/SqliteTest/SqliteTest.csproj
@@ -5,7 +5,7 @@
Debug
AnyCPU
{D48622B3-F4CD-45CD-B1C9-868083037ECD}
- Library
+ Exe
Properties
SqliteTest
SqliteTest
@@ -29,6 +29,9 @@
prompt
4
+
+
+
@@ -41,6 +44,7 @@
+
@@ -54,6 +58,12 @@
Always
+
+
+ {489bb790-226c-4fad-8d1e-51d72a7ff8e5}
+ SqlSugar
+
+