Click or drag to resize

ControllerDataGridDataItemClassAppModule Property

Requirement for data handling

Namespace:  SOWIWin.Helper
Assembly:  SOWIWin.Helper (in SOWIWin.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
protected abstract IConnector<DataItemClass> AppModule { get; }

Property Value

Type: IConnectorDataItemClass
Examples
This example put a private App object (_AppDataGrid) for a better performance. And one App object (AppDataGrid) with full function. And one App object (AppModule) only function from interface IConnectorDataItemClass use internal of ControllerDataGridDataItemClass
/// <summary>
/// For a better performance!
/// </summary>
private SOWIApp.Management.Data.DataGrid _AppDataGrid { get; set; }

/// <summary>
/// Gives SOWI App Management DataGrid object with direct database access (<see cref="SOWIApp.Management.Data.DataGrid"/>)
/// </summary>
public SOWIApp.Management.Data.DataGrid AppDataGrid
{
    get
    {
        if (_AppDataGrid == null)
        {
            _AppDataGrid = new SOWIApp.Management.Data.DataGrid(this.ConnectionString, this.UserName);
        }
        return _AppDataGrid;

    }
}

/// <summary>
/// Gives a App object with methods and properties by <see cref="SOWIData.Database.IConnector{DataItemClass}"/>
/// </summary>
protected override SOWIData.Database.IConnector<SOWIData.Management.DataGrid> AppModule
{
    get
    {
        return (SOWIData.Database.IConnector<SOWIData.Management.DataGrid>)AppDataGrid;
    }
}
More example see SOWIWeb.Helper.ControllerStandard property AppModule
See Also