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/ChildChanged/GrandChild.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="GrandChild.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 Grandchild : BusinessBase<Grandchild>
19 {
20 private static PropertyInfo<string> NameProperty = RegisterProperty(new PropertyInfo<string>("Name"));
21 public string Name
22 {
23 get { return GetProperty(NameProperty); }
24 set { SetProperty(NameProperty, value); }
25 }
26
27 private static PropertyInfo<SingleChild> ChildProperty = RegisterProperty(new PropertyInfo<SingleChild>("Child"));
29 {
30 get
31 {
32 return GetProperty(ChildProperty);
33 }
34 }
35
36 [Fetch]
37 private void Fetch([Inject] IChildDataPortal<SingleChild> childDataPortal)
38 {
39 LoadProperty(ChildProperty, childDataPortal.FetchChild(true));
40 }
41 }
42}
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.