20 public abstract class ReadOnlyBindingListBase<T, C> : ReadOnlyListBase<T, C>
21 where T : ReadOnlyBindingListBase<T, C>
26using System.Collections.Generic;
27using System.ComponentModel;
28using System.Linq.Expressions;
39 [System.Diagnostics.CodeAnalysis.SuppressMessage(
40 "Microsoft.Naming",
"CA1710:IdentifiersShouldHaveCorrectSuffix")]
43 Core.ReadOnlyBindingList<C>,
Csla.Core.IReadOnlyCollection,
44 ICloneable, Server.IDataPortalTarget, Core.IUseApplicationContext
81 object ICloneable.Clone()
89 [EditorBrowsable(EditorBrowsableState.Advanced)]
110 private void DataPortal_Update()
115 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Usage",
"CA1801:ReviewUnusedParameters", MessageId =
"criteria")]
117 private void DataPortal_Delete(
object criteria)
127 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
128 [EditorBrowsable(EditorBrowsableState.Advanced)]
139 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
140 [EditorBrowsable(EditorBrowsableState.Advanced)]
152 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
153 [EditorBrowsable(EditorBrowsableState.Advanced)]
164 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
165 [EditorBrowsable(EditorBrowsableState.Advanced)]
175 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
176 [EditorBrowsable(EditorBrowsableState.Advanced)]
187 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
188 [EditorBrowsable(EditorBrowsableState.Advanced)]
202 List<C> result =
new List<C>();
203 foreach (C item
in this)
205 return result.ToArray();
209#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.
T Clone()
Creates a clone of the object.
C[] ToArray()
Get an array containing all items in the list.
virtual object GetClone()
Creates a clone of the object.
virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
Called by the server-side DataPortal after calling the requested DataPortal_XYZ method.
virtual void DataPortal_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_OnDataPortalInvoke(DataPortalEventArgs e)
Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method.
ApplicationContext ApplicationContext
Gets the current ApplicationContext
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 DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex)
Called by the server-side DataPortal if an exception occurs during data access.
ReadOnlyBindingListBase()
Creates an instance of the type.
virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e)
Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method.
@ Serializable
Prevents updating or inserting until the transaction is complete.