- 修复 子查询使用基类+AsType 可能产生的 bug;#1215

This commit is contained in:
2881099
2022-08-14 00:04:35 +08:00
parent 064cb82cf0
commit f49c5f2827
4 changed files with 91 additions and 11 deletions

View File

@ -317,8 +317,20 @@ namespace base_entity
public Guid Id { get; set; }
public string[] Tags { get; init; } = Array.Empty<string>();
}
class BaseModel<T>
{
public static int fsql;
}
static void Main(string[] args)
{
BaseModel<User1>.fsql = 1;
BaseModel<UserGroup>.fsql = 2;
Console.WriteLine(BaseModel<User1>.fsql);
Console.WriteLine(BaseModel<UserGroup>.fsql);
#region IFreeSql
var fsql = new FreeSql.FreeSqlBuilder()
.UseAutoSyncStructure(true)