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.
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[]> ObjectDataProperty = RegisterProperty<byte[]>(c => c.ObjectData);
38
42 public byte[] ObjectData
43 {
44 get { return GetProperty(ObjectDataProperty); }
45 set { LoadProperty(ObjectDataProperty, value); }
46 }
47 }
48}
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 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).
@ Serializable
Prevents updating or inserting until the transaction is complete.