Questions tagged [csla]

CSLA .NET provides a home for your business logic. It helps you build a scalable and reusable business domain object model for your application. Your business logic can run anywhere .NET runs: Windows, iOS, Android, Linux, Mac, and more.

Questions with the csla tag should relate to the CSLA .NET framework.

CSLA .NET

A Home for Your Business Logic

CSLA .NET is an open source framework, created by Rockford Lhotka, designed to help developers create a rich, scalable, reusable, and maintainable business domain model for their application. This business domain model is ideally designed around user scenarios/stories or use cases, and encapsulates business, validation, and authorization rules.

CSLA .NET also supports an architectural concept called mobile objects. Using this concept, in an n-tier application the business object graphs are able to move between the client workstation and application server. The CSLA .NET data portal enables this concept, as well as completely abstracting any idea of the network from the application code. The result is that an application can switch from a 1- or 2-tier deployment to a 3- or 4-tier deployment without needing to change any application code.

The platforms supported by CSLA .NET include:

  1. Windows (MAUI, UWP, WPF, Windows Forms)
  2. Android (MAUI, Xamarin)
  3. iOS (MAUI, Xamarin)
  4. MacOS (MAUI, Xamarin, .NET Core)
  5. Linux (MAUI, Xamarin, .NET Core)
  6. WebAssembly (Blazor, Uno, etc.)
  7. Blazor, ASP.NET MVC, Razor Pages, Web API, Web Forms

The primary feature areas provided by CSLA .NET are:

  1. Business rules: CSLA .NET includes a rules engine supporting business, validation, and authorization rules. This engine integrates with, and extends, standard DataAnnotations, and brings DataAnnotations support to WP7 and Windows Forms. Additionally, it supports synchronous and asynchronous rule execution
  2. Data binding support: Business objects created with CSLA .NET support data binding in all supported platforms. The data binding support includes full support for in-place editing in datagrid controls, as well as read-only data, and standard detail forms.
  3. LINQ: CSLA .NET collections are queryable, and can optionally create "live views" so changes made to the results of a LINQ query are automatically synchronized with the original business object.
  4. Mobile objects: Through the data portal, CSLA .NET supports 1-, 2-, 3-, and 4-tier application deployments, and allows an application to switch between deployment configurations without changing existing code.
  5. Abstract persistence: CSLA .NET is not an ORM and does not implement mapping to databases. However, the data portal does provide a clear, well-defined structure for invoking the application's data access layer. This is abstract, and supports the use of any data access technology, including ADO.NET, Entity Framework, dapper, REST service calls, interacting with the file system or XML files, or any other data access model you care to use.

Important links

Other resources

222 questions
0
votes
1 answer

There was no endpoint listening at WcfPortal.svc that could accept the message

I have a use case in my ASP.MVC app in which I need to save a collection of about 15k records (this is from a CSV file upload). I'm putting it through CSLA business objects in order validate the uploaded data with business rules. I'm making use of…
Shawn de Wet
  • 5,642
  • 6
  • 57
  • 88
0
votes
2 answers

Getting error when using WPF CSLA Remote server

I am running a WPF app with a remote server setup but getting "The remote server returned an unexpected response: (400) Bad Request" . This is definitely a request size issue since I tried reducing the data size being sent and the call worked fine. …
Mark Kadlec
  • 8,036
  • 17
  • 60
  • 96
0
votes
2 answers

Import Data from text file into sql DB using CSLA

I am trying to import data from ~ Delimited Text file into SQL Server using CSLA. My text file has 92,000 records in it. Here are the issues i am having with the import When i create a BusinnessListBase .new and add all my records to it, it gives…
New Developer
  • 123
  • 1
  • 10
0
votes
1 answer

How do I add a CSLA Business Rule that depends on a property contained in the parent?

I am adding a "rounding" business rule to round a decimal property value to the number of decimal places specified in a separate integer property. This works nicely if both properties are members of the business object in question. As in the…
e-holder
  • 1,504
  • 4
  • 20
  • 33
0
votes
2 answers

CSLA Silverlight project (C#) Sample N-Tier Application (Adding Delete Functionality)

I know this is a very specific question, but I'm trying to get a grasp on the CSLA framework. I've successfully loaded up the "Sample N-Tier" application that can be found here: http://lhotka.net/files/csla40/CslaSamples-4.3.13.zip The Sample N-Tier…
Josh
  • 451
  • 8
  • 22
0
votes
1 answer

Why is CSLA named so?

I read wikipedia entry and now going through Rockford's book. But could not arrive a straightforward answer to the meaning of name "Component based scalable and logical architecture". I understand it helps developer design business objects loosely…
-1
votes
0 answers

I've an issue inserting data using CSLA 7, .Net Core 7 Web API. Getting exception when I try to insert data. Fetch is working as per the expectations

When I'm trying into insert the data from swagger it's displaying below error. System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=Csla StackTrace: at…
-1
votes
1 answer

Looking for T4 CSLA Code Generator

I am looking for T4 Code Generator for CSLA. It must work with VS2012. There is one version on CodePlex which I am using for 2010 but the 2012 version is not working. Thanks
-1
votes
2 answers

Clear a ReadOnly List

I Need to Clear my CSLA ReadOnly List which is of course not possible because CSLA is protecting my ReadOnly Lst. I also cant simply set the List null because that is removing the FilterMethods of my List in the XAML. is there a way to make an own…
dennis schütz
  • 383
  • 4
  • 21
-1
votes
2 answers

How do I make a Kendo UI batch grid that uses dervied objects on a CSLA framework

What I'm attempting to do is have a "Super" entity class for saved products. Depending on where the product is in the application, certain extra attributes are necessary (but not always). For example, when the product is being used within a grid, I…
Jark Monster
  • 753
  • 1
  • 13
  • 24
-2
votes
3 answers

add test to splint method

I am new to c# programming. Could someone please help me find out how to add a second test to this code : if (item.CalcInsor_Desc != null) { string[] CalcInsor_Desc = item.CalcInsor_Desc.ToString().Split('.'); …
JHDesigne
  • 3
  • 5
-4
votes
1 answer

CSLA CLASSES with C#.net and using of csla clases in different cases

how to code validations for a textbox fields using csla classes,please explain clearly with one example and using of csla classes in different cases..
1 2 3
14
15