反正是有使用实体框架.NET中的核心?

编程入门 行业动态 更新时间:2024-10-26 22:17:21
本文介绍了反正是有使用实体框架.NET中的核心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚更改为新的ASP.NET 5平台。我使用Visual Studio code作为我的默认IDE和DNX执行。现在.NET核心默认情况下,但我需要切换到.NET Framework总是我想引用的 System.Data.Entity的的命名空间或 TodoContext类的

I've just changed to the new ASP.NET 5 platform. I use visual studio code as my default IDE, and DNX for execution. .NET Core is now by default but I need to switch to .NET Framework always I want to reference the System.Data.Entity namespace or the TodoContext class.

反正在.NET的核心使用EF?

这是我现在在做什么。

This is what I'm doing now.

推荐答案

在的EntityFramework在 System.Data这是第6版。如果你想使用.NET的核心,那么你需要切换到EF 7,它不再生活在System.Data这不过在的EntityFramework。* 的NuGet包。

The EntityFramework in System.Data is version 6. If you want to use .NET Core then you need to switch to EF 7 which no longer lives in System.Data but in the EntityFramework.* nuget packages.

下面是一个例子:github/aspnet/MusicStore/blob/master/src/MusicStore/project.json#L15

更多推荐

反正是有使用实体框架.NET中的核心?

本文发布于:2023-11-08 22:10:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1570590.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是有   实体   框架   核心   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!