Show / Hide Table of Contents

Interface IDependentEntityCollection

Interface for dependent child entities that allows triggering logic before save and after save events.

Namespace: Benday.EfCore.SqlServer
Assembly: Benday.EfCore.SqlServer.dll
Syntax
public interface IDependentEntityCollection

Methods

| Edit this page View Source

AfterSave()

Call this method to perform logic after saving

Declaration
void AfterSave()
| Edit this page View Source

BeforeSave(DbContext)

Call this method to perform logic before saving

Declaration
void BeforeSave(DbContext dbContext)
Parameters
Type Name Description
DbContext dbContext

EF Core database context instance to be used by the save operation

  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com