I have done business layer and data access layer. Now i want to do crud operation thru mvc and wcf.
Please some one help me on this. First answer will be appreciable.
Thanks in advance.
Have you looked at the sample solutions in the main download? There is a MVC sample project in that zip file. Or do you have a specific question about it?
I wanted to know, how the method will be designed in wcf so that data can be passed from mvc using csla architecture. For example, i want to do insert operation in wcf then which type of object should i pass from mvc and do the needfull.
My current project solution having following projects :
1. Common 2. Dal 3. DalEF 4. wcfService 5. Library 6.MVCWebsite
Others here can provide a better answer to your particular situation. It sounds like you're trying to roll your own WCF service or already have an existing WCF service, is that right?
In my use of CSLA with MVC (as well as with WinRT, WPF, SL) CSLA takes care of the WCF calls between the tiers in a physical n-tier app. For example, my MVC project references the CSLA binaries as well as my CSLA Library project (which contains the business objects). If I need a three-tier physical deployment (website, app server and database server), I expose a WCF endpoint on an app server running IIS. That endpoint consumes the same business objects that are also referenced by the front end. And a setting in the MVC web.config file tells CSLA where to look for that WCF endpoint when making database calls. Not sure if that is helpful. Maybe someone else can chime in.
Thanks for reply Tim. Can you please give 1 sample application considering my project architecture.
My question is how to design wcf service and consume in my mvc web?
Have you already created a WCF service? Or are you starting your project from scratch?
No i have not started yet. I just suck at wcf that how the method will be written for insert operation and how can i send the data from mvc. So far i have created dtos and business layer using businessbase in library project.
If you download the latest version using the link I originally posted, there is a Samples directory in the zip file. There are a number of projects, but the one in particular that looks like your best bet is called "CslaMVC." It can be found through this path in the zip file contents:
I would highly recommend buying the "Using CSLA 4: ASP.NET MVC" and "Using CSLA 4: Data Portal Configuration" e-books that Rocky created. In fact, the whole series is very helpful, but these books might give you what you need if you're already familiar with object design.
Tim can you please help me out? I am getting following error
Could not load file or assembly
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.
If I remember right, this has something to do with which version of CSLA you have installed and which version of .NET you are using. You can do a search for AsyncTargetingPack on this forum and see a number of replies. Here is one that might be helpful describing the situation.
Thanks for the reply. I am using visual studio 2012 and have downloaded csla 4.5. Will it be supported?
Copyright (c) Marimer LLC