Browse Source

Update demo

pull/9/head
sunkaixuna 3 years ago
parent
commit
b4b9f7e28a
  1. 1
      Src/Asp.Net/DmTest/UnitTest/UThread.cs
  2. 1
      Src/Asp.Net/MySqlTest/UnitTest/UThread.cs
  3. 1
      Src/Asp.Net/OracleTest/Demo/Demo1_Queryable.cs
  4. 1
      Src/Asp.Net/OracleTest/UnitTest/UThread.cs
  5. 3
      Src/Asp.Net/PgSqlTest/UnitTest/UThread.cs
  6. 3
      Src/Asp.Net/SqliteTest/UnitTest/UThread.cs

1
Src/Asp.Net/DmTest/UnitTest/UThread.cs

@ -31,7 +31,6 @@ namespace OrmTest
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

1
Src/Asp.Net/MySqlTest/UnitTest/UThread.cs

@ -31,7 +31,6 @@ namespace OrmTest
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

1
Src/Asp.Net/OracleTest/Demo/Demo1_Queryable.cs

@ -51,6 +51,7 @@ namespace OrmTest
CustomName = SqlFunc.MergeString(it.Name, "/", it.Name)
})
).ToList();
var test2 = db.Queryable<Order>().Select<ViewOrder>().ToList();
Console.WriteLine("#### Examples End ####");
}

1
Src/Asp.Net/OracleTest/UnitTest/UThread.cs

@ -31,7 +31,6 @@ namespace OrmTest
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

3
Src/Asp.Net/PgSqlTest/UnitTest/UThread.cs

@ -25,13 +25,12 @@ namespace OrmTest
}
}
});
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
{
DbType = DbType.PostgreSQL,
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

3
Src/Asp.Net/SqliteTest/UnitTest/UThread.cs

@ -25,13 +25,12 @@ namespace OrmTest
}
}
});
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
{
DbType = DbType.Sqlite,
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

Loading…
Cancel
Save