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