本文介绍了实体框架MigrationSqlGenerator SQLite的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个MigrationSqlGenerator SQLite的与实体框架使用?我只找到一个来自devart这是商业的。

is there a MigrationSqlGenerator for SQLite to use with entity framework? I only found one from devart which is commercial.

没有MigrationSqlGenerator发现供应商System.Data.SQLite。使用  在目标迁移配置SetSqlGenerator方法  类注册其他SQL生成器。

这是我做的: http://msdn.microsoft.com/en- GB /数据/ jj591621

推荐答案

我不认为有什么,免费的,据我所知。

I don't think there is any, free one, to my knowledge.

如果你不关心Devart商业的dotConnect为的SQLite - 你可以尝试实现一个自己 - 它可能不是那么简单,但你有EF源$ C $Ç在您的处置(用于EF6,但这些部分是非常相似的我会说)。
HTTP://entityframework.$c$cplex.com/

If you don't care for the Devart commercial dotConnect for SQLite - you could try implementing one yourself - it may not be as simple but you have the EF source code at your disposal (for EF6 but those parts are quite similar I'd say).
http://entityframework.codeplex.com/

如果你看一下在 SqlCeMigrationSqlGenerator 源$ C ​​$ C(其他来源,我无法找到一个在官方网站,但你可以下载并检查)

If you take a look at the SqlCeMigrationSqlGenerator source code (the other source, I couldn't find one on offical site, but you can download and check)

...你会看到,发电机是比较简单的。当然,这也适用于铈这是使用标准的SQL客户端为基础生成。

...you'll see that the generator is relatively simplistic. Of course that goes for Ce which is using standard Sql client as underlying generator.

的SQLite将需要更多的工作,但可能不是那么难。

此外,类似的事情从一个众所周知的源EF这里来了 - 我们可以使用EF迁移与MySQL

Also, similar thing coming from a well know source on EF here - Can we use EF migrations with MySql

和不'冲我喊':)我知道这是不是你要找的 - 但我认为这是唯一的选择真的。

And don't 'yell at me' :) I know this isn't what you're looking for - but I think that's the only alternative really.


HTTP://entityframework.$c$cplex.com/
SqlCeMigrationSqlGenerator
Can我们使用EF迁移与MySQL


http://entityframework.codeplex.com/
SqlCeMigrationSqlGenerator
Can we use EF migrations with MySql

这篇关于实体框架MigrationSqlGenerator SQLite的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 11:49
查看更多