ข้ามไปยังเนื้อหา

Class EntityFrameworkEventSourcingServiceCollectionExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.EventSourcing.EntityFramework.Hosting
Assembly: Cephalon.EventSourcing.EntityFramework.dll

Registers the Entity Framework event-store provider used by Cephalon hosts.

public static class EntityFrameworkEventSourcingServiceCollectionExtensions

objectEntityFrameworkEventSourcingServiceCollectionExtensions

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

AddCephalonEntityFrameworkEventSourcing<TContext>(IServiceCollection)

Section titled “ AddCephalonEntityFrameworkEventSourcing<TContext>(IServiceCollection)”

Adds the Entity Framework event-store provider to the service collection.

public static IServiceCollection AddCephalonEntityFrameworkEventSourcing<TContext>(this IServiceCollection services) where TContext : DbContext, IEntityFrameworkEventContext

services IServiceCollection

The service collection to extend.

IServiceCollection

The same service collection for fluent registration.

TContext

The DbContext type that persists event rows.