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.
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[]> ClientContextProperty = RegisterProperty<byte[]>(c => c.ClientContext);
67
71 public byte[] ClientContext
72 {
73 get { return GetProperty(ClientContextProperty); }
74 set { LoadProperty(ClientContextProperty, value); }
75 }
76
81 public static readonly PropertyInfo<string> ClientCultureProperty = RegisterProperty<string>(c => c.ClientCulture);
82
87 public string ClientCulture
88 {
89 get { return GetProperty(ClientCultureProperty); }
90 set { LoadProperty(ClientCultureProperty, value); }
91 }
92
97 public static readonly PropertyInfo<string> ClientUICultureProperty = RegisterProperty<string>(c => c.ClientUICulture);
98
103 public string ClientUICulture
104 {
105 get { return GetProperty(ClientUICultureProperty); }
107 }
108 }
109}
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.
Message sent to the WCF data portal.
static readonly PropertyInfo< byte[]> CriteriaDataProperty
Serialized data for the criteria object.
static readonly PropertyInfo< string > ClientUICultureProperty
Serialized client UI culture.
string ClientCulture
Serialized client culture.
static readonly PropertyInfo< string > ClientCultureProperty
Serialized client culture.
byte[] CriteriaData
Serialized data for the criteria 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.
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.
string ClientUICulture
Serialized client UI culture.
@ Serializable
Prevents updating or inserting until the transaction is complete.