Activities of "onder"

FileName is Currency.json

{
  "Id": "9556cd56-a4f3-4874-b13d-56024dec9f39",
  "Name": "Currency",
  "OriginalName": "Currency",
  "NamePlural": "Currencies",
  "DatabaseTableName": "Currencies",
  "Namespace": "Currencies",
  "Type": 1,
  "MasterEntityName": null,
  "MasterEntity": null,
  "BaseClass": "FullAuditedAggregateRoot",
  "PageTitle": "Currencies",
  "MenuIcon": "file-alt",
  "PrimaryKeyType": "Guid",
  "PreserveCustomCode": false,
  "IsMultiTenant": false,
  "CheckConcurrency": true,
  "BulkDeleteEnabled": true,
  "ShouldCreateUserInterface": true,
  "ShouldCreateBackend": true,
  "ShouldExportExcel": true,
  "ShouldAddMigration": true,
  "ShouldUpdateDatabase": true,
  "CreateTests": false,
  "Properties": [
    {
      "Id": "ea05d629-e5c0-439e-889d-ceaeb6cd172c",
      "Name": "Name",
      "Type": "string",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "DefaultValue": null,
      "IsNullable": false,
      "IsRequired": false,
      "IsFilterable": true,
      "AllowEmptyStrings": false,
      "IsTextArea": false,
      "MinLength": null,
      "MaxLength": null,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "ShowOnList": true,
      "ShowOnCreateModal": true,
      "ShowOnEditModal": true,
      "ReadonlyOnEditModal": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    },
    {
      "Id": "1b7e8259-bb53-40e4-ae98-4ba3c25f4114",
      "Name": "Code",
      "Type": "string",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "DefaultValue": null,
      "IsNullable": false,
      "IsRequired": false,
      "IsFilterable": true,
      "AllowEmptyStrings": false,
      "IsTextArea": false,
      "MinLength": null,
      "MaxLength": null,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "ShowOnList": true,
      "ShowOnCreateModal": true,
      "ShowOnEditModal": true,
      "ReadonlyOnEditModal": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    },
    {
      "Id": "b349093d-2bf9-4036-a6c4-7a10a39834ca",
      "Name": "Symbol",
      "Type": "string",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "DefaultValue": null,
      "IsNullable": false,
      "IsRequired": false,
      "IsFilterable": true,
      "AllowEmptyStrings": false,
      "IsTextArea": false,
      "MinLength": null,
      "MaxLength": 10,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "ShowOnList": true,
      "ShowOnCreateModal": true,
      "ShowOnEditModal": true,
      "ReadonlyOnEditModal": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    }
  ],
  "NavigationProperties": [],
  "NavigationConnections": [],
  "ChildEntities": [],
  "PhysicalFileName": "Currency.json"
}
  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello,

I was trying to add Currencies table(Id-guid, Name-string) by using abp suite Before generation, I applied service proxy generation by executing "abp generate-proxy -t ng" After I generate, I see that the migration is successfull on page, I checked the back-end project and database side it corrects, but in angular side, there is no changes When I looked for suite logs, I realised the error part(Unexpected token 'for'), I couldn't analyzed it, I've shared below

Thanks for answering. it's solved the issue, but last thing is that I want to get entitychanges info that includes username property so I've tried

var entityChangeQueryable = (await _auditLogRepository.GetDbContextAsync()).Set<EntityChangeWithUsername>().AsQueryable();

but "EntityChangeWithUsername" entity didn't work, how can I use it?

Hello,

As you see the picture above;

  • In the first green mark, it shows that Volo.Abp.AuditLogging.IAuditLogRepository has GetQueryableAsync method due to that IReadOnlyRepository interface is inheriting. Everything is OK in this part.
  • But, in the second mark, I need the IQueryable method that returns all entity change list. AuditLogRepository doesn't provide that.
  • in the last mark, I need also the IQueryable method that returns all security logs. To do that, we have SecurityLogRepository in the Volo.Abp.Identity assembly. But IReadOnlyRepository interface is not inheriting from the Volo.Abp.Identity.IIdentitySecurityLogRepository interface, that is why we dont use the GetQueryableAsync method

The affected database tables are; AbpEntityChanges, AbpEntityPropertyChanges, AbpSecurityLogs.

Could you help me solve this IQueryable implementation issue? Thanks in advance.

<br>

  • ABP Framework version: 8.2.0
  • UI Type: Angular /
  • Database System: PostgreSQL
Showing 1 to 4 of 4 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11