Show / Hide Table of Contents

    Class DataAdapter

    An abstract class representing the actual data binding to a data source.

    Inheritance
    System.Object
    DataAdapter
    Namespace: Cuemon.Data
    Assembly: Cuemon.Data.dll
    Syntax
    public abstract class DataAdapter

    Constructors

    | Improve this Doc

    DataAdapter()

    Initializes a new instance of the DataAdapter class.

    Declaration
    protected DataAdapter()
    | Improve this Doc

    DataAdapter(DataManager)

    Initializes a new instance of the DataAdapter class.

    Declaration
    protected DataAdapter(DataManager manager)
    Parameters
    Type Name Description
    DataManager manager

    The data manager as underlying DSL wrapper logic.

    Properties

    | Improve this Doc

    Manager

    Gets the data manager for this object. Please be aware, that you should only use this for custom methods as you will loose event control on Entity classes by using the manager directly.

    Declaration
    public DataManager Manager { get; }
    Property Value
    Type Description
    DataManager

    A DataManager object.

    Methods

    | Improve this Doc

    Delete(IDataCommand, DbParameter[])

    Deletes data from a data source.

    Declaration
    protected void Delete(IDataCommand dataCommand, params DbParameter[] parameters)
    Parameters
    Type Name Description
    IDataCommand dataCommand

    The data command to execute.

    System.Data.Common.DbParameter[] parameters

    The parameters to use in the command.

    | Improve this Doc

    Insert(IDataCommand, QueryInsertAction, DbParameter[])

    Inserts data to a data source.

    Declaration
    protected object Insert(IDataCommand dataCommand, QueryInsertAction action, params DbParameter[] parameters)
    Parameters
    Type Name Description
    IDataCommand dataCommand

    The data command to execute.

    QueryInsertAction action

    The insert action you wish to apply.

    System.Data.Common.DbParameter[] parameters

    The parameters to use in the command.

    Returns
    Type Description
    System.Object

    A System.Void object.

    | Improve this Doc

    Insert(IDataCommand, DbParameter[])

    Inserts data to a data source with default insert action, AffectedRows.

    Declaration
    protected object Insert(IDataCommand dataCommand, params DbParameter[] parameters)
    Parameters
    Type Name Description
    IDataCommand dataCommand

    The data command to execute.

    System.Data.Common.DbParameter[] parameters

    The parameters to use in the command.

    Returns
    Type Description
    System.Object

    A System.Void object.

    | Improve this Doc

    OnDeletedRaised(DataAdapterEventArgs)

    Raises the Deleted event.

    Declaration
    protected virtual void OnDeletedRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnDeletingRaised(DataAdapterEventArgs)

    Raises the Deleting event.

    Declaration
    protected virtual void OnDeletingRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnInsertedRaised(DataAdapterEventArgs)

    Raises the Inserted event.

    Declaration
    protected virtual void OnInsertedRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnInsertingRaised(DataAdapterEventArgs)

    Raises the Inserting event.

    Declaration
    protected virtual void OnInsertingRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnSelectedRaised(DataAdapterEventArgs)

    Raises the Selected event.

    Declaration
    protected virtual void OnSelectedRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnSelectingRaised(DataAdapterEventArgs)

    Raises the Selecting event.

    Declaration
    protected virtual void OnSelectingRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnUpdatedRaised(DataAdapterEventArgs)

    Raises the Updated event.

    Declaration
    protected virtual void OnUpdatedRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    OnUpdatingRaised(DataAdapterEventArgs)

    Raises the Updating event.

    Declaration
    protected virtual void OnUpdatingRaised(DataAdapterEventArgs e)
    Parameters
    Type Name Description
    DataAdapterEventArgs e

    The DataAdapterEventArgs instance containing the event data.

    | Improve this Doc

    Select(IDataCommand, DbParameter[])

    Selects data from a data source.

    Declaration
    protected DbDataReader Select(IDataCommand dataCommand, params DbParameter[] parameters)
    Parameters
    Type Name Description
    IDataCommand dataCommand

    The data command to execute.

    System.Data.Common.DbParameter[] parameters

    The parameters to use in the command.

    Returns
    Type Description
    System.Data.Common.DbDataReader

    An object supporting the System.Data.Common.DbDataReader interface.

    | Improve this Doc

    Update(IDataCommand, DbParameter[])

    Updates data in the data source.

    Declaration
    protected void Update(IDataCommand dataCommand, params DbParameter[] parameters)
    Parameters
    Type Name Description
    IDataCommand dataCommand

    The data command to execute.

    System.Data.Common.DbParameter[] parameters

    The parameters to use in the command.

    Events

    | Improve this Doc

    Deleted

    Occurs when a Delete operation has completed.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Deleted
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Deleting

    Occurs before a Delete operation.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Deleting
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Inserted

    Occurs when an Insert operation has completed.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Inserted
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Inserting

    Occurs before an Insert operation.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Inserting
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Selected

    Occurs when a Select operation has completed.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Selected
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Selecting

    Occurs before a Select operation.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Selecting
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Updated

    Occurs when an Update operation has completed.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Updated
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>
    | Improve this Doc

    Updating

    Occurs before an Update operation.

    Declaration
    public event EventHandler<DataAdapterEventArgs> Updating
    Event Type
    Type Description
    System.EventHandler<DataAdapterEventArgs>

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX