|
|
@@ -30,6 +30,7 @@
|
|
|
#if NET_3_5
|
|
|
using System;
|
|
|
using System.Collections;
|
|
|
+using System.Collections.Generic;
|
|
|
using System.ComponentModel;
|
|
|
using System.Reflection;
|
|
|
using System.Security.Permissions;
|
|
|
@@ -42,35 +43,36 @@ namespace System.Web.UI.WebControls
|
|
|
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
|
|
|
public class LinqDataSourceView : DataSourceView, IStateManager
|
|
|
{
|
|
|
- [MonoTODO]
|
|
|
public LinqDataSourceView (LinqDataSource owner, string name, HttpContext context)
|
|
|
: base (owner, name)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ source = owner;
|
|
|
}
|
|
|
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceStatusEventArgs> ContextCreated;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceContextEventArgs> ContextCreating;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceDisposeEventArgs> ContextDisposing;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceStatusEventArgs> Deleted;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceDeleteEventArgs> Deleting;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceStatusEventArgs> Inserted;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceInsertEventArgs> Inserting;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceStatusEventArgs> Selected;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceSelectEventArgs> Selecting;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceStatusEventArgs> Updated;
|
|
|
- [MonoTODO]
|
|
|
- public event EventHandler<LinqDataSourceUpdateEventArgs> Updating;
|
|
|
+ LinqDataSource source;
|
|
|
+
|
|
|
+ bool tracking;
|
|
|
+ ParameterCollection delete_parameters,
|
|
|
+ insert_parameters,
|
|
|
+ select_new_parameters,
|
|
|
+ update_parameters;
|
|
|
+ ParameterCollection group_by_parameters,
|
|
|
+ order_by_parameters,
|
|
|
+ order_group_by_parameters,
|
|
|
+ where_parameters;
|
|
|
+
|
|
|
+ IEnumerable<ParameterCollection> AllParameters {
|
|
|
+ get {
|
|
|
+ yield return delete_parameters;
|
|
|
+ yield return insert_parameters;
|
|
|
+ yield return select_new_parameters;
|
|
|
+ yield return update_parameters;
|
|
|
+ yield return group_by_parameters;
|
|
|
+ yield return order_by_parameters;
|
|
|
+ yield return order_group_by_parameters;
|
|
|
+ yield return where_parameters;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
[MonoTODO]
|
|
|
public bool AutoGenerateOrderByClause { get; set; }
|
|
|
@@ -80,40 +82,40 @@ namespace System.Web.UI.WebControls
|
|
|
public bool AutoPage { get; set; }
|
|
|
[MonoTODO]
|
|
|
public bool AutoSort { get; set; }
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanDelete {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return EnableDelete; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanInsert {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return EnableInsert; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanPage {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return true; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanRetrieveTotalRowCount {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return true; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanSort {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return true; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public override bool CanUpdate {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return EnableUpdate; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
protected virtual Type ContextType {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return ((IDynamicDataSource) source).ContextType; }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- public virtual string ContextTypeName { get; set; }
|
|
|
- [MonoTODO]
|
|
|
- public ParameterCollection DeleteParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+
|
|
|
+ public virtual string ContextTypeName {
|
|
|
+ get { return source.ContextTypeName; }
|
|
|
+ set { source.ContextTypeName = value; }
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
public bool EnableDelete { get; set; }
|
|
|
[MonoTODO]
|
|
|
@@ -122,257 +124,371 @@ namespace System.Web.UI.WebControls
|
|
|
public bool EnableObjectTracking { get; set; }
|
|
|
[MonoTODO]
|
|
|
public bool EnableUpdate { get; set; }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- public string GroupBy { get; set; }
|
|
|
- [MonoTODO]
|
|
|
- public ParameterCollection GroupByParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
- [MonoTODO]
|
|
|
- public ParameterCollection InsertParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
- [MonoTODO]
|
|
|
- bool IStateManager.IsTrackingViewState {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
+ public string TableName { get; set; }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected bool IsTrackingViewState {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
+ public string GroupBy { get; set; }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
public string OrderBy { get; set; }
|
|
|
- [MonoTODO]
|
|
|
- public ParameterCollection OrderByParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
public string OrderGroupsBy { get; set; }
|
|
|
- [MonoTODO]
|
|
|
- public ParameterCollection OrderGroupsByParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
- }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
public string SelectNew { get; set; }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- public ParameterCollection SelectNewParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ public string Where { get; set; }
|
|
|
+
|
|
|
+ public ParameterCollection DeleteParameters {
|
|
|
+ get { return GetParameterCollection (ref delete_parameters, false, false); }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- public bool StoreOriginalValuesInViewState { get; set; }
|
|
|
- [MonoTODO]
|
|
|
- public string TableName { get; set; }
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
+ public ParameterCollection InsertParameters {
|
|
|
+ get { return GetParameterCollection (ref insert_parameters, false, false); }
|
|
|
+ }
|
|
|
+
|
|
|
public ParameterCollection UpdateParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return GetParameterCollection (ref update_parameters, true, true); }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- public string Where { get; set; }
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
+ public ParameterCollection SelectNewParameters {
|
|
|
+ get { return GetParameterCollection (ref select_new_parameters, false, false); }
|
|
|
+ }
|
|
|
+
|
|
|
public ParameterCollection WhereParameters {
|
|
|
- get { throw new NotImplementedException (); }
|
|
|
+ get { return GetParameterCollection (ref where_parameters, true, true); }
|
|
|
}
|
|
|
|
|
|
- [MonoTODO]
|
|
|
- protected virtual object CreateContext (Type contextType)
|
|
|
+ public ParameterCollection GroupByParameters {
|
|
|
+ get { return GetParameterCollection (ref group_by_parameters, true, true); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public ParameterCollection OrderByParameters {
|
|
|
+ get { return GetParameterCollection (ref order_by_parameters, true, true); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public ParameterCollection OrderGroupsByParameters {
|
|
|
+ get { return GetParameterCollection (ref order_group_by_parameters, true, true); }
|
|
|
+ }
|
|
|
+
|
|
|
+ ParameterCollection GetParameterCollection (ref ParameterCollection output, bool propagateTrackViewState, bool subscribeChanged)
|
|
|
+ {
|
|
|
+ if (output != null)
|
|
|
+ return output;
|
|
|
+
|
|
|
+ output = new ParameterCollection ();
|
|
|
+ if (subscribeChanged)
|
|
|
+ output.ParametersChanged += new EventHandler (ParametersChanged);
|
|
|
+
|
|
|
+ if (IsTrackingViewState && propagateTrackViewState)
|
|
|
+ ((IStateManager) output).TrackViewState ();
|
|
|
+
|
|
|
+ return output;
|
|
|
+ }
|
|
|
+
|
|
|
+ void ParametersChanged (object source, EventArgs args)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ OnDataSourceViewChanged (EventArgs.Empty);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
public int Delete (IDictionary keys, IDictionary oldValues)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ return ExecuteDelete (keys, oldValues);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void DeleteDataObject (object dataContext, object table, object oldDataObject)
|
|
|
+
|
|
|
+ public int Insert (IDictionary values)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ return ExecuteInsert (values);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected override int ExecuteDelete (IDictionary keys, IDictionary oldValues)
|
|
|
+
|
|
|
+ public IEnumerable Select (DataSourceSelectArguments arguments)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ return ExecuteSelect (arguments);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected override int ExecuteInsert (IDictionary values)
|
|
|
+
|
|
|
+ public int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ return ExecuteUpdate (keys, values, oldValues);
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected internal override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)
|
|
|
+ protected override int ExecuteDelete (IDictionary keys, IDictionary oldValues)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected override int ExecuteUpdate (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
+ protected override int ExecuteInsert (IDictionary values)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual Type GetDataObjectType (Type tableType)
|
|
|
+ protected override int ExecuteUpdate (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual MemberInfo GetTableMemberInfo (Type contextType)
|
|
|
+ protected internal override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- public int Insert (IDictionary values)
|
|
|
+ protected virtual void DeleteDataObject (object dataContext, object table, object oldDataObject)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
protected virtual void InsertDataObject (object dataContext, object table, object newDataObject)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- void IStateManager.LoadViewState (object savedState)
|
|
|
+ protected virtual void ResetDataObject (object table, object dataObject)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- object IStateManager.SaveViewState ()
|
|
|
+ protected virtual void UpdateDataObject (object dataContext, object table, object oldDataObject, object newDataObject)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- void IStateManager.TrackViewState ()
|
|
|
+ protected virtual object CreateContext (Type contextType)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual void LoadViewState (object savedState)
|
|
|
+ protected virtual Type GetDataObjectType (Type tableType)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnContextCreated (LinqDataSourceStatusEventArgs e)
|
|
|
+ protected virtual MemberInfo GetTableMemberInfo (Type contextType)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
+
|
|
|
+ #region Validation
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnContextCreating (LinqDataSourceContextEventArgs e)
|
|
|
+ protected virtual void ValidateContextType (Type contextType, bool selecting)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnContextDisposing (LinqDataSourceDisposeEventArgs e)
|
|
|
+ protected virtual void ValidateDeleteSupported (IDictionary keys, IDictionary oldValues)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnDeleted (LinqDataSourceStatusEventArgs e)
|
|
|
+ protected virtual void ValidateInsertSupported (IDictionary values)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnDeleting (LinqDataSourceDeleteEventArgs e)
|
|
|
+ protected virtual void ValidateOrderByParameter (string name, string value)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnException (DynamicValidatorEventArgs e)
|
|
|
+ protected virtual void ValidateParameterName (string name)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnInserted (LinqDataSourceStatusEventArgs e)
|
|
|
+ protected virtual void ValidateTableType (Type tableType, bool selecting)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnInserting (LinqDataSourceInsertEventArgs e)
|
|
|
+ protected virtual void ValidateUpdateSupported (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
{
|
|
|
throw new NotImplementedException ();
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void OnSelected (LinqDataSourceStatusEventArgs e)
|
|
|
- {
|
|
|
- throw new NotImplementedException ();
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region ViewState
|
|
|
+
|
|
|
+ bool IStateManager.IsTrackingViewState {
|
|
|
+ get { return IsTrackingViewState; }
|
|
|
}
|
|
|
+
|
|
|
+ protected bool IsTrackingViewState {
|
|
|
+ get { return tracking; }
|
|
|
+ }
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual void OnSelecting (LinqDataSourceSelectEventArgs e)
|
|
|
+ public bool StoreOriginalValuesInViewState { get; set; }
|
|
|
+
|
|
|
+ void IStateManager.LoadViewState (object savedState)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ LoadViewState (savedState);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void OnUpdated (LinqDataSourceStatusEventArgs e)
|
|
|
+
|
|
|
+ object IStateManager.SaveViewState ()
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ return SaveViewState ();
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void OnUpdating (LinqDataSourceUpdateEventArgs e)
|
|
|
+
|
|
|
+ void IStateManager.TrackViewState ()
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ TrackViewState ();
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ResetDataObject (object table, object dataObject)
|
|
|
+
|
|
|
+ protected virtual void LoadViewState (object savedState)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ object [] vs = savedState as object [];
|
|
|
+ if (vs == null)
|
|
|
+ return;
|
|
|
+ int i = 0;
|
|
|
+ foreach (var p in AllParameters) {
|
|
|
+ if (vs [i] != null)
|
|
|
+ ((IStateManager) p).LoadViewState (vs [i]);
|
|
|
+ i++;
|
|
|
+ }
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
+
|
|
|
protected virtual object SaveViewState ()
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ object [] vs = new object [8];
|
|
|
+ int i = 0;
|
|
|
+ foreach (var p in AllParameters) {
|
|
|
+ if (p != null)
|
|
|
+ vs [i] = ((IStateManager) p).SaveViewState ();
|
|
|
+ i++;
|
|
|
+ }
|
|
|
+
|
|
|
+ foreach (object o in vs)
|
|
|
+ if (o != null)
|
|
|
+ return vs;
|
|
|
+ return null;
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- public IEnumerable Select (DataSourceSelectArguments arguments)
|
|
|
+
|
|
|
+ protected virtual void TrackViewState ()
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ tracking = true;
|
|
|
+
|
|
|
+ foreach (var p in AllParameters)
|
|
|
+ if (p != null)
|
|
|
+ ((IStateManager) p).TrackViewState ();
|
|
|
}
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Events and Overridable Event Handler Invocations
|
|
|
+
|
|
|
[MonoTODO]
|
|
|
- protected virtual void TrackViewState ()
|
|
|
+ public event EventHandler<LinqDataSourceStatusEventArgs> ContextCreated;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceContextEventArgs> ContextCreating;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceDisposeEventArgs> ContextDisposing;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceStatusEventArgs> Deleted;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceDeleteEventArgs> Deleting;
|
|
|
+ [MonoTODO]
|
|
|
+ internal event EventHandler<DynamicValidatorEventArgs> Exception;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceStatusEventArgs> Inserted;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceInsertEventArgs> Inserting;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceStatusEventArgs> Selected;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceSelectEventArgs> Selecting;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceStatusEventArgs> Updated;
|
|
|
+ [MonoTODO]
|
|
|
+ public event EventHandler<LinqDataSourceUpdateEventArgs> Updating;
|
|
|
+
|
|
|
+ protected virtual void OnContextCreated (LinqDataSourceStatusEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (ContextCreated != null)
|
|
|
+ ContextCreated (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- public int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
+
|
|
|
+ protected virtual void OnContextCreating (LinqDataSourceContextEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (ContextCreating != null)
|
|
|
+ ContextCreating (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void UpdateDataObject (object dataContext, object table, object oldDataObject, object newDataObject)
|
|
|
+
|
|
|
+ protected virtual void OnContextDisposing (LinqDataSourceDisposeEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (ContextDisposing != null)
|
|
|
+ ContextDisposing (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateContextType (Type contextType, bool selecting)
|
|
|
+
|
|
|
+ protected virtual void OnDeleted (LinqDataSourceStatusEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Deleted != null)
|
|
|
+ Deleted (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateDeleteSupported (IDictionary keys, IDictionary oldValues)
|
|
|
+
|
|
|
+ protected virtual void OnDeleting (LinqDataSourceDeleteEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Deleting != null)
|
|
|
+ Deleting (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateInsertSupported (IDictionary values)
|
|
|
+
|
|
|
+ protected virtual void OnException (DynamicValidatorEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Exception != null)
|
|
|
+ Exception (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateOrderByParameter (string name, string value)
|
|
|
+
|
|
|
+ protected virtual void OnInserted (LinqDataSourceStatusEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Inserted != null)
|
|
|
+ Inserted (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateParameterName (string name)
|
|
|
+
|
|
|
+ protected virtual void OnInserting (LinqDataSourceInsertEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Inserting != null)
|
|
|
+ Inserting (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateTableType (Type tableType, bool selecting)
|
|
|
+
|
|
|
+ protected virtual void OnSelected (LinqDataSourceStatusEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Selected != null)
|
|
|
+ Selected (this, e);
|
|
|
}
|
|
|
- [MonoTODO]
|
|
|
- protected virtual void ValidateUpdateSupported (IDictionary keys, IDictionary values, IDictionary oldValues)
|
|
|
+
|
|
|
+ protected virtual void OnSelecting (LinqDataSourceSelectEventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (Selecting != null)
|
|
|
+ Selecting (this, e);
|
|
|
}
|
|
|
+
|
|
|
+ protected virtual void OnUpdated (LinqDataSourceStatusEventArgs e)
|
|
|
+ {
|
|
|
+ if (Updated != null)
|
|
|
+ Updated (this, e);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected virtual void OnUpdating (LinqDataSourceUpdateEventArgs e)
|
|
|
+ {
|
|
|
+ if (Updating != null)
|
|
|
+ Updating (this, e);
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
}
|
|
|
}
|
|
|
#endif
|