Hi, I apologize for the complexity of my question. I want to add ScreenUrl and UserId to ExtraProperties of EntityChanges (currently only possible to store in the ExtraProperties of AuditLogs), and I would like to be able to retrieve more than 1000 records because the current MaxResultCount limit is 1000.
hi
Can you create a new template project?
The project you shared uses the
DevExpress
and database migrations are incorrect.Thanks.
I have updated the new version for the source link. I have also tested running the migration again, and it is working fine. Please review it again. Thanks.
Hi maliming,
I have sent you an email, please check and assist me. Thanks.
Hi Anjali,
Thank you for the information. It worked! Could you please tell me how to get and set the values for ExtraProperties in the FMFileDescriptor table of the File Management Module? I want to use FMFileDescriptor to store additional properties like DocId and Url, which are intended for managing the saving and retrieval of multiple images for a page.
Here is the code I'm using to upload files and save the images:
private CreateFileInputWithStream EditingImageFile { get; set; }
private async Task OnFileSelection(InputFileChangeEventArgs e)
{
var files = e.GetMultipleFiles();
foreach (var file in files)
{
var resizedFile = await file.RequestImageFileAsync(file.ContentType, 500, 500);
var buffers = new byte[resizedFile.Size];
string imageType = resizedFile.ContentType;
using (var stream = resizedFile.OpenReadStream())
{
await stream.ReadAsync(buffers);
}
EditingImageFile = new CreateFileInputWithStream
{
Name = resizedFile.Name,
File = new RemoteStreamContent(
stream: new MemoryStream(buffers),
fileName: resizedFile.Name,
contentType: imageType,
disposeStream: true
)
};
var image = await FileDescriptorsAppService.CreateAsync(directoryId, EditingImageFile);
await GetFileContent();
await OnImageUploaded.InvokeAsync(image.Id);
StateHasChanged();
}
}
TemplateType: Module Template (ABP Suite)
UI Type: Blazor WASM
Database System: EF Core (PostgreSQL)