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/CriteriaRequest.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CriteriaRequest.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Message sent to the server</summary>
7//-----------------------------------------------------------------------
8
9using System;
10
12{
17 public class CriteriaRequest : ReadOnlyBase<CriteriaRequest>
18 {
23 public static readonly PropertyInfo<string> TypeNameProperty = RegisterProperty<string>(c => c.TypeName);
24
29 public string TypeName
30 {
31 get { return GetProperty(TypeNameProperty); }
32 set { LoadProperty(TypeNameProperty, value); }
33 }
34
38 public static readonly PropertyInfo<byte[]> CriteriaDataProperty = RegisterProperty<byte[]>(c => c.CriteriaData);
39
43 public byte[] CriteriaData
44 {
45 get { return GetProperty(CriteriaDataProperty); }
46 set { LoadProperty(CriteriaDataProperty, value); }
47 }
48
52 public static readonly PropertyInfo<byte[]> PrincipalProperty = RegisterProperty<byte[]>(c => c.Principal);
53
57 public byte[] Principal
58 {
59 get { return GetProperty(PrincipalProperty); }
60 set { LoadProperty(PrincipalProperty, value); }
61 }
62
66 public static readonly PropertyInfo<byte[]> GlobalContextProperty = RegisterProperty<byte[]>(c => c.GlobalContext);
67
71 public byte[] GlobalContext
72 {
73 get { return GetProperty(GlobalContextProperty); }
74 set { LoadProperty(GlobalContextProperty, value); }
75 }
76
80 public static readonly PropertyInfo<byte[]> ClientContextProperty = RegisterProperty<byte[]>(c => c.ClientContext);
81
85 public byte[] ClientContext
86 {
87 get { return GetProperty(ClientContextProperty); }
88 set { LoadProperty(ClientContextProperty, value); }
89 }
90
95 public static readonly PropertyInfo<string> ClientCultureProperty = RegisterProperty<string>(c => c.ClientCulture);
96
101 public string ClientCulture
102 {
103 get { return GetProperty(ClientCultureProperty); }
104 set { LoadProperty(ClientCultureProperty, value); }
105 }
106
111 public static readonly PropertyInfo<string> ClientUICultureProperty = RegisterProperty<string>(c => c.ClientUICulture);
112
117 public string ClientUICulture
118 {
119 get { return GetProperty(ClientUICultureProperty); }
121 }
122 }
123}
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.
static readonly PropertyInfo< byte[]> CriteriaDataProperty
Serialized data for the criteria object.
static readonly PropertyInfo< string > ClientUICultureProperty
Serialized client UI culture.
static readonly PropertyInfo< string > ClientCultureProperty
Serialized client culture.
byte[] CriteriaData
Serialized data for the criteria object.
static readonly PropertyInfo< byte[]> GlobalContextProperty
Serialized data for the global context object.
static readonly PropertyInfo< string > TypeNameProperty
Assembly qualified name of the business object type to create.
string TypeName
Assembly qualified name of the business object type to create.
byte[] GlobalContext
Serialized data for the global context object.
static readonly PropertyInfo< byte[]> PrincipalProperty
Serialized data for the principal object.
static readonly PropertyInfo< byte[]> ClientContextProperty
Serialized data for the client context object.
byte[] ClientContext
Serialized data for the client context object.
byte[] Principal
Serialized data for the principal object.
@ Serializable
Prevents updating or inserting until the transaction is complete.