简体   繁体   English

需要有关Silverlight CMS的建议

[英]Need advice for Silverlight CMS

I'm currently building a Silverlight Content Management System for Website Management. 我目前正在为网站管理构建Silverlight内容管理系统。

At first, I had a ASP.NET MVC 3 CMS, so I thought I'd use it as an API and play with it from my Silverlight frontend. 最初,我有一个ASP.NET MVC 3 CMS,因此我想将其用作API并从Silverlight前端使用它。 It worked pretty well. 效果很好。

But then I thought, what if I could simply use the DBML from my MVC 3 CMS directly from my Silverlight app? 但是后来我想,如果我可以直接从Silverlight应用程序中直接使用MVC 3 CMS中的DBML,该怎么办? So I tried and I decided it was a bit too weird so I turned myself around and looked for other alternative. 所以我尝试了一下,然后觉得有点奇怪,于是我转身寻找其他选择。

I've been using WCF Services for quite some time for other work-related projects, and I started thinking that may be what I'm looking for. 我已经将WCF Services用于其他与工作相关的项目已有相当长的时间了,我开始思考这可能是我想要的。 So now I'm kind of dizzy between all those solutions I found. 所以现在我对所有找到的解决方案都感到头晕。

At the bottom line all I need is a Silverlight UI to play with a MSSQL database on which a ASP.NET MVC 3 App will use to serve its website. 最重要的是,我需要一个Silverlight UI来玩MSSQL数据库,在该数据库上ASP.NET MVC 3 App将用于为其网站提供服务。

[EDIT: Also! [编辑:也是! This should all fit on a shared hosting environment (that is why I was bugging on the WCF alternative since sometimes we have to edit a bit of the IIS settings...)] 这应该都适合于共享的托管环境(这就是为什么我在WCF替代项上进行bug的原因,因为有时我们必须编辑一些IIS设置...)

So, what would be the best scenario? 那么,最佳方案是什么? I'm ready to restart from scratch, this is a personal project I'm making for an upgrade on my previous CMS for some of my clients so this is not urgent : I can try as many time I want :P 我准备从头开始,这是一个个人项目,我正在为某些客户在以前的CMS上进行升级,因此这并不紧急:我可以尝试很多次:P

Thanks and happy holidays! 谢谢,节日快乐!

Silverlight is great for specific uses. Silverlight非常适合特定用途。 If you not targeting everybody and everyone Silverlight can be pleasant to work with and you can get things done quick. 如果您不针对所有人和所有人,Silverlight可能会很愉快地与您合作,并且您可以快速完成工作。

Couple things: 几件事情:

  1. If your CMS needs multiple views, modules, etc - check PRISM for that. 如果您的CMS需要多个视图,模块等,请检查PRISM。 Took me quite some time to "get it" but now it just "clicks" 花了我很多时间来“获取”,但是现在它只是“点击”

  2. Learn MVVM. 了解MVVM。 I guess after MVC it will be kind of obvious. 我想在MVC之后,这将是显而易见的。

  3. As far as data acceess goes.. I don't know what can you use if it's not WCF.. You can write your own Httphandler I guess :) My own approach is to NOT use shared hosts. 就数据访问而言。.我不知道如果不是WCF,您可以使用什么。.我猜您可以编写自己的Httphandler :)我自己的方法是不使用共享主机。 One of the $10 hosts I tried to use was worthless. 我尝试使用的$ 10主机之一是一文不值。 Slow and never got my url rewriting working with them - support was 0. You can buy pretty affordable hosting from Amazon and do whatever you want with it. 速度慢,从来没有让我的URL重写与他们一起工作-支持为0。您可以从Amazon购买价格合理的托管服务,并随心所欲地做。

  4. Also Silverlight can do plain HTTP - most of the solutions/technologies out there using WCF as a backing technology. Silverlight也可以执行简单的HTTP-使用WCF作为支持技术的大多数解决方案/技术。 RIA Services is Microsoft's technology to bring data to client easily. RIA Services是Microsoft的技术,可轻松将数据带到客户端。 There is free frameworks like CSLA. 有像CSLA这样的免费框架。 I'm using commercial product DevForce which allows you to do LINQ queries on Silverlight side and they take of rest. 我正在使用商业产品DevForce,该产品可以让您在Silverlight方面进行LINQ查询,而剩下的就是它们了。

If you need more specific info on something - let us know. 如果您需要某些具体信息,请告诉我们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM