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.
DeleteRequest.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DeleteRequest.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Request message for deleting</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Runtime.Serialization;
10
12{
17 [DataContract]
18 public class DeleteRequest
19 {
20 [DataMember]
21 private Type _objectType;
22 [DataMember]
23 private object _criteria;
24 [DataMember]
25 private Csla.Server.DataPortalContext _context;
26
33 public DeleteRequest(Type objectType, object criteria, Csla.Server.DataPortalContext context)
34 {
35 _objectType = objectType;
36 _criteria = criteria;
37 _context = context;
38 }
39
43 public Type ObjectType
44 {
45 get { return _objectType; }
46 set { _objectType = value; }
47 }
48
52 public object Criteria
53 {
54 get { return _criteria; }
55 set { _criteria = value; }
56 }
57
62 {
63 get { return _context; }
64 set { _context = value; }
65 }
66 }
67}
Provides consistent context information between the client and server DataPortal objects.
Request message for deleting a business object.
object Criteria
Criteria object describing business object.
DeleteRequest(Type objectType, object criteria, Csla.Server.DataPortalContext context)
Create new instance of object.
Csla.Server.DataPortalContext Context
Data portal context from client.
Type ObjectType
Type being requested.