elsa-core/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Sqlite/Startup.cs
axeleron007 0f7d66b95e MongoDB and Postgres persistence configuration
MongoDB and Postgres persistence configuration
2021-06-30 18:18:59 +03:00

14 lines
632 B
C#

using Elsa.Attributes;
using Elsa.Webhooks.Persistence.EntityFramework.Core;
using Microsoft.EntityFrameworkCore;
namespace Elsa.Webhooks.Persistence.EntityFramework.Sqlite
{
[Feature("Webhooks:Persistence:EntityFrameworkCore:Sqlite")]
public class Startup : EntityFrameworkWebhookStartupBase
{
protected override string ProviderName => "Sqlite";
protected override string GetDefaultConnectionString() => "Data Source=elsa.sqlite.db;Cache=Shared;";
protected override void Configure(DbContextOptionsBuilder options, string connectionString) => options.UseWebhookSqlite(connectionString);
}
}