Adapter GetIDentity Method MVC+ (Model-Facade-View-Controller) Framework for ASP.NET
Gets database identity query statement (must be overridden by derived class.)

Namespace: NovaDimension.Data
Assembly: NovaDimension.Data (in NovaDimension.Data.dll) Version: 4.0.204.0 (4.0.0204.0)
Syntax

public abstract string GetIDentity()

Return Value

Type: String
Database identity query statement

Implements

IAdaptable GetIDentity 
Examples

This sample shows how to override the GetIDentity  abstract method.
See Also: LogHelper T 
using system;
using System.Text;
using System.Data.SqlClient;
using NovaDimension.Component;
using NovaDimension.Data;

public class SQLServerAdapter : Adapter
{
    public override String GetIDentity()
    {
        try
        {
            LogHelper<SQLServerAdapter>.DebugBegin(System.Reflection.MethodBase.GetCurrentMethod().Name);
            return " SELECT SCOPE_IDENTITY(); ";
        }
        finally
        {
            LogHelper<SQLServerAdapter>.DebugEnd(System.Reflection.MethodBase.GetCurrentMethod().Name);
        }
    }
}
See Also