diff --git a/aspnet-core/Directory.Build.Lion.targets b/aspnet-core/Directory.Build.Lion.targets
index 5b0af9d0..aa2675bc 100644
--- a/aspnet-core/Directory.Build.Lion.targets
+++ b/aspnet-core/Directory.Build.Lion.targets
@@ -1,11 +1,11 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs
index 9ccb7e2d..321bdb69 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs
@@ -1,3 +1,5 @@
+using Lion.AbpPro.Localization;
+
namespace Lion.AbpPro.Permissions
{
public class AbpProPermissionDefinitionProvider : PermissionDefinitionProvider
diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProAppService.cs
index 751b6ec0..2275b3b6 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProAppService.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProAppService.cs
@@ -1,3 +1,5 @@
+using Lion.AbpPro.Localization;
+
namespace Lion.AbpPro
{
/* Inherit your application services from this class.
diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs
index 0693a39f..e4683839 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs
@@ -1,10 +1,12 @@
+using Lion.AbpPro.Books;
+
namespace Lion.AbpPro
{
public class AbpProApplicationAutoMapperProfile : Profile
{
public AbpProApplicationAutoMapperProfile()
{
-
+ CreateMap();
}
}
}
diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs
index bfde56d6..430de8ad 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs
@@ -3,6 +3,7 @@ using Lion.AbpPro.BasicManagement.Localization;
using Lion.AbpPro.CodeManagement;
using Lion.AbpPro.Core;
using Lion.AbpPro.LanguageManagement;
+using Lion.AbpPro.Localization;
namespace Lion.AbpPro
{
diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Features/AbpProFeatureDefinitionProvider.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Features/AbpProFeatureDefinitionProvider.cs
index 62fd6d87..79cb6f19 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Features/AbpProFeatureDefinitionProvider.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Features/AbpProFeatureDefinitionProvider.cs
@@ -1,3 +1,4 @@
+using Lion.AbpPro.Localization;
using Volo.Abp.Features;
using Volo.Abp.Validation.StringValues;
diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/AbpProResource.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/AbpProResource.cs
index 41cf4ea8..373e8f67 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/AbpProResource.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/AbpProResource.cs
@@ -1,4 +1,4 @@
-namespace Lion.AbpPro
+namespace Lion.AbpPro.Localization
{
[LocalizationResourceName("AbpPro")]
public class AbpProResource
diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainAutoMapperProfile.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainAutoMapperProfile.cs
new file mode 100644
index 00000000..bfe01fcd
--- /dev/null
+++ b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainAutoMapperProfile.cs
@@ -0,0 +1,12 @@
+using AutoMapper;
+using Lion.AbpPro.Books;
+
+namespace Lion.AbpPro;
+
+public class AbpProDomainAutoMapperProfile: Profile
+{
+ public AbpProDomainAutoMapperProfile()
+ {
+ CreateMap();
+ }
+}
\ No newline at end of file
diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs
index f2b5815e..2ccb8472 100644
--- a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs
@@ -1,3 +1,5 @@
+using Lion.AbpPro.Localization;
+
namespace Lion.AbpPro.Settings
{
public class AbpProSettingDefinitionProvider : SettingDefinitionProvider
diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs
index 3db941b5..47da76ec 100644
--- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs
@@ -1,3 +1,4 @@
+using Lion.AbpPro.Books;
using Lion.AbpPro.CodeManagement.DataTypes.Aggregates;
using Lion.AbpPro.CodeManagement.EntityFrameworkCore;
using Lion.AbpPro.CodeManagement.EntityModels.Aggregates;
@@ -62,6 +63,8 @@ namespace Lion.AbpPro.EntityFrameworkCore
public DbSet DataTypes { get; set; }
public DbSet EnumTypes { get; set; }
+ public DbSet Books { get; set; }
+
public AbpProDbContext(DbContextOptions options)
: base(options)
{
@@ -99,6 +102,7 @@ namespace Lion.AbpPro.EntityFrameworkCore
builder.ConfigureCodeManagement();
}
-
+
+
}
}
\ No newline at end of file
diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContextModelCreatingExtensions.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContextModelCreatingExtensions.cs
index 7eecca5c..d270c586 100644
--- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContextModelCreatingExtensions.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContextModelCreatingExtensions.cs
@@ -1,3 +1,6 @@
+using Humanizer;
+using Lion.AbpPro.Books;
+
namespace Lion.AbpPro.EntityFrameworkCore
{
public static class AbpProDbContextModelCreatingExtensions
@@ -5,15 +8,17 @@ namespace Lion.AbpPro.EntityFrameworkCore
public static void ConfigureAbpPro(this ModelBuilder builder)
{
Check.NotNull(builder, nameof(builder));
-
- /* Configure your own tables/entities inside here */
-
- //builder.Entity(b =>
- //{
- // b.ToTable(AbpProConsts.DbTablePrefix + "YourEntities", AbpProConsts.DbSchema);
- // b.ConfigureByConvention(); //auto configure for the base class props
- // //...
- //});
+
+ builder.Entity(b =>
+ {
+ b.ToTable(AbpProConsts.DbTablePrefix + nameof(Book).Pluralize());
+ b.Property(e => e.No).IsRequired().HasMaxLength(128).HasComment("编号");
+ b.Property(e => e.Name).IsRequired().HasMaxLength(128).HasComment("名称");
+ b.Property(e => e.Price).IsRequired().HasPrecision(6,2).HasComment("价格");
+ b.Property(e => e.Remark).HasComment("备注");
+ b.Property(e => e.BookType).HasComment("类型");
+ b.ConfigureByConvention();
+ });
}
}
}
\ No newline at end of file
diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/IAbpProDbContext.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/IAbpProDbContext.cs
index c66cab84..c6cf8a47 100644
--- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/IAbpProDbContext.cs
+++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/IAbpProDbContext.cs
@@ -1,8 +1,10 @@
+using Lion.AbpPro.Books;
+
namespace Lion.AbpPro.EntityFrameworkCore
{
[ConnectionStringName("Default")]
public interface IAbpProDbContext : IEfCoreDbContext
{
-
+ DbSet Books { get; set; }
}
-}
+}
\ No newline at end of file
diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Migrations/20240914065939_1.0.0.Designer.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Migrations/20240914065939_1.0.0.Designer.cs
deleted file mode 100644
index d9931240..00000000
--- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Migrations/20240914065939_1.0.0.Designer.cs
+++ /dev/null
@@ -1,2085 +0,0 @@
-//
-using System;
-using Lion.AbpPro.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Volo.Abp.EntityFrameworkCore;
-
-#nullable disable
-
-namespace Lion.AbpPro.Migrations
-{
- [DbContext(typeof(AbpProDbContext))]
- [Migration("20240914065939_1.0.0")]
- partial class _100
- {
- ///
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
- .HasAnnotation("ProductVersion", "8.0.4")
- .HasAnnotation("Relational:MaxIdentifierLength", 64);
-
- MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
-
- modelBuilder.Entity("Lion.AbpPro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("Code")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("Description")
- .IsRequired()
- .HasMaxLength(1024)
- .HasColumnType("varchar(1024)");
-
- b.Property("DisplayText")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.ToTable("AbpDataDictionaries", (string)null);
- });
-
- modelBuilder.Entity("Lion.AbpPro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionaryDetail", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("Code")
- .HasColumnType("longtext");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("DataDictionaryId")
- .HasColumnType("char(36)");
-
- b.Property("Description")
- .HasColumnType("longtext");
-
- b.Property("DisplayText")
- .HasColumnType("longtext");
-
- b.Property("IsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("Order")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("DataDictionaryId");
-
- b.ToTable("AbpDataDictionaryDetails", (string)null);
- });
-
- modelBuilder.Entity("Lion.AbpPro.LanguageManagement.LanguageTexts.Aggregates.LanguageText", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("CultureName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("语言名称");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasComment("名称");
-
- b.Property("ResourceName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("资源名称");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("Value")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasComment("值");
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "ResourceName", "CultureName");
-
- b.ToTable("AbpLanguageTexts", (string)null);
- });
-
- modelBuilder.Entity("Lion.AbpPro.LanguageManagement.Languages.Aggregates.Language", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("CultureName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("语言名称");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("DisplayName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("显示名称");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("FlagIcon")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("图标");
-
- b.Property("IsDefault")
- .HasColumnType("tinyint(1)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("IsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("UiCultureName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasComment("Ui语言名称");
-
- b.HasKey("Id");
-
- b.HasIndex("CultureName");
-
- b.ToTable("AbpLanguages", (string)null);
- });
-
- modelBuilder.Entity("Lion.AbpPro.NotificationManagement.Notifications.Aggregates.Notification", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("Content")
- .IsRequired()
- .HasMaxLength(1024)
- .HasColumnType("varchar(1024)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("MessageLevel")
- .HasColumnType("int");
-
- b.Property("MessageType")
- .HasColumnType("int");
-
- b.Property("Read")
- .HasColumnType("tinyint(1)");
-
- b.Property("ReadTime")
- .HasColumnType("datetime(6)");
-
- b.Property("ReceiveUserId")
- .HasColumnType("char(36)");
-
- b.Property("ReceiveUserName")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("SenderUserId")
- .HasColumnType("char(36)");
-
- b.Property("SenderUserName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("Title")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.HasKey("Id");
-
- b.ToTable("AbpNotifications", (string)null);
- });
-
- modelBuilder.Entity("Lion.AbpPro.NotificationManagement.Notifications.Aggregates.NotificationSubscription", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
-
- b.Property("NotificationId")
- .HasColumnType("char(36)");
-
- b.Property("Read")
- .HasColumnType("tinyint(1)");
-
- b.Property("ReadTime")
- .HasColumnType("datetime(6)");
-
- b.Property("ReceiveUserId")
- .HasColumnType("char(36)");
-
- b.Property("ReceiveUserName")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("NotificationId");
-
- b.HasIndex("ReceiveUserId");
-
- b.ToTable("AbpNotificationSubscriptions", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ApplicationName")
- .HasMaxLength(96)
- .HasColumnType("varchar(96)")
- .HasColumnName("ApplicationName");
-
- b.Property("BrowserInfo")
- .HasMaxLength(512)
- .HasColumnType("varchar(512)")
- .HasColumnName("BrowserInfo");
-
- b.Property("ClientId")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("ClientId");
-
- b.Property("ClientIpAddress")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("ClientIpAddress");
-
- b.Property("ClientName")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasColumnName("ClientName");
-
- b.Property("Comments")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("Comments");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CorrelationId")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("CorrelationId");
-
- b.Property("Exceptions")
- .HasColumnType("longtext");
-
- b.Property("ExecutionDuration")
- .HasColumnType("int")
- .HasColumnName("ExecutionDuration");
-
- b.Property("ExecutionTime")
- .HasColumnType("datetime(6)");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("HttpMethod")
- .HasMaxLength(16)
- .HasColumnType("varchar(16)")
- .HasColumnName("HttpMethod");
-
- b.Property("HttpStatusCode")
- .HasColumnType("int")
- .HasColumnName("HttpStatusCode");
-
- b.Property("ImpersonatorTenantId")
- .HasColumnType("char(36)")
- .HasColumnName("ImpersonatorTenantId");
-
- b.Property("ImpersonatorTenantName")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("ImpersonatorTenantName");
-
- b.Property("ImpersonatorUserId")
- .HasColumnType("char(36)")
- .HasColumnName("ImpersonatorUserId");
-
- b.Property("ImpersonatorUserName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("ImpersonatorUserName");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("TenantName")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("TenantName");
-
- b.Property("Url")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("Url");
-
- b.Property("UserId")
- .HasColumnType("char(36)")
- .HasColumnName("UserId");
-
- b.Property("UserName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("UserName");
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "ExecutionTime");
-
- b.HasIndex("TenantId", "UserId", "ExecutionTime");
-
- b.ToTable("AbpAuditLogs", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("AuditLogId")
- .HasColumnType("char(36)")
- .HasColumnName("AuditLogId");
-
- b.Property("ExecutionDuration")
- .HasColumnType("int")
- .HasColumnName("ExecutionDuration");
-
- b.Property("ExecutionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("ExecutionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("MethodName")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasColumnName("MethodName");
-
- b.Property("Parameters")
- .HasMaxLength(2000)
- .HasColumnType("varchar(2000)")
- .HasColumnName("Parameters");
-
- b.Property("ServiceName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("ServiceName");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
-
- b.ToTable("AbpAuditLogActions", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("AuditLogId")
- .HasColumnType("char(36)")
- .HasColumnName("AuditLogId");
-
- b.Property("ChangeTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("ChangeTime");
-
- b.Property("ChangeType")
- .HasColumnType("tinyint unsigned")
- .HasColumnName("ChangeType");
-
- b.Property("EntityId")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasColumnName("EntityId");
-
- b.Property("EntityTenantId")
- .HasColumnType("char(36)");
-
- b.Property("EntityTypeFullName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasColumnName("EntityTypeFullName");
-
- b.Property("ExtraProperties")
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
-
- b.ToTable("AbpEntityChanges", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("EntityChangeId")
- .HasColumnType("char(36)");
-
- b.Property("NewValue")
- .HasMaxLength(512)
- .HasColumnType("varchar(512)")
- .HasColumnName("NewValue");
-
- b.Property("OriginalValue")
- .HasMaxLength(512)
- .HasColumnType("varchar(512)")
- .HasColumnName("OriginalValue");
-
- b.Property("PropertyName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)")
- .HasColumnName("PropertyName");
-
- b.Property("PropertyTypeFullName")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasColumnName("PropertyTypeFullName");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("EntityChangeId");
-
- b.ToTable("AbpEntityPropertyChanges", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsAbandoned")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false);
-
- b.Property("JobArgs")
- .IsRequired()
- .HasMaxLength(1048576)
- .HasColumnType("longtext");
-
- b.Property("JobName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("LastTryTime")
- .HasColumnType("datetime(6)");
-
- b.Property("NextTryTime")
- .HasColumnType("datetime(6)");
-
- b.Property("Priority")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint unsigned")
- .HasDefaultValue((byte)15);
-
- b.Property("TryCount")
- .ValueGeneratedOnAdd()
- .HasColumnType("smallint")
- .HasDefaultValue((short)0);
-
- b.HasKey("Id");
-
- b.HasIndex("IsAbandoned", "NextTryTime");
-
- b.ToTable("AbpBackgroundJobs", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("AllowedProviders")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("DefaultValue")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("Description")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("DisplayName")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("ExtraProperties")
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("GroupName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("IsAvailableToHost")
- .HasColumnType("tinyint(1)");
-
- b.Property("IsVisibleToClients")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("ParentName")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("ValueType")
- .HasMaxLength(2048)
- .HasColumnType("varchar(2048)");
-
- b.HasKey("Id");
-
- b.HasIndex("GroupName");
-
- b.HasIndex("Name")
- .IsUnique();
-
- b.ToTable("AbpFeatures", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("DisplayName")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("ExtraProperties")
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.HasKey("Id");
-
- b.HasIndex("Name")
- .IsUnique();
-
- b.ToTable("AbpFeatureGroups", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("ProviderKey")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("ProviderName")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("Value")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.HasKey("Id");
-
- b.HasIndex("Name", "ProviderName", "ProviderKey")
- .IsUnique();
-
- b.ToTable("AbpFeatureValues", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("Description")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsStatic")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("Regex")
- .HasMaxLength(512)
- .HasColumnType("varchar(512)");
-
- b.Property("RegexDescription")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("Required")
- .HasColumnType("tinyint(1)");
-
- b.Property("ValueType")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("AbpClaimTypes", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("SourceTenantId")
- .HasColumnType("char(36)");
-
- b.Property("SourceUserId")
- .HasColumnType("char(36)");
-
- b.Property("TargetTenantId")
- .HasColumnType("char(36)");
-
- b.Property("TargetUserId")
- .HasColumnType("char(36)");
-
- b.HasKey("Id");
-
- b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId")
- .IsUnique();
-
- b.ToTable("AbpLinkUsers", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("EntityVersion")
- .HasColumnType("int");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDefault")
- .HasColumnType("tinyint(1)")
- .HasColumnName("IsDefault");
-
- b.Property("IsPublic")
- .HasColumnType("tinyint(1)")
- .HasColumnName("IsPublic");
-
- b.Property("IsStatic")
- .HasColumnType("tinyint(1)")
- .HasColumnName("IsStatic");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("NormalizedName")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName");
-
- b.ToTable("AbpRoles", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ClaimType")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("ClaimValue")
- .HasMaxLength(1024)
- .HasColumnType("varchar(1024)");
-
- b.Property("RoleId")
- .HasColumnType("char(36)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AbpRoleClaims", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("Action")
- .HasMaxLength(96)
- .HasColumnType("varchar(96)");
-
- b.Property("ApplicationName")
- .HasMaxLength(96)
- .HasColumnType("varchar(96)");
-
- b.Property("BrowserInfo")
- .HasMaxLength(512)
- .HasColumnType("varchar(512)");
-
- b.Property("ClientId")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("ClientIpAddress")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CorrelationId")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("Identity")
- .HasMaxLength(96)
- .HasColumnType("varchar(96)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("TenantName")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("UserId")
- .HasColumnType("char(36)");
-
- b.Property("UserName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "Action");
-
- b.HasIndex("TenantId", "ApplicationName");
-
- b.HasIndex("TenantId", "Identity");
-
- b.HasIndex("TenantId", "UserId");
-
- b.ToTable("AbpSecurityLogs", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("ClientId")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("Device")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("DeviceInfo")
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
-
- b.Property("IpAddresses")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
-
- b.Property("LastAccessed")
- .HasColumnType("datetime(6)");
-
- b.Property("SessionId")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
-
- b.Property("SignedIn")
- .HasColumnType("datetime(6)");
-
- b.Property("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
-
- b.Property("UserId")
- .HasColumnType("char(36)");
-
- b.HasKey("Id");
-
- b.HasIndex("Device");
-
- b.HasIndex("SessionId");
-
- b.HasIndex("TenantId", "UserId");
-
- b.ToTable("AbpSessions", (string)null);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
- {
- b.Property("Id")
- .HasColumnType("char(36)");
-
- b.Property("AccessFailedCount")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasDefaultValue(0)
- .HasColumnName("AccessFailedCount");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("char(36)")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("DeletionTime");
-
- b.Property("Email")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)")
- .HasColumnName("Email");
-
- b.Property("EmailConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("EmailConfirmed");
-
- b.Property("EntityVersion")
- .HasColumnType("int");
-
- b.Property("ExtraProperties")
- .IsRequired()
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsActive")
- .HasColumnType("tinyint(1)")
- .HasColumnName("IsActive");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("IsExternal")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsExternal");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime(6)")
- .HasColumnName("LastModificationTime");
-
- b.Property