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.
AChildList.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="AChildList.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;
11
12namespace Csla.Test.LazyLoad
13{
15 public class AChildList : Csla.BusinessBindingListBase<AChildList, AChild>
16 {
17
18 [Fetch]
19 private void Fetch([Inject] IChildDataPortal<AChild> childDataPortal)
20 {
22 this.Add(childDataPortal.CreateChild());
23 }
24
25 public new int EditLevel
26 {
27 get { return base.EditLevel; }
28 }
29 }
30}
This is the base class from which most business collections or lists will be derived.
void MarkAsChild()
Marks the object as being a child object.
Interface defining the members of the child data portal type.
@ Serializable
Prevents updating or inserting until the transaction is complete.