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.
ContainsList.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ContainsList.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.Linq;
11using System.Text;
12using Csla;
14
16{
18 public class ContainsList : BusinessBase<ContainsList>
19 {
20 public ContainsList()
21 { }
22
23 public ContainsList(bool child)
24 {
25 if (child)
26 MarkAsChild();
27 }
28
29 private static PropertyInfo<SingleList> ListProperty = RegisterProperty(new PropertyInfo<SingleList>("List"));
31 {
32 get
33 {
34 return GetProperty(ListProperty);
35 }
36 }
37
38 [Fetch]
39 private void Fetch([Inject] IChildDataPortal<SingleList> childDataPortal)
40 {
41 LoadProperty(ListProperty, childDataPortal.FetchChild(true));
42 }
43
44 [Fetch]
45 private void Fetch(bool child, [Inject] IChildDataPortal<SingleList> childDataPortal)
46 {
47 LoadProperty(ListProperty, childDataPortal.FetchChild(true));
48 if (child)
49 MarkAsChild();
50 }
51 }
52}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Maintains metadata about a property.
Interface defining the members of the child data portal type.
@ Serializable
Prevents updating or inserting until the transaction is complete.