Segue meu arquivo csproj:
<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.App" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.3"> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <PrivateAssets>all</PrivateAssets> </PackageReference> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.12" /> </ItemGroup></Project>Em meu arquivo startup.cs:public void ConfigureServices(IServiceCollection services) { services.AddDbContext<DataContext>( x => x.UseSqlite(Configuration.GetConnectionString("DefaultConnection")) ); services.AddControllers(); }O que pode estar gerando o erro "Method 'Create' in type 'Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryableMethodTranslatingExpressionVisitorFactory' from assembly 'Microsoft.EntityFrameworkCore.Sqlite, Version=3.1.12.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation." quando tento criar uma migration?Desde já agradeço.
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Tente pesquisar no Google...