18 lines
571 B
C#
18 lines
571 B
C#
using Elsa.EntityFrameworkCore.Common.Contracts;
|
|||
using Elsa.EntityFrameworkCore.Common.EntityHandlers;
|
|||
using Elsa.Features.Abstractions;
|
|||
using Elsa.Features.Services;
|
|||
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|||
namespace Elsa.EntityFrameworkCore.Common;
|
|||
|
|||
/// <inheritdoc />
|
|||
public class CommonPersistenceFeature(IModule module) : FeatureBase(module)
|
|||
{
|
|||
/// <inheritdoc />
|
|||
public override void Apply()
|
|||
{
|
|||
Services.AddScoped<IEntitySavingHandler, ApplyTenantId>();
|
|||
Services.AddScoped<IEntityModelCreatingHandler, SetTenantIdFilter>();
|
|||
}
|
|||
}
|