mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update Pgsql entity aop bug
This commit is contained in:
29
Src/Asp.Net/PgSqlTest/UnitTest/UAopTest.cs
Normal file
29
Src/Asp.Net/PgSqlTest/UnitTest/UAopTest.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public partial class NewUnitTest
|
||||
{
|
||||
|
||||
public static void AopTest()
|
||||
{
|
||||
var db = Db;
|
||||
db.CurrentConnectionConfig.ConfigureExternalServices = new SqlSugar.ConfigureExternalServices()
|
||||
{
|
||||
|
||||
EntityNameService = (t, e) => {
|
||||
|
||||
e.DbTableName = "public." + e.DbTableName;
|
||||
}
|
||||
};
|
||||
db.Queryable<Order>().Select(it=> new {
|
||||
x=SqlSugar.SqlFunc.Subqueryable<Order>().Select(s=>s.Id)
|
||||
}).ToList();
|
||||
db.CurrentConnectionConfig.ConfigureExternalServices = new SqlSugar.ConfigureExternalServices();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user