.net-core-3.1

Simply Adding Entity Framework Core to a basic Azure function application results in an error

放肆的年华 提交于 2020-01-14 02:10:08
问题 It's very simple to describe: Create a new solution using the "Azure Functions" template from Visual Studio 2019 (16.4.1). Change the TargetFramework to ".NET Core 3.1". It will be created with Microsoft.NET.Sdk.Functions (1.0.29). Update it to the latest version (3.0.1). It will not work, because now we will need some other nuget packages: Microsoft.Azure.WebJobs.Core (3.0.14) Microsoft.Azure.WebJobs.Extensions.Http (3.0.2) At this moment, the application runs in the emulator. Just start the

Invalid Object Name error when creating database with EF Code First

巧了我就是萌 提交于 2019-12-24 19:15:32
问题 Hello i am developing a database using EF Core Code First .I keep getting this error when generating the database : Microsoft.EntityFrameworkCore.DbUpdateException: 'An error occurred while updating the entries. See the inner exception for details.' InnerException {"Invalid object name 'Parents'."} System.Exception {Microsoft.Data.SqlClient.SqlException} From what i have read it seems i can not create the database because the tables are somehow pluralized. I have searched for solutions