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.
PrimitiveCriteria.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="PrimitiveCriteria.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Class used as a wrapper for criteria based requests that use primitives</summary>
7//-----------------------------------------------------------------------
8using System;
10
12{
18 {
22 public PrimitiveCriteria() { }
23
28 public PrimitiveCriteria(object value)
29 {
30 _value = value;
31 }
32
33 private object _value;
37 public object Value
38 {
39 get { return _value; }
40 private set { _value = value; }
41 }
42
43 #region IMobileObject Members
44
53 public void GetState(SerializationInfo info)
54 {
55 info.AddValue("_value", _value);
56 }
57
69 public void GetChildren(SerializationInfo info, MobileFormatter formatter)
70 {
71 }
72
81 public void SetState(SerializationInfo info)
82 {
83 _value = info.GetValue<object>("_value");
84 }
85
97 public void SetChildren(SerializationInfo info, MobileFormatter formatter)
98 {
99 }
100
101 #endregion
102 }
103}
Class used as a wrapper for criteria based requests that use primitives
PrimitiveCriteria()
Creates an instance of the object.
PrimitiveCriteria(object value)
New instance of the criteria
void SetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should deserialize its child references.
void SetState(SerializationInfo info)
Method called by MobileFormatter when an object should be deserialized.
void GetState(SerializationInfo info)
Method called by MobileFormatter when an object should serialize its data.
void GetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should serialize its child references.
Serializes and deserializes objects at the field level.
Object containing the serialization data for a specific object.
void AddValue(string name, object value)
Adds a value to the serialization stream.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...
@ Serializable
Prevents updating or inserting until the transaction is complete.