1

I am trying to configure my .NET Core Entity Framework app to use SQL Server, but I can't seem to access the namespace.

Startup.cs (origin of the error)

using Microsoft.EntityFrameworkCore.SqlServer;

Project.json

"dependencies": {
    "Microsoft.EntityFrameworkCore.SqlServer": "1.1.0"
}

I have run dotnet restore successfully.

If anyone could point me in the right direction that would be lovely.

0

1 Answer 1

2

That's because there is no namespace "Microsoft.EntityFrameworkCore.SqlServer". Everything related to SQL Server is in the "Microsoft.EntityFrameworkCore" namespace. See for yourself: https://github.com/aspnet/EntityFramework/tree/dev/src/Microsoft.EntityFrameworkCore.SqlServer.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, that worked. I got the .SqlServer .part from some blog or tutorial I believe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.