24 [Obsolete(
"Use custom class derived from CriteriaBase e.g. ProjectCriteria : CriteriaBase<ProjectCriteria> instead.")]
25 public class SingleCriteria<C> : CriteriaBase<SingleCriteria<C>>
34 get {
return _value; }
56#if (ANDROID || IOS) || NETFX_CORE
77 #region MobileFormatter
91 base.OnGetState(info, mode);
92 info.
AddValue(
"Csla.Xaml.SingleCriteria._value", _value);
107 base.OnSetState(info, mode);
108 _value = info.GetValue<C>(
"Csla.Xaml.SingleCriteria._value");
126 [Obsolete(
"Use custom class derived from CriteriaBase e.g. ProjectCriteria : CriteriaBase<ProjectCriteria> instead.")]
138 : base(typeof(B), value)
147#if (ANDROID || IOS) || NETFX_CORE
Object containing the serialization data for a specific object.
void AddValue(string name, object value)
Adds a value to the serialization stream.
A single-value criteria used to retrieve business objects that only require one criteria value.
SingleCriteria(C value)
Creates an instance of the type, initializing it with the criteria value.
SingleCriteria(Type type, C value)
Creates an instance of the type.
C Value
Gets the criteria value provided by the caller.
override void OnGetState(SerializationInfo info, StateMode mode)
Override this method to insert your field values into the MobileFormatter serialzation stream.
SingleCriteria()
Creates an instance of the type.
override void OnSetState(SerializationInfo info, StateMode mode)
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
StateMode
Indicates the reason the MobileFormatter functionality has been invoked.
@ Serializable
Prevents updating or inserting until the transaction is complete.