11 changed files with 4927 additions and 4765 deletions
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait ContinueOnCapturedContext="false" /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,27 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net8.0</TargetFramework> |
|||
<AssemblyName>LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql</AssemblyName> |
|||
<PackageId>LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql</PackageId> |
|||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
|||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
|||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|||
<RootNamespace /> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Elsa.Webhooks.Persistence.EntityFramework.PostgreSql" /> |
|||
<PackageReference Include="Elsa.WorkflowSettings.Persistence.EntityFramework.PostgreSql" /> |
|||
<PackageReference Include="Volo.Abp.EntityFrameworkCore.PostgreSql" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\LINGYUN.Abp.Elsa.EntityFrameworkCore\LINGYUN.Abp.Elsa.EntityFrameworkCore.csproj" /> |
|||
<ProjectReference Include="..\LINGYUN.Abp.Elsa\LINGYUN.Abp.Elsa.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,29 @@ |
|||
using Elsa; |
|||
using Elsa.Options; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.EntityFrameworkCore.PostgreSql; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpElsaEntityFrameworkCoreModule), |
|||
typeof(AbpEntityFrameworkCorePostgreSqlModule))] |
|||
public class AbpElsaEntityFrameworkCorePostgreSqlModule : AbpModule |
|||
{ |
|||
public override void PreConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
var configuration = context.Services.GetConfiguration(); |
|||
var startups = new[] |
|||
{ |
|||
typeof(PersistenceStartup), |
|||
typeof(WebhooksStartup), |
|||
typeof(WorkflowSettingsStartup), |
|||
}; |
|||
|
|||
PreConfigure<ElsaOptionsBuilder>(elsa => |
|||
{ |
|||
elsa.AddFeatures(startups, configuration); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
using Elsa.Attributes; |
|||
using Microsoft.EntityFrameworkCore; |
|||
|
|||
namespace LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql; |
|||
|
|||
[Feature("DefaultPersistence:EntityFrameworkCore:PostgreSql")] |
|||
public class PersistenceStartup : PersistenceStartupBase |
|||
{ |
|||
protected override string ProviderName => "PostgreSql"; |
|||
|
|||
protected override void Configure(DbContextOptionsBuilder options, string connectionString) |
|||
{ |
|||
options.UseNpgsql(connectionString); |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using Elsa.Attributes; |
|||
using Microsoft.EntityFrameworkCore; |
|||
|
|||
namespace LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql; |
|||
|
|||
[Feature("Webhooks:EntityFrameworkCore:PostgreSql")] |
|||
public class WebhooksStartup : WebhooksStartupBase |
|||
{ |
|||
protected override string ProviderName => "PostgreSql"; |
|||
|
|||
protected override void Configure(DbContextOptionsBuilder options, string connectionString) |
|||
{ |
|||
options.UseNpgsql( |
|||
connectionString, |
|||
x => x.MigrationsHistoryTable("__EFMigrationsHistory_Webhooks")); |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using Elsa.Attributes; |
|||
using Microsoft.EntityFrameworkCore; |
|||
|
|||
namespace LINGYUN.Abp.Elsa.EntityFrameworkCore.PostgreSql; |
|||
|
|||
[Feature("WorkflowSettings:EntityFrameworkCore:PostgreSql")] |
|||
public class WorkflowSettingsStartup : WorkflowSettingsStartupBase |
|||
{ |
|||
protected override string ProviderName => "PostgreSql"; |
|||
|
|||
protected override void Configure(DbContextOptionsBuilder options, string connectionString) |
|||
{ |
|||
options.UseNpgsql( |
|||
connectionString, |
|||
x => x.MigrationsHistoryTable("__EFMigrationsHistory_WorkflowSettings")); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue