hi
Please try that.
https://support.abp.io/QA/Questions/2176/Regarding-Unit-test-issue#answer-a0b36b39-5bdd-3259-a49e-3a005ca3118c
Please compare the performance after applying the changes. Thanks
hi
You can do some changes by https://github.com/abpframework/abp/pull/15892
the IdentityLinkUserAppService.cs file I sent by mail.
https://github.com/abpframework/abp/pull/15891
hi
Can I reproduce this on your https://github.com/balessi75/FM.Test project?
hi
How to reproduce the issue?
i think i got it.
https://us05web.zoom.us/j/84760919308?pwd=NndUeVhmSlBJL3ZIdk91dWdsSkg3UT09
hi
I sent the new class.
hi
Can you reproduce it with a brand-new template project?
Can I reproduce it with your project on my local?
hi
I suggest you understand these 4 entities from the code first.
builder.Entity<DatabaseBlobContainer>(b =>
{
b.ToTable(AbpBlobStoringDatabaseDbProperties.DbTablePrefix + "BlobContainers", AbpBlobStoringDatabaseDbProperties.DbSchema);
b.ConfigureByConvention();
b.Property(p => p.Name).IsRequired().HasMaxLength(DatabaseContainerConsts.MaxNameLength);
b.HasMany<DatabaseBlob>().WithOne().HasForeignKey(p => p.ContainerId);
b.HasIndex(x => new { x.TenantId, x.Name });
b.ApplyObjectExtensionMappings();
});
builder.Entity<DatabaseBlob>(b =>
{
b.ToTable(AbpBlobStoringDatabaseDbProperties.DbTablePrefix + "Blobs", AbpBlobStoringDatabaseDbProperties.DbSchema);
b.ConfigureByConvention();
b.Property(p => p.ContainerId).IsRequired(); //TODO: Foreign key!
b.Property(p => p.Name).IsRequired().HasMaxLength(DatabaseBlobConsts.MaxNameLength);
b.Property(p => p.Content).HasMaxLength(DatabaseBlobConsts.MaxContentLength);
b.HasOne<DatabaseBlobContainer>().WithMany().HasForeignKey(p => p.ContainerId);
b.HasIndex(x => new { x.TenantId, x.ContainerId, x.Name });
b.ApplyObjectExtensionMappings();
});
builder.Entity<DirectoryDescriptor>(b =>
{
b.ToTable(FileManagementDbProperties.DbTablePrefix + "DirectoryDescriptors", FileManagementDbProperties.DbSchema);
b.ConfigureByConvention();
b.Property(p => p.Name).IsRequired().HasMaxLength(DirectoryDescriptorConsts.MaxNameLength);
b.HasMany<DirectoryDescriptor>().WithOne().HasForeignKey(p => p.ParentId);
b.HasOne<DirectoryDescriptor>().WithMany().HasForeignKey(p => p.ParentId);
b.HasMany<FileDescriptor>().WithOne().HasForeignKey(p => p.DirectoryId);
b.HasIndex(x => new { x.TenantId, x.ParentId, x.Name });
b.ApplyObjectExtensionMappings();
});
builder.Entity<FileDescriptor>(b =>
{
b.ToTable(FileManagementDbProperties.DbTablePrefix + "FileDescriptors", FileManagementDbProperties.DbSchema);
b.ConfigureByConvention();
b.Property(p => p.Name).IsRequired().HasMaxLength(FileDescriptorConsts.MaxNameLength);
b.Property(p => p.MimeType).IsRequired().HasMaxLength(FileDescriptorConsts.MaxMimeTypeLength);
b.Property(p => p.Size).IsRequired().HasMaxLength(FileDescriptorConsts.MaxSizeLength);
b.HasOne<DirectoryDescriptor>().WithMany().HasForeignKey(p => p.DirectoryId);
b.HasIndex(x => new { x.TenantId, x.DirectoryId, x.Name });
b.ApplyObjectExtensionMappings();
});
In addition, we cannot convert data from IDirectoryDescriptorAppService with getqueryable. Can you help me with this issue?
Do you mean that repository cannot call this method? Which repository interface?