CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DataPortalChannel/UpdateRequest.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="UpdateRequest.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Request message for updating</summary>
7//-----------------------------------------------------------------------
8
9using System;
10
12{
18 public class UpdateRequest : ReadOnlyBase<UpdateRequest>
19 {
23 public static readonly PropertyInfo<byte[]> ObjectDataProperty = RegisterProperty<byte[]>(c => c.ObjectData);
24
28 public byte[] ObjectData
29 {
30 get { return GetProperty(ObjectDataProperty); }
31 set { LoadProperty(ObjectDataProperty, value); }
32 }
33
37 public static readonly PropertyInfo<byte[]> PrincipalProperty = RegisterProperty<byte[]>(c => c.Principal);
38
42 public byte[] Principal
43 {
44 get { return GetProperty(PrincipalProperty); }
45 set { LoadProperty(PrincipalProperty, value); }
46 }
47
51 public static readonly PropertyInfo<byte[]> GlobalContextProperty = RegisterProperty<byte[]>(c => c.GlobalContext);
52
56 public byte[] GlobalContext
57 {
58 get { return GetProperty(GlobalContextProperty); }
59 set { LoadProperty(GlobalContextProperty, value); }
60 }
61
65 public static readonly PropertyInfo<byte[]> ClientContextProperty = RegisterProperty<byte[]>(c => c.ClientContext);
66
70 public byte[] ClientContext
71 {
72 get { return GetProperty(ClientContextProperty); }
73 set { LoadProperty(ClientContextProperty, value); }
74 }
75
80 public static readonly PropertyInfo<string> ClientCultureProperty = RegisterProperty<string>(c => c.ClientCulture);
81
86 public string ClientCulture
87 {
88 get { return GetProperty(ClientCultureProperty); }
89 set { LoadProperty(ClientCultureProperty, value); }
90 }
91
96 public static readonly PropertyInfo<string> ClientUICultureProperty = RegisterProperty<string>(c => c.ClientUICulture);
97
102 public string ClientUICulture
103 {
104 get { return GetProperty(ClientUICultureProperty); }
106 }
107 }
108}
Maintains metadata about a property.
This is a base class from which readonly business classes can be derived.
virtual void LoadProperty(IPropertyInfo propertyInfo, object newValue)
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does...
object GetProperty(IPropertyInfo propertyInfo)
Gets a property's value as a specified type.
Request message for updating a business object.
byte[] GlobalContext
Serialized data for the global context object.
static readonly PropertyInfo< string > ClientUICultureProperty
Serialized client UI culture.
static readonly PropertyInfo< string > ClientCultureProperty
Serialized client culture.
byte[] ClientContext
Serialized data for the client context object.
static readonly PropertyInfo< byte[]> PrincipalProperty
Serialized data for the principal object.
static readonly PropertyInfo< byte[]> GlobalContextProperty
Serialized data for the global context object.
static readonly PropertyInfo< byte[]> ObjectDataProperty
Serialized object data.
byte[] Principal
Serialized data for the principal object.
static readonly PropertyInfo< byte[]> ClientContextProperty
Serialized data for the client context object.
@ Serializable
Prevents updating or inserting until the transaction is complete.