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.
Server/DataPortalResult.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="DataPortalResult.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>Returns data from the server-side DataPortal to the </summary>
7
//-----------------------------------------------------------------------
8
using
System;
9
using
System.Collections.Specialized;
10
using
Csla
.
Core
;
11
12
namespace
Csla.Server
13
{
19
[
Serializable
]
20
public
class
DataPortalResult
: EventArgs
21
{
26
public
object
ReturnObject
{
get
;
private
set
; }
27
32
public
Exception
Error
{
get
;
private
set
; }
33
38
public
ContextDictionary
GlobalContext
{
get
;
private
set
; }
39
43
public
DataPortalResult
()
44
{
45
GlobalContext
= ApplicationContext.ContextManager.GetGlobalContext();
46
}
47
53
public
DataPortalResult
(
object
returnObject)
54
{
55
ReturnObject
= returnObject;
56
GlobalContext
= ApplicationContext.ContextManager.GetGlobalContext();
57
}
58
66
public
DataPortalResult
(
object
returnObject,
ContextDictionary
globalContext)
67
{
68
ReturnObject
= returnObject;
69
GlobalContext
= globalContext;
70
}
71
83
public
DataPortalResult
(
object
returnObject, Exception ex,
ContextDictionary
globalContext)
84
{
85
ReturnObject
= returnObject;
86
Error
= ex;
87
GlobalContext
= globalContext;
88
}
89
}
90
}
Csla.Core.ContextDictionary
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
Definition:
ContextDictionary.cs:20
Csla.Server.DataPortalResult
Returns data from the server-side DataPortal to the client-side DataPortal.
Definition:
Server/DataPortalResult.cs:21
Csla.Server.DataPortalResult.DataPortalResult
DataPortalResult()
Creates an instance of the object.
Definition:
Server/DataPortalResult.cs:43
Csla.Server.DataPortalResult.DataPortalResult
DataPortalResult(object returnObject)
Creates an instance of the object.
Definition:
Server/DataPortalResult.cs:53
Csla.Server.DataPortalResult.ReturnObject
object ReturnObject
The business object being returned from the server.
Definition:
Server/DataPortalResult.cs:26
Csla.Server.DataPortalResult.GlobalContext
ContextDictionary GlobalContext
The global context being returned from the server.
Definition:
Server/DataPortalResult.cs:38
Csla.Server.DataPortalResult.DataPortalResult
DataPortalResult(object returnObject, Exception ex, ContextDictionary globalContext)
Creates an instance of the object.
Definition:
Server/DataPortalResult.cs:83
Csla.Server.DataPortalResult.DataPortalResult
DataPortalResult(object returnObject, ContextDictionary globalContext)
Creates an instance of the object.
Definition:
Server/DataPortalResult.cs:66
Csla.Server.DataPortalResult.Error
Exception Error
Error that occurred during the DataPotal call.
Definition:
Server/DataPortalResult.cs:32
Csla.Core
Definition:
AddedNewEventArgs.cs:11
Csla.Server
Definition:
BrokeredPortal.cs:9
Csla
Definition:
Csla.AspNetCore.Shared/ApplicationContextManager.cs:16
Csla.TransactionIsolationLevel.Serializable
@ Serializable
Prevents updating or inserting until the transaction is complete.
Generated by
1.9.2