Dotnet Core 3.1, EF1001: 내부 ef 코어 API 사용 (Dotnet Core 3.1, EF1001: internal ef core api usage)


문제 설명

Dotnet Core 3.1, EF1001: 내부 ef 코어 API 사용 (Dotnet Core 3.1, EF1001: internal ef core api usage)

2.2에서 Dotnet Core 3.1로 업그레이드된 EF 코어는 내 프로젝트에 느낌표를 넣어 EF1001: 내부 ef 코어 API 사용에 대해 계속 불평했습니다.

하지만 오류/경고 없음 컴파일 중에 표시됩니다. 어떤 코드 라인이 문제를 일으키는지 모르겠습니다.

사용하지 않는 API/메소드를 어떻게 알 수 있는지 알 수 있을까요?


참조 솔루션

방법 1:

The warnings from these analyzers can be really confusing. If I understand this correctly, the issue is not what it seems.

The message with the gray warning icon inside the analyzer is normal and indicates what the analyzer is checking. See the Analyzers in Solution Explorer documentation for an explanation.

Analyzer diagnostics

If you are experiencing yellow icons on the parent node ("Analyzers") try to unload/reload the project, or maybe open Visual Studio in admin mode. See the answer to "Analyzers warnings in ASP.NET Core 2.2 project in VS2019 " for details.

If you don't see a warning in the error list then I advise you to ignore that.

The GitHub issue "Confusing analyzer warnings in solution explorer with no way to see any details" provides additional information on this.

방법 2:

Are you using a database provider (i.e. packages for SQLServer, Postgres, etc)?

It sounds like you are saying there is some warning being given with your dependencies. I know Microsoft announced some breaking changes, mainly for database providers, with EF Core with the 3.0+ updates. Could be as simple as updating the other packages in your project.

Just guessing, I could very well be wrong.

방법 3:

figure it out for me, was getting the same warning,

it was using an entity framework namespace

(using Microsoft.EntityFrameworkCore.Internal;) and not

using System.Linq; which was extremely odd as I didn't add the Ef one at all.

which is why I was so confused and started googling and how i got to this page.

(by s kRafikijdewerthSeabizkit)

참조 문서

  1. Dotnet Core 3.1, EF1001: internal ef core api usage (CC BY‑SA 2.5/3.0/4.0)

#.net-core #entity-framework-core






관련 질문

.net core rc1에서 rc2로 마이그레이션할 때 이 비호환성 문제가 발생하는 이유 (Why I'm getting this incompatibilities issues migrating from .net core rc1 to rc2)

dotnet core-Logging 클래스 라이브러리 (dotnet core-Logging in class library)

Cors .Net Core 활성화 (Enable Cors .Net Core)

Enum<T>.Parse를 사용하면 정수인 모든 문자열을 구문 분석할 수 있습니다. .net 코어의 버그입니까? (Enum<T>.Parse allows parsing any string that is an integer. Is it a bug in .net core?)

.net Core: C# 코드에서 매개 변수를 전달하고 Azure 데이터 팩터리 파이프라인을 실행하는 방법은 무엇입니까? (.net Core : How to pass parameters and run Azure data factory pipeline from C# Code?)

Dotnet Core 3.1, EF1001: 내부 ef 코어 API 사용 (Dotnet Core 3.1, EF1001: internal ef core api usage)

.NET Core 작업자 서비스의 구성을 기반으로 호스팅 서비스 등록 (Register Hosted Services based on Configuration in .NET Core Worker services)

pem 및 key를 사용하여 Azure 기능에서 게시 시도 (Trying to do post from an Azure function with pem and key)

.NET Core에서 실제 통합 테스트를 작성하는 방법은 무엇입니까? (How to write real integration test in .NET Core?)

HTTP 오류 500.30 - ANCM 진행 중인 시작 실패 Asp.net-Core 3.1 (HTTP Error 500.30 - ANCM In-Process Start Failure Asp.net-Core 3.1)

.Net Core에서 NUnit 3와 Allure 통합 (Allure integration with NUnit 3 in .Net Core)

HttpClient 재시도 논리가 예상대로 작동하지 않음(.Net Core 3.1) (HttpClient retry logic not working as expected (.Net Core 3.1))







코멘트