8using System.Collections.Generic;
9using System.ComponentModel;
10using System.Diagnostics.CodeAnalysis;
22 [SuppressMessage(
"Microsoft.Naming",
"CA1710:IdentifiersShouldHaveCorrectSuffix")]
25#if (ANDROID || IOS) || NETFX_CORE
26 Core.ReadOnlyBindingList<C>,
28 Core.ReadOnlyObservableBindingList<C>,
30 Csla.Core.IReadOnlyCollection,
31 ICloneable, Server.IDataPortalTarget,
57 int Core.IBusinessObject.Identity
66 object ICloneable.Clone()
74 [EditorBrowsable(EditorBrowsableState.Advanced)]
77 return Core.ObjectCloner.Clone(
this);
100 return new List<C>(
this).ToArray();
106 private void DataPortal_Update()
111 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Usage",
"CA1801:ReviewUnusedParameters", MessageId =
"criteria")]
113 private void DataPortal_Delete(
object criteria)
123 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
124 [EditorBrowsable(EditorBrowsableState.Advanced)]
135 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
136 [EditorBrowsable(EditorBrowsableState.Advanced)]
148 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
149 [EditorBrowsable(EditorBrowsableState.Advanced)]
160 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
161 [EditorBrowsable(EditorBrowsableState.Advanced)]
171 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
172 [EditorBrowsable(EditorBrowsableState.Advanced)]
183 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
184 [EditorBrowsable(EditorBrowsableState.Advanced)]
191 #region IDataPortalTarget Members
Provides information about the DataPortal call.
A strongly-typed resource class, for looking up localized strings, etc.
static string DeleteNotSupportedException
Looks up a localized string similar to Invalid operation - delete not allowed.
static string UpdateNotSupportedException
Looks up a localized string similar to Invalid operation - update not allowed.
This is the base class from which readonly collections of readonly objects should be derived.
C[] ToArray()
Get an array containing all items in the list.
virtual object GetClone()
Creates a clone of the object.
ReadOnlyListBase()
Creates an instance of the object.
virtual void Initialize()
Override this method to set up event handlers so user code in a partial class can respond to events r...
virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e)
Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method.
virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex)
Called by the server-side DataPortal if an exception occurs during data access.
virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method.
virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
Called by the server-side DataPortal after calling the requested DataPortal_XYZ method.
virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
Called by the server-side DataPortal if an exception occurs during data access.
virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e)
Called by the server-side DataPortal after calling the requested DataPortal_xyz method.
T Clone()
Creates a clone of the object.
This is the base class from which readonly collections of readonly objects should be derived.
@ Serializable
Prevents updating or inserting until the transaction is complete.