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/Children.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="Children.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 System.Data;
12
13namespace Csla.Test.Basic
14{
15 [Serializable()]
16 public class Children : BusinessListBase<Children, Child>
17 {
18 public void Add(string data)
19 {
20 var child = this.AddNew();
21 child.Data = data;
22 }
23
24 internal void Update(IDbTransaction tr)
25 {
26 foreach (Child child in this)
27 {
28 child.Update(tr);
29 }
30 }
31
32 public int DeletedCount
33 {
34 get { return this.DeletedList.Count; }
35 }
36
37 public List<Child> GetDeletedList()
38 {
39 return this.DeletedList;
40 }
41 }
42}
MobileList< C > DeletedList
A collection containing all child objects marked for deletion.
This is the base class from which most business collections or lists will be derived.
@ Serializable
Prevents updating or inserting until the transaction is complete.