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,
69 int Core.IBusinessObject.Identity
78 object ICloneable.Clone()
86 [EditorBrowsable(EditorBrowsableState.Advanced)]
112 return new List<C>(
this).ToArray();
118 private void DataPortal_Update()
123 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Usage",
"CA1801:ReviewUnusedParameters", MessageId =
"criteria")]
125 private void DataPortal_Delete(
object criteria)
135 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
136 [EditorBrowsable(EditorBrowsableState.Advanced)]
147 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
148 [EditorBrowsable(EditorBrowsableState.Advanced)]
160 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
161 [EditorBrowsable(EditorBrowsableState.Advanced)]
172 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
173 [EditorBrowsable(EditorBrowsableState.Advanced)]
183 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
184 [EditorBrowsable(EditorBrowsableState.Advanced)]
195 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
196 [EditorBrowsable(EditorBrowsableState.Advanced)]
203 #region IDataPortalTarget Members
Provides consistent context information between the client and server DataPortal objects.
ApplicationContext(ApplicationContextAccessor applicationContextAccessor)
Creates a new instance of the type
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 type.
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.
ApplicationContext ApplicationContext
Gets the current ApplicationContext
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.