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)

33 results in tag: visual-studio

Entity Framework Power Tools not work

I have a problem: I can't generate POCO from database with ...Entity framework Power Tools Beta 4... in my project....I did try in Visual Studio 2012 and did try too in Visual Studio 2013 and don't work. But that's was working in the last year (the last t...
entity-framework entity-framework-6 visual-studio visual-studio-2012
asked by MayogaX

Running update-database results in the error: "A file activation error occurred"

Basically I've created a class library project containing a data access repository for other projects to use. I've added the EF6 package and enabled migrations. My connection string in app.config looks the following:... <connectionStrings> <add name=...
database entity-framework entity-framework-6 visual-studio
asked by JensOlsen112

Visual Studio 2015 and Entity Framework Migrations not working

We are using Visual Studio 2015 Update 1 and Entity Framework 6.1.3. Also we are following the Code-First approach and are using Entity Framework Migrations to respond to schema changes. Since updating to Visual Studio 2015, some fellow developers can not...
c# entity-framework entity-framework-6 visual-studio visual-studio-2015
asked by Fabe

Add-Migration showing error EntityFrameworkCore.Design is not installed

I am following the tutorial for EntityFrameworkCore in here ...https://docs.efproject.net/en/staging/platforms/aspnetcore/new-db.html... But when i reach the create database part of the tutorial ...https://docs.efproject.net/en/staging/platforms/aspnetco...
c# entity-framework entity-framework-core nuget visual-studio
asked by Destino

Visual Studio Mac Preview Entity Framework SQLite add migration

I've installed Visual Studio for Mac (OSX 10.12.1) today and I've been diving in quite extensively....I wanted to try to get EntityFrameworkCore (1.1.0) to run with SQLite....So I've created a new Console Application .NET Core and with some troubles been ...
.net-core entity-framework-core macos visual-studio
asked by Michael Lopez

How the right way to rollback migration with Entity Framework

I'm very newbie with EF and migration. I'm trying to make a rollback with the command, to run the Down method...update-database -TargetMigration MyLastMigration ...Output result...Target database is already at version 201701031905415_MyLastMigration. ...H...
entity-framework entity-framework-6 mysql visual-studio
asked by Vinicius Maciel

Using T4 template to force PascalCase (TitleCase) for entities in Entity Framework 6

Turns out, simply modifying the default T4 template was actually really easy. Inside ...GetTypeName... there is a ...is StructuralType... check which handles all non-primitive types. That pretty well fixed the majority of my issues. Then it was just a mat...
c# entity-framework entity-framework-6 t4 visual-studio
asked by Nick Alexander

Where is the dotnet command executable located on Windows?

I am exploring the new Entity Framework Core (NOT in conjunction with ASP.Net, what I am coding is just a WinForms app) and found some tutorials mentioning a ...dotnet... command line command needed to create "migrations". When I try it, however, it says...
entity-framework-core visual-studio windows
asked by Ivan

Why is Visual Studio telling me I need to reference System.Private.CoreLib?

I'm trying out EF Core for the first time and have coded a very simple MVC app to get my feet wet. I am using a method for seeding the database found in the ...UnicornStore project... where they write some code in ...Startup.cs... to migrate the database ...
asp.net-core asp.net-core-mvc entity-framework-core visual-studio
asked by Jim

Custom Execution Strategy Error in VS2017 and Entity framework Core 2.0

I'm reading "Building Web Applications with Visual Studio 2017" (by Philip Japikse, Kevin Grossnicklaus, and Ben Dewey) and am getting stuck. When trying to create a class for a custome execution strategy with Entity Framework Core I get error CR0246 "The...
c# entity-framework entity-framework-core visual-studio visual-studio-2017
asked by Shane Blume

Where Does Entity Framework 6 Get Connection String For Migrations?

I'm using EntityFramework 6 code first with migrations. I have two projects -- UI and BusinessLogic. UI is a .NET MVC web application with a dependency on BusinessLogic, which is a class library. WebUI has the config section including connection string. ...
ef-code-first entity-framework entity-framework-6 visual-studio
asked by jakejgordon

Custom properties in partial class (Invalid column name)

I created my database by script, then used the scaffold command to create my classes in visual studio, I added a new partial class for an entity (User) in which I added some custom properties (this wont be on the database) whenever I run a Get to this ent...
asp.net-core c# entity-framework-core visual-studio
asked by Jesus Rios

How to apply an EF migration to a database hosted in Azure?

I'm creating an ASP.NET Core API, and I have one project in my solution named ...MyProj.API... and another project named ...MyProj.Data.... Both of them are Core Web app projects. Simply, ...API... project includes all the controllers and other logic, whe...
asp.net-core azure entity-framework-core visual-studio
asked by tinker

xamarin conflicts with Microsoft.EntityFrameworkCore.Sqlite

I want to use entity framework in my xamarin.forms solution, but when I install the "Microsoft.EntityFrameworkCore.SQLite" nugget package I face with this build error:...Can not resolve reference: ...System.Buffers..., referenced by ...System.Memory.... ...
c# entity-framework-core visual-studio xamarin.android xamarin.forms
asked by Fariborz Korevli

Errors Occur when switching from Development to Staging Environment - ASP.Net Core MVC

I've been developing a web-application with ASP.Net Core MVC using C# and Entity Framework Core to interact with a SQL Database running on SQL Server 2017. ...The application is now in ...Staging..., but I'm running into problems. In the application prope...
asp.net-core-mvc entity-framework-core sql-server staging visual-studio
asked by Corey P

VS Solution Explorer Analyzers exclamation: ef1000 "possible sql injection vulnerability"

Strange message in Solution Explorer....ef1000 "possible sql injection vulnerability" ...It doesn't prevent compile, no errors, no warnings, no messages in "Errors List"....No similar messages in the output on compile... Click doesn't move focus to "vulne...
entity-framework-core entity-framework-core-2.1 visual-studio visual-studio-2017
asked by Roman Pokrovskij

Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design

I have 2 projects in my solution, I have a project with Entity Framework Core installed:...And in the other ASP.NET Web API project I have these packages:...<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Antlr" version="3.5.0.2" targetFr...
c# entity-framework-core nuget visual-studio
asked by el_pup_le

Constructor of Dbcontext keeps changing the base argument on update of model

In my context class I have the following to make the project a black box for data. ... public MyEntities() : base("metadata = res://*/fda.csdl|res://*/fda.ssdl|res://*/fda.msl;provider=System.Data.SqlClient;provider connection string='data ...
c# entity-framework entity-framework-6 visual-studio
asked by MilesMorales

"update model in database" not available in .edmx file menu?

I am trying to update the model by right-clicking on the .edmx file and selecting "Update model in database". However this option is not available in the contextual menu... am I missing something?
entity-framework entity-framework-6 visual-studio
asked by Yann

C# - How to fix error "missing server and user in credentials" when create new connection in VS2017

I have a problem that I cannot load my database into visual studio 2017. I used ...entity framework 6.2... and I would like to load my database like ...this... picture. ...error said ...missing server and user in credentials...I have tried to add some ref...
c# entity-framework entity-framework-6 mysql visual-studio
asked by Christopher

Page 1 of 2
  • 1
  • 2
  • ยป

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!