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/GrandChildren.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="GrandChildren.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 GrandChildren : BusinessListBase<GrandChildren, GrandChild>
17 {
18 public void Add(string data)
19 {
20 var grandChild = this.AddNew();
21 grandChild.Data = data;
22 }
23
24 internal void Update(IDbTransaction tr)
25 {
26 foreach (GrandChild child in this)
27 {
28 child.Update(tr);
29 }
30 }
31
33 {
35 }
36 }
37}
void MarkAsChild()
Marks the object as being a child object.
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.