Visual Studio Light Switch 可以与现有数据库一起使用吗?
我是一名专业的 .NET 开发人员,有一个慈善项目,但我没有时间完成。我有一个数据库 (SQL Server 2008 R2 Express)、报告和事务应用程序(WinForms 到 Visual Studio 2010 C# Express)。我需要编写一个管理应用程序来允许用户配置系统,目前我是在 SQL 中完成的。我希望 VS LightSwitch 能让我比在 WinForms 中花费更少的时间完成这个项目。但如果不行的话我不想花很多时间去尝试。问题:
VS LightSwitch 可以用来读取/插入/更新现有表吗?它可以从视图中填充实体并使用存储过程来修改它们吗?
VS LightSwitch 可以与 VS Studio 2010 Express 一起使用吗?
我真的很高兴知道我的项目类型在 LightSwitch 中是否可行。
I'm a professional .NET developer with a side project for a charity that I don't have time to finish. I have a database (SQL Server 2008 R2 Express), reporting and transactional apps (WinForms through Visual Studio 2010 C# Express). I need to write an Admin app to allow user configuration of the system, something currently done by me in SQL. I'm hoping that VS LightSwitch will allow me to finish this project in much less time than it takes in WinForms. But I don't want to take a lot of time to try it if it won't work. Questions:
Can VS LightSwitch be used to read/insert/update existing tables? Can it populate entities from views and use stored procedures to modify them?
Can VS LightSwitch be used in conjunction with VS Studio 2010 Express?
I would really appreciate knowing if my type of project is feasible in LightSwitch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,例如参见:
使用 LightSwitch 快速轻松地进行数据管理
http://lightswitchhelpwebsite .com/Blog/tabid/61/EntryId/57/Quick-And-Easy-Data-Management-With-LightSwitch.aspx
此外,LightSwitch 不仅仅适用于“快速而肮脏的 CRUD 应用程序”。我们将它用于大型复杂的应用程序。就像 DotNetNuke 仍然是 ASP.NET 一样,LightSwitch 仍然是 Silverlight 应用程序。
请参阅此网站以更好地了解 LightSwitch 的真正功能:
http://lightswitchhelpwebsite.com
Yes, for example see:
Quick And Easy Data Management With LightSwitch
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/57/Quick-And-Easy-Data-Management-With-LightSwitch.aspx
Also, LightSwitch is not just for "quick and dirty CRUD applications". We are using it for big complex applications. Just like DotNetNuke is still ASP.NET, LightSwitch is still a Silverlight application.
See this site for a better idea of what LightSwitch can really do:
http://lightswitchhelpwebsite.com
是的,它可以与现有数据库一起使用。 MSDN 上的指导视频展示了具体操作方法。
至于与 VS Express 一起使用,我不相信您可以使用 VS Express 打开 Lightswitch 应用程序。
我个人还发现,虽然 Lightswitch 应用程序非常适合快速而肮脏的数据 CRUD 实用程序,但我发现如果我需要任何功能,访问标准 ASP.NET 网站或 WinForms 应用程序会更容易这不是开箱即用的。
像编写自定义表单来显示报告这样简单的事情在 Lightswitch 中变成了一项艰巨的任务。 (或者也许我只是太习惯了我熟悉的工具)。
然而,您所描述的场景正是我将使用 Lightswitch 的类型 - 一个快速而肮脏的应用程序,允许在数据库上使用 CRUD 功能。它在概念上与动态数据网站非常相似,不同之处在于它使用 WPF 而不是 ASP.NET,并且限制更多。
Yes, it can be used with an existing database. The instructional videos on MSDN show how.
As far as using it with VS Express, I don't believe you can open a Lightswitch app with VS Express.
I've also, personally found that while the Lightswitch apps are great for a quick and dirty CRUD utility for data, I find it a LOT easer to go to a standard ASP.NET web site, or a WinForms app if I need any functionality that doesn't come out of the box.
Something as simple as writing a custom form to display a report becomes a Herculean task in Lightswitch. (or maybe I'm just too used to the tools I'm familiar with).
However, the scenario you're describing is EXACTLY the type of thing that I will be using Lightswitch for - a quick and dirty app to allow CRUD functionality on a database. It's very similar in concept to a Dynamic Data website, except that it uses WPF instead of ASP.NET, and it's more restrictive.