便携式图书馆实体框架 [英] Entity Framework for Portable Class Library

查看:154
本文介绍了便携式图书馆实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图为便携式类库创建Repository,Entity框架,当我尝试Nuget EntityFramework



无法添加对System.ComponentModel的引用.DataAnnotations'。请确保它在全局程序集缓存中。



任何想法来解决这个EF



兼容EF包含便携式图书馆

解决方案

EF7有PCL,所以如果有人打算使用PCL,可以使用早期版本的EF7或VS2014


I am trying to create Repository , Entity framework for Portable Class Library , when ever I try to Nuget EntityFramework

it is Failed to add reference to 'System.ComponentModel.DataAnnotations'. Please make sure that it is in the Global Assembly Cache.

Any Idea to resolve this for EF

Compatible EF package for Portable Library

解决方案

EF7 has PCL , so if any one planning to use PCL can use early version of EF7 or VS2014

这篇关于便携式图书馆实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆