zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

8 results in tag: dotnet-cli

How to apply existing migrations for ApplicationDbContext in Release build of ASP.NET Core web application using SQLite

I am unable to apply existing migrations for ApplicationDbContext on the Release build of my ASP.NET Core web application using SQLite database. As a result, I have to copy over my sqlite .db file from Debug build (which I am able to apply migrations) to ...
asp.net-core dotnet-cli ef-migrations entity-framework-core sqlite
asked by kimbaudi

Create a dotnet tool for EF Core data seed

As mentioned in this ...post... I am seeding database data on the Startup of an ASP.NET Core project as follows:...public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { using (var serviceScope = app.App...
asp.net-core dotnet-cli entity-framework-core
asked by Miguel Moura

EF Core Error - No project was found. Change the current working directory or use the --project option

I am using ...Visual Studio 2015... and dotnet core and trying to develop an ...EF Core Code First project using Sqlite... and this documentation / tutorial, which also uses Sqlite => ...NET Core - New Database...When I try to add an initial migration fro...
.net-core dotnet-cli ef-code-first ef-migrations entity-framework-core
asked by Shiva

Entity Framework Core: Automated DB scaffolding into a class library

Following ...this tutorial... it is possible to scaffold a database context using Entity Framework Core via the command line....Scaffolding has some strange requirements ...it needs an entry point aka main method (no scaffolding into class libraries)...th...
dotnet-cli entity-framework-core scaffold scaffolding
asked by monty

Use settings.json on a Net Core Class Library with EF Core migrations

On a NET Core 2.1 Class Library I have a Entity Framework Core 2.1 DbContext:...public class AppContext : IdentityDbContext<User, Role, Int32> { public AppContext(DbContextOptions options) : base(options) { } } ...To run migrations on the Class Librar...
asp.net-core dotnet-cli entity-framework-core
asked by Miguel Moura

dotnet ef migrations: Value cannot be null. Parameter name: contentRootPath

I'm trying to create migration but it fails with ...Value cannot be null. Parameter name: contentRootPath..... Same error from both ...dotnet ef migrations add... and ...dotnet ef migrations script.......Here is the full verbose output:...PS C:\mypath> do...
c# dotnet-cli entity-framework-core
asked by Lassi Autio

dotnet ef command no longer works after upgrading to Visual Studio 16.3.0

This happened at home first, so I thought maybe it was an issue with my desktop PC at home. But now that I am back at work, I tried the upgrade and got the same thing....Screenshot before upgrade...Screenshot after upgrading Visual Studio...The error I ge...
dotnet-cli entity-framework entity-framework-core entity-framework-core-3.0
asked by J86

dotnet ef Could not execute because the specified command or file was not found

In angular + asp.net core 3.1 project, I am getting this error, whenever I try to access anything related to EF. ...dotnet ef Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a bu...
.net-core c# dotnet-cli entity-framework entity-framework-core
asked by Senthil

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!