CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
csla.netcore.test/Basic/RootList.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="RootList.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Text;
11using Csla;
12
13namespace Csla.Test.Basic
14{
16 public class RootList : BusinessBindingListBase<RootList, RootListChild>
17 {
18 public RootList()
19 {
20 AllowEdit = true;
21 AllowNew = true;
22 AllowRemove = true;
23 }
24
25 [Create]
26 private void Create()
27 {
28 }
29 }
30
32 public class RootListChild : BusinessBase<RootListChild>
33 {
34 public static PropertyInfo<int> DataProperty = RegisterProperty<int>(c => c.Data);
35 public int Data
36 {
37 get { return GetProperty(DataProperty); }
38 set { SetProperty(DataProperty, value); }
39 }
40
41 public string[] GetRuleDescriptions()
42 {
43 string[] result = BusinessRules.GetRuleDescriptions();
44 if (result == null)
45 result = new string[] { };
46 return result;
47 }
48
50 {
51 MarkAsChild();
52 }
53 }
54}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
This is the base class from which most business collections or lists will be derived.
Maintains metadata about a property.
@ Serializable
Prevents updating or inserting until the transaction is complete.