Skip to content

.net10下,LINQ问题 #425

@xj728

Description

@xj728

.Select(w => new MenuFunctionDto()
{
MenuId = w.MenuId,
FunctionId = w.Id,
Title = w.Title,
Url = w.Url,
Show = w.Show
})
以上代码会报错,在.net10以前的版本没问题,升级到.net10后就有问题。具体是下面这一行有问题。
FunctionId = w.Id, 这个映射在.net10里有问题,如果改成FunctionId = w.FunctionId就没问题。

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