Top "Ef-core-2.1" questions

If you have questions regarding the 2.1 version of Entity Framework for .NET Core.

Setting the default value of a DateTime Property to DateTime.Now inside the System.ComponentModel Default Value Attrbute

Does any one know how I can specify the Default value for a DateTime property using the System.ComponentModel DefaultValue …

c# asp.net entity-framework asp.net-core-2.1 ef-core-2.1
Change the IDENTITY property of a column, the column needs to be dropped and recreated

I am using EF Core 2.1 This was my initial model definition. public class Customer //Parent { public int Id { get; set; } …

c# asp.net entity-framework entity-framework-core ef-core-2.1
The specified framework 'Microsoft.NETCore.App', version '2.1' was not found

I am developing an Angular 6 application in dotNet Core 2.1. Everything is working flawlessly, until I got to setting up EFCore. …

c# ef-core-2.1 .net-core-2.1
How to validate uploaded file in ASP.Net Core

I'm using ASP.NET Core 2.2 and I'm using model binding for uploading file. This is my UserViewModel public class UserViewModel { […

c# asp.net asp.net-core ef-core-2.1
Version Conflict detected for Microsoft.EntityFrameworkCore.Install

I am getting the following error when adding an asp.net core api to an existing project I am working …

c# .net-core asp.net-core-webapi ef-core-2.1
How to seed an Admin user in EF Core 2.1.0?

I have an ASP.NET Core 2.1.0 application using EF Core 2.1.0. How do I go about seeding the database with Admin …

c# asp.net-core asp.net-core-2.1 ef-core-2.1
EF Core tools version update 2.1.1

If I run dotnet ef add testmigration I get this warning: The EF Core tools version '2.1.0-rtm-30799' is …

entity-framework .net-core ef-core-2.1
The property X is of type Y which is not supported by current database provider

I am really new to EF (using EF core 2.1) and have been following a bunch of tutorials so far, but …

entity-framework ef-core-2.1
Get List of Entity Models in DbContext Entity Framework Core 2.1

I'm trying to find a way to get a List of all of the entity models in my DbContext. For …

c# ef-core-2.1 .net-core-2.1 entity-framework-core-2.1
Scaffold-DbContext (EF Core Tools) throws 'Instance failure' exception

Context Currently I am creating an Extract, Transform and Load (ETL) application written in C# with .NET Core. The target …

.net-core ef-database-first ef-core-2.1 entity-framework-core-2.1 entity-framework-core-migrations