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.
DataPortalEventArgs.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DataPortalEventArgs.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Provides information about the DataPortal </summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla
11{
16 public class DataPortalEventArgs : EventArgs
17 {
18 private Server.DataPortalContext _dataPortalContext;
19 private DataPortalOperations _operation;
20 private Exception _exception;
21 private Type _objectType;
22 private object _object;
23
28 public Server.DataPortalContext DataPortalContext
29 {
30 get { return _dataPortalContext; }
31 }
32
37 {
38 get { return _operation; }
39 }
40
51 {
52 get { return _exception; }
53 }
54
59 public Type ObjectType
60 {
61 get { return _objectType; }
62 }
63
68 public object Object
69 {
70 get { return _object; }
71 }
72
88 public DataPortalEventArgs(Server.DataPortalContext dataPortalContext, Type objectType, object obj, DataPortalOperations operation)
89 {
90 _dataPortalContext = dataPortalContext;
91 _operation = operation;
92 _objectType = objectType;
93 _object = obj;
94 }
95
114 public DataPortalEventArgs(Server.DataPortalContext dataPortalContext, Type objectType, object obj, DataPortalOperations operation, Exception exception)
115 : this(dataPortalContext, objectType, obj, operation)
116 {
117 _exception = exception;
118 }
119 }
120}
Provides information about the DataPortal call.
object Object
Gets the criteria object or business object being processed by the data portal.
Server.DataPortalContext DataPortalContext
The DataPortalContext object passed to the server-side DataPortal.
Type ObjectType
Gets the object type being processed by the data portal.
DataPortalEventArgs(Server.DataPortalContext dataPortalContext, Type objectType, object obj, DataPortalOperations operation, Exception exception)
Creates an instance of the object.
Exception Exception
Gets a reference to any exception that occurred during the data portal call.
DataPortalOperations Operation
Gets the requested data portal operation.
DataPortalEventArgs(Server.DataPortalContext dataPortalContext, Type objectType, object obj, DataPortalOperations operation)
Creates an instance of the object.
DataPortalOperations
List of data portal operations.