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.
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[]> ClientContextProperty = RegisterProperty<byte[]>(c => c.ClientContext);
52
56 public byte[] ClientContext
57 {
58 get { return GetProperty(ClientContextProperty); }
59 set { LoadProperty(ClientContextProperty, value); }
60 }
61
66 public static readonly PropertyInfo<string> ClientCultureProperty = RegisterProperty<string>(c => c.ClientCulture);
67
72 public string ClientCulture
73 {
74 get { return GetProperty(ClientCultureProperty); }
75 set { LoadProperty(ClientCultureProperty, value); }
76 }
77
82 public static readonly PropertyInfo<string> ClientUICultureProperty = RegisterProperty<string>(c => c.ClientUICulture);
83
88 public string ClientUICulture
89 {
92 }
93 }
94}
Maintains metadata about a property.
This is a base class from which readonly business classes can be derived.
Definition: ReadOnlyBase.cs:55
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.
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.
string ClientCulture
Serialized client culture.
static readonly PropertyInfo< byte[]> ObjectDataProperty
Serialized object data.
string ClientUICulture
Serialized client UI culture.
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.