是 LINQ-to-SQL + SQLite.NET +存储过程 + VISUAL STUDIO 2008 可能吗?
所以我想使用存储过程检索数据。最好通过 Linq2SQL。 所以我可以做这样的事情(示例):
var productHistory = dbname.StoredProcedureMethod(value);
foreach(var product in productHistory)
{
//stuff
}
这是我希望能够在 .Net 3.5 中的 Visual Studio 2008 中做的事情。 Visual studio 2008 + .Net 3.5 + SQL Server 2008 是可能的。
但首先,我不喜欢 SQL Server 2008,其次,我需要数据库绝对可移植。 我一直喜欢 SQLite.net,但这不是直接要求 - 只要数据库解决方案是可移植的。
除了 Visual studio 2008 + SQLite.Net 之外,我无法设置任何东西。
所以是的,我请求你的帮助:)
So I want to retrieve data using stored procedures. Preferably via Linq2SQL.
So I can do something like this (example):
var productHistory = dbname.StoredProcedureMethod(value);
foreach(var product in productHistory)
{
//stuff
}
This is something I'd like to be able to do in Visual Studio 2008 in .Net 3.5.
It is possible with Visual studio 2008 + .Net 3.5 + SQL Server 2008.
But firstly, I don't like SQL Server 2008 and secondly, I need the database to be absolutely portable.
I've always liked SQLite.net, but it is not a direct requirement - as long as the database solution is portable.
I haven't been able to set anything up but Visual studio 2008 + SQLite.Net.
So yeah, I am asking for your help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Linq to SQL 仅适用于 SQL Server,不适用于其他 DBMS。作为替代方案,您可以:
关于存储过程,如果您确实需要它们,您可以忘记 SQLite,因为它不支持它们。
Linq to SQL works only with SQL Server, not with other DBMS. As an alternative, you could :
Regarding stored procedures, if you really need them you can forget SQLite, because it doesn't support them.
您可能会遇到不可移动的障碍:SQLite 不支持存储过程。
You are likely to run into a non-movable roadblock: SQLite does not support stored procedures.