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)

29 results in tag: asp.net-core-1.0

Entity Framework Core 1.0 unit of work with Asp.Net Core middleware or Mvc filter

I am using EF Core 1.0 (previously known ad EF7) and ASP.NET Core 1.0 (previously known as ASP.NET 5) for a RESTful API....I'd like to have some unit of work scoped to an http request in such a way that when responding to the HTTP request either ALL the c...
asp.net-core-1.0 entity-framework-core middleware unit-of-work
asked by diegosasw

Entity Framework Core 1.0 DbContext not scoped to http request

I understood by watching this video with Rowan Miller ...https://channel9.msdn.com/Series/Whats-New-with-ASPNET-5/06...(at minute 22)... that the way of configuring Entity Framework Core (previously known as EF7) into an ASP.NET Core 1.0 app (previously k...
asp.net-core-1.0 asp.net-core-mvc dbcontext entity-framework-core middleware
asked by diegosasw

EF core Migrations wrong latin SQL encoding

I have a ASP.NET Core 1.0 project with EF7. When I add a migration with SQL command and latin characters, I get them replaced by "?" when updating database....Let's see an example:...public partial class TestEncodingMigration : Migration { protected o...
asp.net-core-1.0 c# entity-framework-core
asked by tede24

Equivalent for .HasOptional in Entity Framework Core 1 (EF7)

Consider two classes....public class File { [Key] public string Id { get; set; } public string Message_Id { get; set; } internal Message Message { get; set; } } public class Message { [Key] public string Id { get; set; } ...
.net-core asp.net-core asp.net-core-1.0 entity-framework entity-framework-core
asked by Chatumbabub

How can I implement Bulk insert in ASP.NET Core 1.0?

I want to import the data from database in .csv format and want to export .csv into my SQL server/Oracle database. I am using ASP.NET Core RC 1 at this moment. I looked into SQLBulkCopy class but the issue is that it is not ported to ASP.NET Core....Can s...
asp.net-core asp.net-core-1.0 entity-framework-core
asked by VirendraJ

'Microsoft.EntityFrameworkCore.Infrastructure.IDbContextFactory`1[TContext]' violates the constraint of type parameter 'TContext'

It's my first time using asp 5\core1 and i'm having problem setting a entity framework dbcontext...I have one class library with my object...public class Utilizador { public Utilizador() { } public int id { get; set; ...
asp.net-core-1.0 c# dbcontext entity-framework entity-framework-core
asked by Shakawkaw

Scaffolding in .Net Core with Multiple Projects in Solution

I have created an .Net Core MVC6 application targeting net461. I have used a project structure I am very familiar with in which I place the data, model, and service classes in separate class library projects and the Web project references these. ...When...
asp.net-core-1.0 asp.net-core-mvc asp.net-mvc-scaffolding c# entity-framework-core
asked by David Newberry

EntityFramework Core database scaffolding (.NET Core RC2)

I try to create an EntityFramework Core's model with an existing database (doc here : ...https://docs.efproject.net/en/latest/platforms/aspnetcore/existing-db.html...) but I have an error....When I try the ...Package Manager... method, I have the error :....
.net-core-rc2 asp.net-core-1.0 entity-framework-core
asked by AdrienTorris

Insert with primary key fails

I am writing a web app utilizing Asp.Net Core RC2 and EF Core. When I try to insert a new row into the SQLite database which should have a primary key with auto increments, all attempts to perform this insert result in an error:...An exception of type 'Sy...
asp.net-core asp.net-core-1.0 asp.net-core-mvc entity-framework-core sqlite
asked by Gearbolt

ASP.NET Core RC2 Seed Database

My problem is i am trying to seed an Entity Framework Core database with data and in my mind the below code show work. I've realised that this should not be called in the ...ApplicationDbContext... constructor and should be called from the ...startup... b...
asp.net-core asp.net-core-1.0 c# entity-framework-core
asked by Adam H

Entity Framework Core "Object reference not set to an instance of an object" with nested .Any in LINQ

I have an ASP.NET Core application using Entity Framework Core 1.0.0....On a specific query I am getting an "Object reference not set to an instance of an object" exception....The query that is causing the exception is:... return mContext.ItemD...
asp.net-core-1.0 asp.net-core-mvc c# entity-framework-core linq
asked by Stooby

Register generic EntityFrameworkCore DbContext in ASP.Net Core 1.0

I am trying to use generic DbContext in ...ASP.Net Core 1.0... however I am getting following error:...ArgumentException: Type 'idmin.data.IdminDataContext`1[System.Int32]' does not have a default constructor Parameter name: type ...Here is how IdminData...
asp.net-core-1.0 asp.net-mvc c# entity-framework-core generics
asked by Pankaj Kapare

Dependency Injection in Asp.net core Integration testing

I successfully injected dependencies using Moq in my unit test project. But for the integration testI would like to interact with the database. So I canot fake the repositories/ dependencies. I am having trouble how to achieve such thing in seperate class...
asp.net-core-1.0 dependency-injection entity-framework-core integration-testing testing
asked by Avi-B

Get custom property of signed in user in .NET Core

I'm working on a .NET Core project and I have added a custom column to the ...ASPNetUsers... table called ...DisplayName... that users set during the registration. I've successfully migrated the tables with that data and everything works fine....However ...
asp.net-core-1.0 asp.net-core-mvc c# entity-framework-core
asked by DethoRhyne

Update many-to-many entity with ASP.NET Core MVC MultiSelectList

I have a form where I want to update an entity with a many-to-many relationship with another entity, and I'm trying to use the ...select... tag to create the ...MultiSelectList... control. I'm using ASP.NET Core 1.0 with Entity Framework....Say I have the...
asp.net-core-1.0 asp.net-mvc c# entity-framework-core
asked by Mac Reichelt

Use EF6 with ASP.NET Core

I am working a new project - and I want to do it using the latest .NET Core....Reading through the documentation, I came across the comparison between Entity Framework Core and Entity Framework 6.x Comparison. ...Here...Some of the features that I require...
asp.net-core asp.net-core-1.0 entity-framework entity-framework-6 entity-framework-core
asked by Dawood Awan

issue with my dbcontext in asp.core. Dont know how to use DbContextOptions object

This is my dbcontext:...public class ShoppingDbContext : IdentityDbContext<User> { public ShoppingDbContext(DbContextOptions options) : base(options) { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {...
asp.net-core-1.0 c# entity-framework entity-framework-core
asked by Robel Haile

ASP.NET Core SQL Connection TImeout

I've been working on upgrading an ASP.NET 5 RC1 app to ASP.NET Core 1. I have successfully upgraded it by replacing packages (AspNet to AspNetCore) and changing from EF7 to EF Core (Microsoft.Data.Entity to Microsoft.EntityFrameworkCore)....The issue I'm ...
asp.net-core asp.net-core-1.0 asp.net-core-mvc entity-framework-core
asked by John Oerter

Cannot connect to SQL Server on ASP.NET Core 1 EF7

I am trying to connect to SQL Server 2014 or 2016 from an ASP.NET Core 1.0 web application (Entity Framework Core). I am getting the error below. Any tips how to resolve it....I can successfully connect to the DB from through Visual Studio 2015 SQL Server...
asp.net-core asp.net-core-1.0 entity-framework-core sql-server
asked by feradz

Assuming assembly reference 'System.Runtime, Version=4.0.20.0'

I have the following warning in all my code:...Warning in Visual studio 2015 community edition...Here is my project.json:...{ "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "build" }, "Microsoft.AspNetCo...
asp.net-core-1.0 entity-framework-core visual-studio-2015
asked by Jherzon Franz Nava Rojas

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!