Using Aps.Net core 1.0.1, Entityframework core, angular2.0 and typescript having existing database.
Trying to create entity framework core database first for class library using the existing database
My project.json looks like this for my class library
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
}
}
}
},
"dependencies": {
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",
"Microsoft.EntityFrameworkCore.SqlServer.Design": {
"version": "1.0.1",
"type": "build"
},
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
}
},
"tools": {
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"
}
}
Using Visual studio 2015 update 3
I have an existing database, so i want to generate class from Database in separate class library as i want DAL separate from UI for this i am using entity frame work core 1.0.1 but tried several approaches.
such as creating the new class library and updating the dependencies in project.json and using the package manger console and type the fallowing
command: Scaffold-DbContext "Server=xxxxxx;Database=xxxxxxxxx;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models.
but got error : Startup project 'Application' is an ASP.NET Core or .NET Core project for Visual Studio 2015. This version of the Entity Framework Core Package Manager Console Tools doesn't support these types of projects.
I am using Asp.net Core 1.0.1 and Entity Framework core 1.0.1
@DavidG