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.
AChild.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="AChild.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
13{
15 public class AChild : Csla.BusinessBase<AChild>
16 {
17 public static PropertyInfo<Guid> IdProperty = RegisterProperty<Guid>(c => c.Id);
18 public Guid Id
19 {
20 get { return GetProperty(IdProperty); }
21 set { SetProperty(IdProperty, value); }
22 }
23
24 public new int EditLevel
25 {
26 get { return base.EditLevel; }
27 }
28
29 public AChild()
30 {
31 }
32
33 [Create]
34 [CreateChild]
35 private void Create()
36 {
37 MarkAsChild();
38 using (BypassPropertyChecks)
39 Id = Guid.NewGuid();
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.
static PropertyInfo< Guid > IdProperty
Definition: AChild.cs:17
@ Serializable
Prevents updating or inserting until the transaction is complete.