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
70 object ICloneable.Clone()
78 [EditorBrowsable(EditorBrowsableState.Advanced)]
81 return Core.ObjectCloner.Clone(
this);
99 private void DataPortal_Update()
104 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Usage",
"CA1801:ReviewUnusedParameters", MessageId =
"criteria")]
106 private void DataPortal_Delete(
object criteria)
116 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
117 [EditorBrowsable(EditorBrowsableState.Advanced)]
128 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
129 [EditorBrowsable(EditorBrowsableState.Advanced)]
141 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
142 [EditorBrowsable(EditorBrowsableState.Advanced)]
153 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
154 [EditorBrowsable(EditorBrowsableState.Advanced)]
164 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
165 [EditorBrowsable(EditorBrowsableState.Advanced)]
176 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1707:IdentifiersShouldNotContainUnderscores", MessageId =
"Member")]
177 [EditorBrowsable(EditorBrowsableState.Advanced)]
191 List<C> result =
new List<C>();
192 foreach (C item
in this)
194 return result.ToArray();
198#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.
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.
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 object.
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.