mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Update unit bug
This commit is contained in:
35
Src/Asp.Net/SqlServerTest/UnitTest/UCustom013.cs
Normal file
35
Src/Asp.Net/SqlServerTest/UnitTest/UCustom013.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public class UCustom013
|
||||
{
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
||||
{
|
||||
ConnectionString = Config.ConnectionString,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
db.CodeFirst.InitTables<UnitBoola1>();
|
||||
db.Queryable<Order>()
|
||||
.Select(x => new
|
||||
{
|
||||
x1 = SqlFunc.Subqueryable<UnitBoola1>().Select(it => it.a)
|
||||
}).ToList();
|
||||
|
||||
}
|
||||
public class UnitBoola1
|
||||
{
|
||||
public bool a { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user