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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ObjectFactoryBusinessItem.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ObjectFactoryBusinessItem.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 Csla.Server;
10
12{
13 [Serializable(), ObjectFactory("Csla.Testing.Business.ObjectFactory.ObjectFactoryBusinessItemFactory, Csla.Testing.Business, Version=..., Culture=neutral, PublicKeyToken=null",
14 "CreateObjectFactoryBusinessItem",
15 "FetchObjectFactoryBusinessItem",
16 "UpdateObjectFactoryBusinessItem",
17 "DeleteObjectFactoryBusinessItem")]
18 public class ObjectFactoryBusinessItem : BusinessBase<ObjectFactoryBusinessItem>
19 {
21 private static PropertyInfo<string> IdProperty = RegisterProperty<string>(new PropertyInfo<string>("Id", "Id"));
22
23 public string Id
24 {
25 get
26 {
27 return GetProperty(IdProperty);
28 }
29 set
30 {
31 SetProperty(IdProperty, value);
32 }
33 }
34
35 private static PropertyInfo<string> OperationResultProperty = RegisterProperty<string>(new PropertyInfo<string>("OperationResult", "Operation Result"));
36
37 public string OperationResult
38 {
39 get
40 {
41 return GetProperty(OperationResultProperty);
42 }
43 set
44 {
45 SetProperty(OperationResultProperty, value);
46 }
47 }
48 }
49}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Maintains metadata about a property.
Base class to be used when creating a data portal factory object.
@ Serializable
Prevents updating or inserting until the transaction is complete.