Content deleted Content added
m Disambiguating links to Object-orientation (link changed to Object-oriented programming) using DisamAssist. |
|||
(36 intermediate revisions by 25 users not shown) | |||
Line 1:
{{Infobox Software
| name = Component-based Scalable Logical Architecture (CSLA)
'''Component-based Scalable Logical Architecture (CSLA)''' is a [[software framework]] created by [[Rockford Lhotka]] that provides a standard way to create robust [[object oriented]] programs using [[Business object (computer science)|business object]]s. Business objects are objects that abstract business entities in an object oriented program. Some examples of business entities include sales orders, employees, or invoices.▼
| logo = [[File:Csla win8 full.png|frameless]]
| caption =
| collapsible = yes
| developer =
| released =
| latest release version = <!-- If you update this, remember to also update [[Comparison of web application frameworks]]-->8.2.7
| latest release date = {{release date and age|2024|09|06|df=yes}}<ref name="csla_release">{{cite web
| url=https://github.com/MarimerLLC/csla/releases/
| title=Releases · MarimerLLC/csla
| website = github.com
| access-date=2024-12-03
}}</ref>
| latest preview version =
| latest preview date =
| operating system = [[Windows]], [[macOS]], [[Linux]], [[iOS]], [[Android (operating system)|Android]]
| platform = [[.NET Core]]
| language =
| license = [[MIT License]]
| genre = [[Web application framework]]
| website = {{URL|https://www.cslanet.com/}}
| repo = {{URL|https://github.com/MarimerLLC/csla|CSLA Repo}}
| programming language = [[C Sharp (programming language)|C#]]}}
▲'''
Although CSLA itself is free to download, the only documentation the creator provides are his books, which are not free.▼
▲Although CSLA itself is free to download, the only documentation the creator provides are his books and videos, which are not free.
CSLA was originally targeted toward [[Visual Basic]] 6 in the book ''Visual Basic 6.0 Business Objects'' by Lhotka ISBN 1-86100-107-X. With the advent of [[.NET Framework|Microsoft .NET]], CSLA was completely rewritten from the ground up, with no code carried forward, and called CSLA.NET. This revision took advantage of [[Web Services]] and the object oriented languages that came with Microsoft .NET (in particular, [[Visual Basic|Visual Basic.NET]] and [[C Sharp (programming language)|C#]]).▼
▲CSLA (''Component-based Scalable Logical Architecture'') was originally targeted toward [[Visual Basic]] 6 in the book ''Visual Basic 6.0 Business Objects'' by Lhotka.<ref>Visual
CSLA.NET was expounded in ''Expert C# Business Objects'' ISBN 1-59059-344-8 and ''Expert One-on-One Visual Basic .NET Business Objects'' ISBN 1-59059-145-3, both written by Lhotka. Although CSLA and CSLA.NET were originally targeted toward [[Microsoft]] [[programming languages]], most of the framework can be applied to most object oriented languages.▼
▲CSLA .NET was expounded in ''Expert C# Business Objects''
Current information about CSLA .NET is available through Lhotka's self-published ''Using CSLA 4'' ebook series.<ref>Using CSLA 4 ({{cite web |url=http://store.lhotka.net/Default.aspx?tabid=1560&ProductID=22 |title=Using CSLA 4 Ebook Series | CSLA .NET Store > Store |accessdate=2013-02-23 |url-status=dead |archiveurl=https://web.archive.org/web/20130311082109/http://store.lhotka.net/Default.aspx?tabid=1560&ProductID=22 |archivedate=2013-03-11 }})</ref>
==Features of CSLA==
===Smart data===
A business object encapsulates all the data and behavior (
===
The CSLA .NET framework provides a rules engine that supports validation rules, business rules, and authorization rules. These rules are attached to object instances or properties, and are automatically invoked by CSLA .NET when necessary. Validation rules may be implemented using the CSLA .NET rule engine, or through the use of the [[DataAnnotations]] feature of [[Microsoft .NET]].
===Object persistence===
Data creation, retrieval, updates, and deletes ([[CRUD (acronym)|CRUD]]) are performed by clearly defined methods of the business object associated with the data testing. Data access logic is clearly separated from business logic, typically using a [[repository pattern]] or other mainstream [[object-oriented programming]] techniques.
===
CSLA
===''n''-Level undo===
This feature makes it possible for an object or collection of objects to maintain a collection of states. This allows the object to easily revert
This feature can provide rich functionality for desktop application and web applications. One note of caution would be to consider the overhead for high
===Business rule tracking===
Line 44 ⟶ 57:
==''Extended features of CSLA''==
===Simple UI creation===
Business objects created using CSLA .NET fully support data binding for all [[Microsoft .NET]] UI technologies, including [[Windows Runtime]] ([[WinRT]]), [[Windows Presentation Foundation|WPF]], [[Web Forms]], [[ASP.NET MVC]], [[Windows Phone]], [[Silverlight]], and [[Windows Forms]]. Data-bound controls like DataGrids and ListBoxes can be bound to business objects instead of more generalized database objects like [[ADO.NET]] DataSets and DataTables.
===Distributed data access===
The CSLA .NET framework implements a concept called [[mobile objects]] or [[mobile agents]] to allow objects to move across network boundaries using [[Windows Communication Foundation|WCF]], [[Web Services]], or other technologies. As a result, the data access enjoys [[___location transparency]], meaning that the logic may run on the client workstation or server depending on the application's configuration. It can also be configured to use manual [[database transaction]]s or distributed [[two-phase commit]] transactions.
Data access logic is cleanly separated from business logic, and can be implemented using any data access technology available on the [[Microsoft .NET]] platform. Examples include [[ADO.NET Entity Framework]], raw [[ADO.NET]], [[nHibernate]], etc.
===Web Services support===
Business logic created with the CSLA .NET framework can easily be exposed as a web service to remote consumers. This can be done using server-side [[Microsoft .NET]] technologies such as [[Web API]], [[Windows Communication Foundation|WCF]], and [[asmx web services]].
==References==
<references />
* Training
** [http://www.dunntraining.com/cslatraining.htm CSLA.NET Training] {{Webarchive|url=https://web.archive.org/web/20140305082720/http://www.dunntraining.com/cslatraining.htm |date=2014-03-05 }}
* Books
** [https://web.archive.org/web/20130311082109/http://store.lhotka.net/Default.aspx?tabid=1560&ProductID=22 Using CSLA 4 ebook series]
** Expert C# 2008 Business Objects {{ISBN
** Expert VB 2008 Business Objects {{ISBN
** Using CSLA .NET 3.0
** CSLA .NET Version 2.1 Handbook
Line 72 ⟶ 88:
** Visual Basic 5 Business Objects
* Web sites
** [http://www.dunntraining.com CSLA .NET Training]
** [http://www.cslanet.com CSLA .NET home page]
** [https://github.com/MarimerLLC/csla CSLA .NET on GitHub]
** [https://web.archive.org/web/20130125092422/http://forums.lhotka.net/forums/5.aspx/ CSLA .NET community forum]
==External links==
* [https://web.archive.org/web/20050219025025/http://www.lhotka.net/ Rockford Lhotka's website]
[[Category:Application programming interfaces]]
[[Category:Component-based software engineering]]
[[Category:C Sharp libraries]]
|