29 changed files with 5772 additions and 5689 deletions
@ -0,0 +1,9 @@ |
|||||
|
{ |
||||
|
"ConnectionStrings": { |
||||
|
"Default": "Server=localhost;Port=3306;Database=SingleService;Uid=root;Pwd=myPassword;", |
||||
|
"AbpAuditLogging": "Server=localhost;Port=3306;Database=SingleService_AuditLogs;Uid=root;Pwd=myPassword;", |
||||
|
"AbpFeatureManagement": "Server=localhost;Port=3306;Database=SingleService_Features;Uid=root;Pwd=myPassword;", |
||||
|
"AbpPermissionManagement": "Server=localhost;Port=3306;Database=SingleService_Permissions;Uid=root;Pwd=myPassword;", |
||||
|
"AbpSettingManagement": "Server=localhost;Port=3306;Database=SingleService_Settings;Uid=root;Pwd=myPassword;" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
||||
|
<ConfigureAwait /> |
||||
|
</Weavers> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
||||
|
<!-- This is a partial XSD schema. For brevity, only essential elements are included --> |
||||
|
<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>Use to enforce assembly verification.</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.</xs:documentation> |
||||
|
</xs:annotation> |
||||
|
</xs:attribute> |
||||
|
</xs:complexType> |
||||
|
</xs:element> |
||||
|
</xs:schema> |
||||
@ -0,0 +1,22 @@ |
|||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||
|
|
||||
|
<Import Project="..\..\..\configureawait.props" /> |
||||
|
<Import Project="..\..\..\common.props" /> |
||||
|
|
||||
|
<PropertyGroup> |
||||
|
<TargetFramework>net8.0</TargetFramework> |
||||
|
</PropertyGroup> |
||||
|
|
||||
|
<ItemGroup> |
||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools"> |
||||
|
<PrivateAssets>all</PrivateAssets> |
||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
||||
|
</PackageReference> |
||||
|
<PackageReference Include="Volo.Abp.EntityFrameworkCore.MySql" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\LY.MicroService.Applications.Single.EntityFrameworkCore\LY.MicroService.Applications.Single.EntityFrameworkCore.csproj" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
</Project> |
||||
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231016100545_Add-Field-With-Text-Template-Definition.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231026015443_Add-Field-With-Notification-Definition.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231026015443_Add-Field-With-Notification-Definition.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231026015443_Add-Field-With-Notification-Definition.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231026015443_Add-Field-With-Notification-Definition.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231026015443_Add-Field-With-Notification-Definition.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231026015443_Add-Field-With-Notification-Definition.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231026015443_Add-Field-With-Notification-Definition.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231026015443_Add-Field-With-Notification-Definition.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231028000247_Fix-Notification-Template-Length.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231028000247_Fix-Notification-Template-Length.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231028000247_Fix-Notification-Template-Length.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231028000247_Fix-Notification-Template-Length.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231222014501_Upgrade-Abp-Framework-To-8.0.0.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231222014501_Upgrade-Abp-Framework-To-8.0.0.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20231222014501_Upgrade-Abp-Framework-To-8.0.0.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20231222014501_Upgrade-Abp-Framework-To-8.0.0.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240217054527_Upgrade-Abp-Framework-To-8.0.3.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240217054527_Upgrade-Abp-Framework-To-8.0.3.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240217054527_Upgrade-Abp-Framework-To-8.0.3.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240217054527_Upgrade-Abp-Framework-To-8.0.3.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240624002940_Upgrade-Abp-Framework-To-8.1.3.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240624002940_Upgrade-Abp-Framework-To-8.1.3.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240624002940_Upgrade-Abp-Framework-To-8.1.3.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240624002940_Upgrade-Abp-Framework-To-8.1.3.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240729102008_Upgrade-Abp-Framework-To-8-2-0.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240729102008_Upgrade-Abp-Framework-To-8-2-0.Designer.cs
2
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore/Migrations/20240729102008_Upgrade-Abp-Framework-To-8-2-0.Designer.cs → aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.MySql/Migrations/20240729102008_Upgrade-Abp-Framework-To-8-2-0.Designer.cs
File diff suppressed because it is too large
@ -1,30 +1,33 @@ |
|||||
using Microsoft.EntityFrameworkCore; |
using Microsoft.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore.Design; |
using Microsoft.EntityFrameworkCore.Design; |
||||
using Microsoft.Extensions.Configuration; |
using Microsoft.Extensions.Configuration; |
||||
using System.IO; |
using System.IO; |
||||
|
|
||||
namespace LY.MicroService.Applications.Single.EntityFrameworkCore; |
namespace LY.MicroService.Applications.Single.EntityFrameworkCore.MySql; |
||||
|
|
||||
public class SingleMigrationsDbContextFactory : IDesignTimeDbContextFactory<SingleMigrationsDbContext> |
public class SingleMigrationsDbContextFactory : IDesignTimeDbContextFactory<SingleMigrationsDbContext> |
||||
{ |
{ |
||||
public SingleMigrationsDbContext CreateDbContext(string[] args) |
public SingleMigrationsDbContext CreateDbContext(string[] args) |
||||
{ |
{ |
||||
var configuration = BuildConfiguration(); |
var configuration = BuildConfiguration(); |
||||
var connectionString = configuration.GetConnectionString("Default"); |
var connectionString = configuration.GetConnectionString("Default"); |
||||
|
|
||||
var builder = new DbContextOptionsBuilder<SingleMigrationsDbContext>() |
var builder = new DbContextOptionsBuilder<SingleMigrationsDbContext>() |
||||
.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)); |
.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString), b => b.MigrationsAssembly("LY.MicroService.Applications.Single.EntityFrameworkCore.MySql")); |
||||
|
|
||||
return new SingleMigrationsDbContext(builder!.Options); |
return new SingleMigrationsDbContext(builder!.Options); |
||||
} |
} |
||||
|
|
||||
private static IConfigurationRoot BuildConfiguration() |
private static IConfigurationRoot BuildConfiguration() |
||||
{ |
{ |
||||
var builder = new ConfigurationBuilder() |
var builder = new ConfigurationBuilder() |
||||
.SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../LY.MicroService.Applications.Single.DbMigrator/")) |
.SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../LY.MicroService.Applications.Single.DbMigrator/")) |
||||
.AddJsonFile("appsettings.json", optional: false) |
.AddJsonFile("appsettings.json", optional: false) |
||||
.AddJsonFile("appsettings.Development.json", optional: true); |
#if MYSQL
|
||||
|
.AddJsonFile("appsettings.MySql.json", optional: false) |
||||
return builder.Build(); |
#endif
|
||||
} |
.AddJsonFile("appsettings.Development.json", optional: true); |
||||
} |
|
||||
|
return builder.Build(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore.MySQL; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace LY.MicroService.Applications.Single.EntityFrameworkCore.MySql; |
||||
|
|
||||
|
[DependsOn( |
||||
|
typeof(AbpEntityFrameworkCoreMySQLModule), |
||||
|
typeof(SingleMigrationsEntityFrameworkCoreModule) |
||||
|
)] |
||||
|
public class SingleMigrationsEntityFrameworkCoreMySqlModule : AbpModule |
||||
|
{ |
||||
|
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
|
{ |
||||
|
context.Services.AddAbpDbContext<SingleMigrationsDbContext>(); |
||||
|
|
||||
|
Configure<AbpDbContextOptions>(options => |
||||
|
{ |
||||
|
options.UseMySQL(); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
@ -1,48 +1,43 @@ |
|||||
<Project Sdk="Microsoft.NET.Sdk"> |
<Project Sdk="Microsoft.NET.Sdk"> |
||||
|
|
||||
<Import Project="..\..\..\configureawait.props" /> |
<Import Project="..\..\..\configureawait.props" /> |
||||
<Import Project="..\..\..\common.props" /> |
<Import Project="..\..\..\common.props" /> |
||||
|
|
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<TargetFramework>net8.0</TargetFramework> |
<TargetFramework>net8.0</TargetFramework> |
||||
<RootNamespace>LY.MicroService.Applications.Single.EntityFrameworkCore</RootNamespace> |
<RootNamespace>LY.MicroService.Applications.Single.EntityFrameworkCore</RootNamespace> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
|
|
||||
<ItemGroup> |
<ItemGroup> |
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools"> |
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools"> |
||||
<PrivateAssets>all</PrivateAssets> |
<PrivateAssets>all</PrivateAssets> |
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
||||
</PackageReference> |
</PackageReference> |
||||
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" /> |
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" /> |
||||
<PackageReference Include="Volo.Abp.EntityFrameworkCore.MySql" /> |
<PackageReference Include="Volo.Abp.OpenIddict.EntityFrameworkCore" /> |
||||
<PackageReference Include="Volo.Abp.OpenIddict.EntityFrameworkCore" /> |
<PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" /> |
||||
<PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" /> |
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" /> |
||||
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" /> |
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" /> |
||||
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" /> |
</ItemGroup> |
||||
</ItemGroup> |
|
||||
|
<ItemGroup> |
||||
<ItemGroup> |
<ProjectReference Include="..\..\framework\auditing\LINGYUN.Abp.AuditLogging.EntityFrameworkCore\LINGYUN.Abp.AuditLogging.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\framework\auditing\LINGYUN.Abp.AuditLogging.EntityFrameworkCore\LINGYUN.Abp.AuditLogging.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\framework\wechat\LINGYUN.Abp.WeChat\LINGYUN.Abp.WeChat.csproj" /> |
||||
<ProjectReference Include="..\..\framework\wechat\LINGYUN.Abp.WeChat\LINGYUN.Abp.WeChat.csproj" /> |
<ProjectReference Include="..\..\framework\common\LINGYUN.Abp.Data.DbMigrator\LINGYUN.Abp.Data.DbMigrator.csproj" /> |
||||
<ProjectReference Include="..\..\framework\common\LINGYUN.Abp.Data.DbMigrator\LINGYUN.Abp.Data.DbMigrator.csproj" /> |
<ProjectReference Include="..\..\modules\demo\LINGYUN.Abp.Demo.EntityFrameworkCore\LINGYUN.Abp.Demo.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\demo\LINGYUN.Abp.Demo.EntityFrameworkCore\LINGYUN.Abp.Demo.EntityFrameworkCore.csproj" /> |
</ItemGroup> |
||||
</ItemGroup> |
|
||||
|
<ItemGroup> |
||||
<ItemGroup> |
<ProjectReference Include="..\..\modules\realtime-message\LINGYUN.Abp.MessageService.EntityFrameworkCore\LINGYUN.Abp.MessageService.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\realtime-message\LINGYUN.Abp.MessageService.EntityFrameworkCore\LINGYUN.Abp.MessageService.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\realtime-notifications\LINGYUN.Abp.Notifications.EntityFrameworkCore\LINGYUN.Abp.Notifications.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\realtime-notifications\LINGYUN.Abp.Notifications.EntityFrameworkCore\LINGYUN.Abp.Notifications.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\saas\LINGYUN.Abp.Saas.EntityFrameworkCore\LINGYUN.Abp.Saas.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\saas\LINGYUN.Abp.Saas.EntityFrameworkCore\LINGYUN.Abp.Saas.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\platform\LINGYUN.Platform.EntityFrameworkCore\LINGYUN.Platform.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\platform\LINGYUN.Platform.EntityFrameworkCore\LINGYUN.Platform.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\localization-management\LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore\LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\localization-management\LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore\LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\identityServer\LINGYUN.Abp.IdentityServer.EntityFrameworkCore\LINGYUN.Abp.IdentityServer.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\identityServer\LINGYUN.Abp.IdentityServer.EntityFrameworkCore\LINGYUN.Abp.IdentityServer.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\identity\LINGYUN.Abp.Identity.EntityFrameworkCore\LINGYUN.Abp.Identity.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\identity\LINGYUN.Abp.Identity.EntityFrameworkCore\LINGYUN.Abp.Identity.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\text-templating\LINGYUN.Abp.TextTemplating.EntityFrameworkCore\LINGYUN.Abp.TextTemplating.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\text-templating\LINGYUN.Abp.TextTemplating.EntityFrameworkCore\LINGYUN.Abp.TextTemplating.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\task-management\LINGYUN.Abp.TaskManagement.EntityFrameworkCore\LINGYUN.Abp.TaskManagement.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\task-management\LINGYUN.Abp.TaskManagement.EntityFrameworkCore\LINGYUN.Abp.TaskManagement.EntityFrameworkCore.csproj" /> |
<ProjectReference Include="..\..\modules\webhooks\LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore\LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore.csproj" /> |
||||
<ProjectReference Include="..\..\modules\webhooks\LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore\LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore.csproj" /> |
</ItemGroup> |
||||
</ItemGroup> |
|
||||
|
</Project> |
||||
<ItemGroup> |
|
||||
<Folder Include="Migrations\" /> |
|
||||
</ItemGroup> |
|
||||
|
|
||||
</Project> |
|
||||
|
|||||
@ -1,56 +1,49 @@ |
|||||
using LINGYUN.Abp.AuditLogging.EntityFrameworkCore; |
using LINGYUN.Abp.AuditLogging.EntityFrameworkCore; |
||||
using LINGYUN.Abp.Data.DbMigrator; |
using LINGYUN.Abp.Data.DbMigrator; |
||||
using LINGYUN.Abp.Identity.EntityFrameworkCore; |
using LINGYUN.Abp.Identity.EntityFrameworkCore; |
||||
using LINGYUN.Abp.IdentityServer.EntityFrameworkCore; |
using LINGYUN.Abp.IdentityServer.EntityFrameworkCore; |
||||
using LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore; |
using LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore; |
||||
using LINGYUN.Abp.MessageService.EntityFrameworkCore; |
using LINGYUN.Abp.MessageService.EntityFrameworkCore; |
||||
using LINGYUN.Abp.Notifications.EntityFrameworkCore; |
using LINGYUN.Abp.Notifications.EntityFrameworkCore; |
||||
using LINGYUN.Abp.Saas.EntityFrameworkCore; |
using LINGYUN.Abp.Saas.EntityFrameworkCore; |
||||
using LINGYUN.Abp.TaskManagement.EntityFrameworkCore; |
using LINGYUN.Abp.TaskManagement.EntityFrameworkCore; |
||||
using LINGYUN.Abp.TextTemplating.EntityFrameworkCore; |
using LINGYUN.Abp.TextTemplating.EntityFrameworkCore; |
||||
using LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore; |
using LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore; |
||||
using LINGYUN.Abp.WeChat; |
using LINGYUN.Abp.WeChat; |
||||
using LINGYUN.Platform.EntityFrameworkCore; |
using LINGYUN.Platform.EntityFrameworkCore; |
||||
using Microsoft.Extensions.DependencyInjection; |
using Microsoft.Extensions.DependencyInjection; |
||||
using Volo.Abp.EntityFrameworkCore; |
using Volo.Abp.EntityFrameworkCore; |
||||
using Volo.Abp.EntityFrameworkCore.MySQL; |
using Volo.Abp.FeatureManagement.EntityFrameworkCore; |
||||
using Volo.Abp.FeatureManagement.EntityFrameworkCore; |
using Volo.Abp.Modularity; |
||||
using Volo.Abp.Modularity; |
using Volo.Abp.OpenIddict.EntityFrameworkCore; |
||||
using Volo.Abp.OpenIddict.EntityFrameworkCore; |
using Volo.Abp.PermissionManagement.EntityFrameworkCore; |
||||
using Volo.Abp.PermissionManagement.EntityFrameworkCore; |
using Volo.Abp.SettingManagement.EntityFrameworkCore; |
||||
using Volo.Abp.SettingManagement.EntityFrameworkCore; |
|
||||
|
namespace LY.MicroService.Applications.Single.EntityFrameworkCore; |
||||
namespace LY.MicroService.Applications.Single.EntityFrameworkCore; |
|
||||
|
[DependsOn( |
||||
[DependsOn( |
typeof(AbpSaasEntityFrameworkCoreModule), |
||||
typeof(AbpSaasEntityFrameworkCoreModule), |
typeof(AbpAuditLoggingEntityFrameworkCoreModule), |
||||
typeof(AbpAuditLoggingEntityFrameworkCoreModule), |
typeof(AbpSettingManagementEntityFrameworkCoreModule), |
||||
typeof(AbpSettingManagementEntityFrameworkCoreModule), |
typeof(AbpPermissionManagementEntityFrameworkCoreModule), |
||||
typeof(AbpPermissionManagementEntityFrameworkCoreModule), |
typeof(AbpFeatureManagementEntityFrameworkCoreModule), |
||||
typeof(AbpFeatureManagementEntityFrameworkCoreModule), |
typeof(AbpNotificationsEntityFrameworkCoreModule), |
||||
typeof(AbpNotificationsEntityFrameworkCoreModule), |
typeof(AbpMessageServiceEntityFrameworkCoreModule), |
||||
typeof(AbpMessageServiceEntityFrameworkCoreModule), |
typeof(PlatformEntityFrameworkCoreModule), |
||||
typeof(PlatformEntityFrameworkCoreModule), |
typeof(AbpLocalizationManagementEntityFrameworkCoreModule), |
||||
typeof(AbpLocalizationManagementEntityFrameworkCoreModule), |
typeof(AbpIdentityEntityFrameworkCoreModule), |
||||
typeof(AbpIdentityEntityFrameworkCoreModule), |
typeof(AbpIdentityServerEntityFrameworkCoreModule), |
||||
typeof(AbpIdentityServerEntityFrameworkCoreModule), |
typeof(AbpOpenIddictEntityFrameworkCoreModule), |
||||
typeof(AbpOpenIddictEntityFrameworkCoreModule), |
typeof(AbpTextTemplatingEntityFrameworkCoreModule), |
||||
typeof(AbpTextTemplatingEntityFrameworkCoreModule), |
typeof(WebhooksManagementEntityFrameworkCoreModule), |
||||
typeof(WebhooksManagementEntityFrameworkCoreModule), |
typeof(TaskManagementEntityFrameworkCoreModule), |
||||
typeof(TaskManagementEntityFrameworkCoreModule), |
typeof(AbpWeChatModule), |
||||
typeof(AbpEntityFrameworkCoreMySQLModule), |
typeof(AbpDataDbMigratorModule) |
||||
typeof(AbpWeChatModule), |
)] |
||||
typeof(AbpDataDbMigratorModule) |
public class SingleMigrationsEntityFrameworkCoreModule : AbpModule |
||||
)] |
{ |
||||
public class SingleMigrationsEntityFrameworkCoreModule : AbpModule |
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
{ |
{ |
||||
public override void ConfigureServices(ServiceConfigurationContext context) |
context.Services.AddAbpDbContext<SingleMigrationsDbContext>(); |
||||
{ |
} |
||||
context.Services.AddAbpDbContext<SingleMigrationsDbContext>(); |
} |
||||
|
|
||||
Configure<AbpDbContextOptions>(options => |
|
||||
{ |
|
||||
options.UseMySQL(); |
|
||||
}); |
|
||||
} |
|
||||
} |
|
||||
|
|||||
Loading…
Reference in new issue