.NET Framework - .Net application architecture suggestion...
Asked By Raj
28-Jun-10 08:29 AM
Hi,
We are in the conceptual phase to create a relatively medium size enterprise
business product application using Silver light 4.0, Entity Framework and
WCF.
1. Is it adivceable to use Silverlight 4.0 for this enterprise business
application development or should we go in for MVC.NET / ASP.NET?
2. We have planned to use REST based WCF service. How complex would it be to
write the information back to the REST WCF service?
I appreciate and welcome your advice / suggestion. If you need any further
details do let me know, i will be happy to share.
Thanks in advance.
The REST WCF
(1)
Entity Framework
(1)
Silverlight
(1)
ASP NET
(1)
ASP.NET
(1)
WCF
(1)
Arne Raj
(1)
POST
(1)
Arne Vajhøj replied to Raj
It can be done with either.
But:
* very rich GUI functionality => SL is natural
* simpler GUI functionality => ASP,NET (either web forms or MVC) is natural
Note that if you have strong skill sets in either SL or ASP.NET,
then that is also a strong argument for choosing that.
REST supports both GET and POST.
I have never used REST via WCF, but I am sure that it is fine.
Arne
Mr. Arnold replied to Raj

Ok
If you are using Silverlight on the front-end UI, it can be combined with
a ASP.NET UI.
However, your best option is to use ASP.NET with MVP (Model View
Presenter) and putting the controls that are used at the ASP.NET UI also
on the Interface of the View of the MVP and let the MVP control the
controls of the UI and control the BLL as it sits between the two.
MVP is a derivative of MVC and is more flexible than MVC IMHO. By using
MVP with the controls of the ASP.NET UI on the View Interface too, it
allows all the logic that would be in the ASP.NET UI to be shifted to
the MVP layer, keeping the ASP.NET UI a dumb UI. This also allows the
unit testing of the UI to be done easily as one is doing unit testing
against the Interface of the MVP View.
You should be using Data Transfer Objects (DTO's) passing the objects up
from the DAL through the WCF service to the BLL and to the UI, and back
down to the DAL, which is easy to do. However, you should keep the
object or object graph as small as possible, because WCF has
transmission issues of slowness if large amounts of data are sent
between the client and the service.
As far as Entity Framework, use complied queries and complied views
which are best practices in using EF for speed. Also use SQL Profiler to
see what kind of T-SQL is being executed, because not seeing what the
Profiler sees can lead to slow querying based on the Linq-2-Object query
used to generate the T-SQL to query the EF model. You should look at
ESQL too.
So it can be this:
UI
MVP
BLL
Service layer
WCF
DAL
EF model
OR
UI
MVP
Service layer
WCF
BLL -- the BLL and DAL are in the same project setting behind WCF
DAL
EF model
I can give you a link that you can look at the project architecture and
the code used to do what I am talking about above, if you like.

Using XmlSerializerFormat with code generated by WCF REST Starter .NET Framework Hello. I have just become acquainted with WCF and REST. I downloaded and tried out the WCF REST Starter Kit and am pleased with the abstraction of details offered by the kit. I tried the 'REST Collection WCF Service' VStudio template. It works well for me, except that I would like to have
Wcf Rest Service can't run, can't load System.Web.Profile.DefaultP .NET Framework Hello, Environment Windows 7 Ultimate N Visual Studo 2010 .Net 4.0 I want to create a WCF REST service. I have installed the online template (WCF REST SERVICE 4.0 C#) . When I try and simply run the example solution included in out of the .Net Framework. You're going to have to track it down. keywords: Wcf, Rest, Service, can't, run, , can't, load, System.Web.Profile.DefaultP description: Hello, Environment is
Parsing multipart-form with WCF Rest .NET Framework Hi, I have a wcf REST service with the following signature: [OperationContract] [WebInvoke(Method = "POST", UriTemplate = void AddReport(string emailAddress, string 8cc0b8cfcfd5ed2- - My questions: 1) Is this the best way to work with multpart-form in REST? 2) Is there an easy way to parse that posted data into a .net object? Many thanks Ian .NET Web Services Discussions WCF (1) Disposition (1) Stream (1) POST (1) OperationContract (1) UriTemplate (1) AddReport (1) WebInvoke (1 which changes the meaning of the post quite a bit! keywords: Parsing, multipart-form, with, WCF, Rest description: Hi, I have a wcf REST service with the following signature: [OperationContract] [WebInvoke(Method
HTTP 400 Bad Request .NET Framework Hi there, We've recently started using the WCF REST Starter Kit with our existing WCF service. it is working well, however we want to be able to upload files using the REST service in sizes larger than ~63k, which is the default message limit before you start config has not worked for this, and I suspect the setting is not applying the REST interface at all. I have downloaded and included the source of the starter kit from Web searching has shown that usually people receive an exception while debugging this problem (normal non-REST WCF services), so I am not sure how to proceed. Any thoughts on how I might