仅内存提供商? [英] Memory Only Provider?

查看:106
本文介绍了仅内存提供商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有支持"仅限内存"的EF提供商?模式?也就是说,我希望能够创建一个模型,将其映射到"虚拟"模型。模式并填充/读取其后备存储仅存在于内存中而不是实际数据库中的对象上下文。 SQL Lite是
应该可以做到这一点,但我无法让它正常运行。


谢谢。

解决方案

我认为您应该尝试使用实体框架4中的模型优先功能。

http://msdn.microsoft.com/en-us/data/ff830362.aspx

Is there an EF provider that supports a "memory only" mode? That is, I wanted to be able to create a model, map it to a "virtual" schema and populate/read an object context whose backing store lives only in memory, not in an actual database. SQL Lite is supposed to be able to do this but I am unable to get it to function properly for this purpose.

Thanks.

解决方案

I think you should try with the Model-First feature in the Entity Framework 4.
http://msdn.microsoft.com/en-us/data/ff830362.aspx


这篇关于仅内存提供商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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