9using System.Collections;
23 private string _typeAssemblyName;
24 private string _typeName;
25 private bool _typeSupportsPaging;
26 private bool _typeSupportsSorting;
35 : base(owner, viewName)
46 get {
return _typeAssemblyName; }
47 set { _typeAssemblyName = value; }
57 get {
return _typeName; }
58 set { _typeName = value; }
72 get {
return _typeSupportsPaging; }
73 set { _typeSupportsPaging = value; }
82 get {
return _typeSupportsSorting; }
83 set { _typeSupportsSorting = value; }
95 protected override System.Collections.IEnumerable
100 _owner.OnSelectObject(args);
103 if (arguments.RetrieveTotalRowCount)
110 else if (result is IList)
111 rowCount = ((IList)result).Count;
112 else if (result is IEnumerable)
114 IEnumerable temp = (IEnumerable)result;
116 foreach (
object item
in temp)
122 arguments.TotalRowCount = rowCount;
127 if (!(result is IEnumerable))
129 ArrayList list =
new ArrayList();
136 return (IEnumerable)result;
173 _owner.OnInsertObject(args);
207 protected override int ExecuteDelete(IDictionary keys, IDictionary oldValues)
212 _owner.OnDeleteObject(args);
248 protected override int ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
252 _owner.OnUpdateObject(args);
258 #region Other Operations
268 return _typeSupportsPaging;
290 return _typeSupportsSorting;
A Web Forms data binding control designed to support CSLA .NET business objects as data sources.
The object responsible for managing data binding to a specific CSLA .NET object.
override bool CanPage
Gets a value indicating whether the data source supports paging of the data.
override bool CanRetrieveTotalRowCount
Gets a value indicating whether the data source can retrieve the total number of rows of data.
override int ExecuteDelete(IDictionary keys, IDictionary oldValues)
Implements the delete behavior for the control by raising the CslaDataSource.DeleteObject event.
override int ExecuteInsert(IDictionary values)
Implements the insert behavior for the control by raising the CslaDataSource.InsertObject event.
string TypeAssemblyName
Get or set the name of the assembly (no longer used).
override System.Collections.IEnumerable ExecuteSelect(DataSourceSelectArguments arguments)
Implements the select behavior for the control by raising the CslaDataSource.SelectObject event.
override bool CanInsert
Gets a value indicating whether the data source can insert data.
bool TypeSupportsPaging
Get or set a value indicating whether the business object data source supports paging.
override bool CanSort
Gets a alue indicating whether the data source supports sorting of the data.
override bool CanUpdate
Gets a value indicating whether the data source can update data.
bool TypeSupportsSorting
Get or set a value indicating whether the business object data source supports sorting.
override bool CanDelete
Gets a value indicating whether the data source can delete data.
override int ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
Implements the update behavior for the control by raising the CslaDataSource.UpdateObject event.
CslaDataSourceView(CslaDataSource owner, string viewName)
Creates an instance of the object.
string TypeName
Get or set the full type name of the business object class to be used as a data source.
Argument object used in the DeleteObject event.
int RowsAffected
Gets or sets the number of rows affected while handling this event.
Argument object used in the InsertObject event.
int RowsAffected
Gets or sets the number of rows affected while handling this event.
Argument object used in the SelectObject event.
object BusinessObject
Get or set a reference to the business object that is created and populated by the SelectObject event...
Argument object used in the UpdateObject event.
int RowsAffected
Gets or sets the number of rows affected while handling this event.
Implement this interface in a collection to report a total row count to Csla.Web.CslaDataSource,...
Defines the methods required to participate in n-level undo within the CSLA .NET framework.