我只想知道怎样才能使这段代码以一种很简单的方式变得更小。using System;using System.Collections.Generic;using System.Data.Entity.Validation;{
public class IngredientsTest
[AssemblyIn
我已经将我的项目从EntityFrameWork 6迁移到EntityFrameWorkCore 2.0。但是,尽管命令dotnet迁移添加init,但它会给我带来错误。Error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken
() in c:\dev\EntityFramework.MappingAPI\trunk\src\EntityFramework.MappingAPI\Mappers\MapperBase.cs:line\trunk\src\EntityFramework.MappingAPI\Mappings\DbMapping.cs:line 101
at EntityFramework.MappingAPI.EfMap.Get(DbContext context) in c:\dev\EntityFramew