Skip to content

Class EntityFrameworkAuditHistoryModelBuilderExtensions

Namespace: Cephalon.Audit.EntityFramework.Modeling
Assembly: Cephalon.Audit.EntityFramework.dll

Configures the shared Entity Framework Core model slice used by Cephalon durable audit history.

public static class EntityFrameworkAuditHistoryModelBuilderExtensions

objectEntityFrameworkAuditHistoryModelBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

ConfigureCephalonAuditHistory(ModelBuilder, string, string?)

Section titled “ ConfigureCephalonAuditHistory(ModelBuilder, string, string?)”

Adds the Cephalon durable audit-history entity mapping to the supplied model.

public static ModelBuilder ConfigureCephalonAuditHistory(this ModelBuilder modelBuilder, string tableName = "cephalon_audit_history", string? schema = null)

modelBuilder ModelBuilder

The model builder to extend.

tableName string

The table name that should hold durable audit-history rows.

schema string?

The optional schema that should own the durable audit-history table.

ModelBuilder

The same model builder for fluent configuration.