Show / Hide Table of Contents

    ISqlModelMapper.TrackCreate Method

    .NET Standard 2.x

    Tracks a database table insert operation. The data that will be inserted into the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL INSERT 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
    TrackCreate<TModel>(TModel model) Tracks a database table insert operation. The data that will be inserted into the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL INSERT statement will be first generated using the data cached in the TModel object and the mapping information defined in TModel class, and then executed.
    TrackCreate<TModel>(TModel model, Action<ISaveContext> afterSaveAction) Tracks a database table insert operation and an Action<ISaveContext> object. The data that will be inserted into the database table is cached in the TModel object. When ISqlModelMapper.SaveChanges method is called, a SQL INSERT statement will be first generated using the data cached in the TModel object and the mapping information defined in TModel class, and then executed. After that, the Action<ISaveContext> object will be called.
    Back to top Generated by Appeon