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?
2023-03-06 10:35:05.297 +01:00 [INF] Request finished HTTP/2 GET https://localhost:44325/connect/authorize?client_id=Checklist_Blazor&redirect_uri=https%3A%2F%2Flocalhost%3A44374%2Fauthentication%2Flogin-callback&response_type=code&scope=openid%20profile%20Checklist%20roles%20email%20phone&state=557c3358d46f43aabc92583e355cee5d&code_challenge=0QsutV1yk838XT5rzNW5mwn1s5VBCMGwCFZCIIVtNrU&code_challenge_method=S256&response_mode=query - - - 302 - - 173.9579ms
2023-03-06 10:35:14.015 +01:00 [INF] Request starting HTTP/2 GET https://localhost:44325/.well-known/openid-configuration - -
This is like a browser problem. Please check the browser request.
hi
Please remove these lines from your Program.cs
file
then see the details logs.
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
I sent you a test class. Please reproduce the problem and share the log. I will continue to analyze the log.
The meeting was closed by zoom because of the time, I will study it for a while, and I will reply you asap.