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.
DataPortalResponse.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="HttpResponse.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Response message for returning</summary>
7//-----------------------------------------------------------------------
8
9using System;
10
12{
18 public class DataPortalResponse : ReadOnlyBase<DataPortalResponse>
19 {
23 public static readonly PropertyInfo<DataPortalErrorInfo> ErrorDataProperty = RegisterProperty<DataPortalErrorInfo>(c => c.ErrorData);
24
29 {
30 get { return GetProperty(ErrorDataProperty); }
31 set { LoadProperty(ErrorDataProperty, value); }
32 }
33
37 public static readonly PropertyInfo<byte[]> GlobalContextProperty = RegisterProperty<byte[]>(c => c.GlobalContext);
38
42 public byte[] GlobalContext
43 {
44 get { return GetProperty(GlobalContextProperty); }
45 set { LoadProperty(GlobalContextProperty, value); }
46 }
47
51 public static readonly PropertyInfo<byte[]> ObjectDataProperty = RegisterProperty<byte[]>(c => c.ObjectData);
52
56 public byte[] ObjectData
57 {
58 get { return GetProperty(ObjectDataProperty); }
59 set { LoadProperty(ObjectDataProperty, value); }
60 }
61 }
62}
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.
Message containing details about any server-side exception.
Response message for returning the results of a data portal call.
DataPortalErrorInfo ErrorData
Server-side exception data if an exception occurred on the server.
byte[] ObjectData
Serialized business object data returned from the server (deserialize with MobileFormatter).
static readonly PropertyInfo< DataPortalErrorInfo > ErrorDataProperty
Server-side exception data if an exception occurred on the server.
static readonly PropertyInfo< byte[]> ObjectDataProperty
Serialized business object data returned from the server (deserialize with MobileFormatter).
byte[] GlobalContext
Serialized GlobalContext data returned from the server (deserialize with MobileFormatter).
static readonly PropertyInfo< byte[]> GlobalContextProperty
Serialized GlobalContext data returned from the server (deserialize with MobileFormatter).
@ Serializable
Prevents updating or inserting until the transaction is complete.