Skip to content

根据type init tables时有bug #1443

Description

@394988736
        // 获取所有带有SugarTable特性的类
        var tableTypes = GetTableTypesBySugarTableAttribute(assembly);
        if (tableTypes.Length > 0)
        {
            //db.CodeFirst.InitTables(tableTypes);
            
            foreach (var tableType in tableTypes)
            {
                Console.WriteLine($"init table: {tableType.FullName}");
                db.CodeFirst.InitTables(tableType);
            }
        }

以上代码运行正确;但是以db.CodeFirst.InitTables(tableTypes);方式执行时会有漏的type没有执行

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions