Show / Hide Table of Contents

    ISqlModelMapper.TrackDelete Method

    .NET Standard 2.x

    Tracks a database table delete operation. The data that will be deleted from the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL DELETE statement will be first generated using the data cached in the TModel object and the mapping information defined in TModel class, and then executed.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Overloads

    Method Description
    TrackDelete<TModel>(TModel model) Tracks a database table delete operation. The data that will be deleted from the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL DELETE statement will be first generated using the data cached in the TModel object and the mapping information defined in TModel class, and then executed.
    TrackDelete<TModel>(TModel model, Action<ISaveContext> afterSaveAction) Tracks a database table delete operation and an Action<ISaveContext> object. The data that will be deleted from the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL DELETE statement will be first generated using the data cached in the TModel object and the mapping information defined in TModel class, and then executed; and after that, the Action<ISaveContext> object will be called.
    Back to top Generated by Appeon