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.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 : BusinessBindingListBase<Children, Child>
17 {
18 public void Add(IDataPortal<Child> dataPortal, string data)
19 {
20 this.Add(Child.NewChild(dataPortal, data));
21 }
22
23 internal static Children NewChildren(IDataPortal<Children> dataPortal)
24 {
25 return dataPortal.Create();
26 }
27
28 internal static Children GetChildren(IDataReader dr)
29 {
30 return null;
31 }
32
33 public Children()
34 {
35 this.MarkAsChild();
36 }
37
38 public int DeletedCount
39 {
40 get { return this.DeletedList.Count; }
41 }
42
43 [Create]
44 private void Create()
45 {
46 }
47
48 }
49}
void MarkAsChild()
Marks the object as being a child object.
MobileList< C > DeletedList
A collection containing all child objects marked for deletion.
void Add(IDataPortal< Child > dataPortal, string data)
Interface defining the members of the data portal type.
Definition: IDataPortalT.cs:17
object Create(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...
@ Serializable
Prevents updating or inserting until the transaction is complete.