473,385 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Understanding CSLA...

VMI
I'm trying to understand the concept of CSLA (and using it with n-tier), but
I'm having trouble with it (even after browsing Lhotka's book).
Let's say I have a webform (presentation) that will insert a product into
the products table. My webform instantiates my Products class (business
layer), and calls addProduct(a,b,c,d, ...). Products.addProduct creates and
configures the SQLCommand to run the SP (data layer) that inserts to
Products. Finally, the SP returns an error code (i.e. 0 or i) which another
method in Products will interpret as "An error occurred" or "The Insert was
successful". This string will then be sent to the webform.
How do I add CSLA to this architecture?

Thanks.
P.S. - I always thought that in 3-tier architecture the data layer was
another class that would make the actual call to the database and the
business layer would only make sure that the data being sent to the data
layer was correct and that the information sent to the windows/web form was
user-friendly.
Jul 3 '06 #1
1 1717

VMI wrote:
I'm trying to understand the concept of CSLA (and using it with n-tier), but
I'm having trouble with it (even after browsing Lhotka's book).
You might get this answered here, but your chances are higher at
<http://forums.lhotka.net/>

--
Larry Lard
Replies to group please
When starting a new topic, please mention which version of VB/C# you
are using

Jul 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
Hey guys, need some help understanding some things that maybe someone can explain or clarify it a little better then a text book. Here is my understanding so far: Class - basically a shell for...
7
by: laura | last post by:
I'm trying to understand fully Server.MapPath. I am writing an intranet for a small company and want to be able to put some files accessible to all, hyperlinked from the intranet and therefore,...
2
by: NOSPAM | last post by:
I have been looking into a good object/relational framework solutions for my software application. Regardless CLSA is free, how does CSLA.NET framework compare to other O/R solutions? CSLA.NET...
18
by: Simon | last post by:
Hi, I understand what one the differences between std::vector, std::deque and std::list is, the std::vector can have data inserted/deleted at the end. The std::deque can have data...
1
by: Sugandh Jain | last post by:
Hi, anyone here using object Cloning with CSLA framework for .net framework 2.0. I want to implement cloning in some classes derived from businessBase<, and I am using csla framework. If anyone...
8
by: boki_pfc | last post by:
Hi Everybody, I am looking for an advice on following: I have that "pleasure" of reading C++ codes that have been written by person(s) that have not attended the same C++ classes that I did or...
2
by: Bill Fuller | last post by:
I am curious. Has anyone in here had in enterprise-level experience with CSLA... especially in conjunction with Enterprise Library? If so, what is your opinion of it? Worth considering?
2
by: GaryDean | last post by:
I'm involved in an assessment of the CSLA Framework developed by Rockford Lhotka. I would like to hear from anyone who has experience and opinions regarding the viability and usefulness of this...
2
by: subramanian100in | last post by:
Is my following understanding correct ? Data abstraction means providing the interface - that is, the set of functions that can be called by the user of a class. Information hiding means...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.