Base solution for your next web application

Activities of "AuroraBMS"

Is there other power tools logs available that can be sent?

We are starting a migration to V14 and if we encounter this there our next 3 months of planned projects is out the window.

Hi Another issue,

I have asked other team members now to check their versions, mine that is giving errors is currently on 4.5.1 and the rest which works is on 4.2.0. This is an upgrade related issue it seems and I don't know if there is an option for downgrading?

We are unable to select type Enum, it returns a blank list then the below error.

Below Json structure for generation.

{ "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "InventoryManagement", "EntityName": "StockLevelManagementSetup", "EntityNamePlural": "StockLevelManagementSetups", "TableName": "StockLevelManagementSetups", "PrimaryKeyType": "int", "BaseClass": "FullAuditedEntity", "EntityHistory": true, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "CreateExcelImport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "GenerateOverridableEntity": true, "GenerateUnitTest": true, "GenerateUiTest": true, "GenerateMobile": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "WarehouseGroup", "Type": "StockLevelWarehouseGroups", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "MinimumLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "ReOrderLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "OptimalLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [ { "Namespace": "BRM.MasterData", "ForeignEntityName": "Warehouse", "ForeignEntityNamePlural": "Warehouses", "IdType": "int", "IsNullable": true, "PropertyName": "WarehouseId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "Code" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "BusinessPartner", "ForeignEntityNamePlural": "BusinessPartners", "IdType": "int", "IsNullable": true, "PropertyName": "BusinessPartnerId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "CardCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "BinLocation", "ForeignEntityNamePlural": "BinLocations", "IdType": "int", "IsNullable": true, "PropertyName": "BinLocationId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "BinLocationCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "ItemGroup", "ForeignEntityNamePlural": "ItemGroups", "IdType": "int", "IsNullable": true, "PropertyName": "DivisionItemGroupId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "ItemGroupCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "Warehouse", "ForeignEntityNamePlural": "Warehouses", "IdType": "int", "IsNullable": true, "PropertyName": "SupplyWarehouseId", "DuplicationNumber": 2, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "Code" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "Product", "ForeignEntityNamePlural": "Products", "IdType": "int", "IsNullable": true, "PropertyName": "ProductId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "ProductCode" ] } } ], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [ { "Name": "StockLevelWarehouseGroups", "Namespace": "BRM.InventoryManagement", "EnumProperties": [ { "Name": "TerritoryManagerConsignment", "Value": 1 }, { "Name": "BusinessPartnerConsignment", "Value": 2 }, { "Name": "MainWarehouse", "Value": 3 }, { "Name": "BranchWarehouse", "Value": 4 } ] } ], "DbContext": null }

Version: 12.4 Template: Core Angular

We are trying to regenerate an entity but we are unable complete it without the below error:

This is just a standard base entity that we have generated on another branch before without issues.

Other errors during generation that also occurs:

  1. using references that does not exist (using {project}.Exporting;)
  2. Params being incorrectly generated: maxlength where it should be maxLength
  3. Fk (Nav Props) fields being generated with increment numbers if more than 1 of the same FK is used for different properties.

Is this a known issue that can be resolved as we are unable to regenerate entities now?

Good day,

Version 12.4 Angular Core

This has been something that has been haunting us for a while now and I've been looking for a resolution for a very long time but I can't find anything worth mentioning in terms of string.Format usage that is generate by power tools.

The below is the structure that we are using when generating some navigation properties:

It generates this as part of the query:

.WhereIf(!string.IsNullOrWhiteSpace(input.TaxCodeSetupDisplayPropertyFilter), e => string.Format("{0} ( {1} )", e.TaxCodeSetupFk == null || e.TaxCodeSetupFk.TaxGroupCode == null ? "" : e.TaxCodeSetupFk.TaxGroupCode.ToString() , e.TaxCodeSetupFk == null || e.TaxCodeSetupFk.TaxGroupName == null ? "" : e.TaxCodeSetupFk.TaxGroupName.ToString() ) == input.TaxCodeSetupDisplayPropertyFilter)

As this has been part of the general ASP.NET ZERO releases for a while now I assume I am just missing some kind of package that allows for the translation to actually succeed but I am completely in the dark as to what it could be as string.format is a known linq to entity framework translation issue.

Below the error that is thrown: System.InvalidOperationException: The LINQ expression 'DbSet() .Where(t => __ef_filter__p_0 || !(((ISoftDelete)t).IsDeleted) && __ef_filter__p_1 || ((IMayHaveTenant)t).TenantId == __ef_filter__CurrentTenantId_2) .Where(t => string.Format( format: "{0} ( {1} )", arg0: t.TaxGroupCode, arg1: t.TaxGroupName).Contains(__input_Filter_0))' could not be translated. Additional information: Translation of method 'string.Format' failed. If this method can be mapped to your custom function, see https://go.microsoft.com/fwlink/?linkid=2132413 for more information. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.g__CheckTranslated|15_0(ShapedQueryExpression translated, <&gt;c__DisplayClass15_0&) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.b__0() at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKe...

As this is out of the box functionality in a released version I would assume that the base generated code does not require customizations such as changing to base generated code, ref to: Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'.

any assistance regarding this would be greatly appreciated.

Good day,

We are trying to implement full offline functionality for within controlled work spaces.

PWA seems like the logical route to go and would like to find out if there is any guidance from the ANZ team as to implement it correctly in angular core version.

We are aware of security risks due to offline mode but it will be in a controlled environment which always for the risks to not be an issue for us.

Any information / guidance on PWE offline functionality would be greatly appreciated.

Thanks!

Hi @ismcagdas,

Apologies for the delay. We are on version 11.2.0 currently, are all of the packages on the latest version ivy compatible?

Regards,

Good day,

Will angular ivy be considered going forward at some stage?

Currently quite a few packages that do not support it in aspnetzero angular core side.

Processing legacy "View Engine" libraries:

  • abp-ng2-module [es2015/esm2015] (https://github.com/aspnetboilerplate/abp-ng2-module)
  • ng2-file-upload [es2015/esm2015] ()
  • ngx-image-cropper [es2015/esm2015] (https://github.com/Mawi137/ngx-image-cropper.git)
  • ngx-perfect-scrollbar [es2015/esm2015] (https://github.com/zefoy/ngx-perfect-scrollbar.git)
  • angular2-counto [main/commonjs] (https://github.com/izupet/angular2-counto.git)
  • angular2-text-mask [main/commonjs] (https://github.com/text-mask/text-mask.git) Encourage the library authors to publish an Ivy distribution.

thanks in advance

Hi Ismcagdas,

I've tried different versions, new versions, historical versions and all of them work normally until ELSA is involved.

I've followed the MVC guide, I followed the steps for getting the dashboard up and running on and that is fine, everything works perfectly except for nswag generation for serivce proxies.

I've tried excluding elsa from nswag generation, i've added in filters and it keeps generating the service proxies.

Is there some guidance that you can provide in getting this up and running please. Another part that is also a nightmare now is the api-version being added to all endpoints, if I am not mistaken, this should also be something that should not be occuring due to how aspnetzero does not use version and it should be isolated to elsa only. getFriendProfilePicture(userId: number | undefined, tenantId: number | undefined, **api_version: string **| undefined): Observable<GetProfilePictureOutput> {

Any assistance in getting this up and running on a blank solution will be greatly appreciated.

Project Type: Angular Core Version: 12^

Good day,

We are busy implementing Elsa Integration into our solution and started testing it out on a clean project instance. Elsa integration has been added based on the MVC guide on the site however we are encountering issues on the angular side now due to endpoints being generated via nswag.

Could you please assist with proper steps of how to implement Elsa on aspnetzero angular core. This is a guide that people have requested for several years already and there are bits and pieces of help on the support site but following it only bring the backend online without issues.

below is a portion of the errors encountered by including elsa especially duplications triggered:

Error: src/shared/service-proxies/service-proxies.ts:5444:9 - error TS2322: Type 'Observable<WorkflowInstance | PagedListOfWorkflowInstanceSummaryModel>' is not assignable to type 'Observable<PagedListOfWorkflowInstanceSummaryModel>'. Type 'WorkflowInstance | PagedListOfWorkflowInstanceSummaryModel' is not assignable to type 'PagedListOfWorkflowInstanceSummaryModel'. Type 'WorkflowInstance' is missing the following properties from type 'PagedListOfWorkflowInstanceSummaryModel': items, page, pageSize, totalCount

5444 return this.http.request("get", url_, options_).pipe(observableMergeMap((response : any) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5445 return this.processWorkflowInstancesGet(response_); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 5454 return observableThrow(response) as any as Observable<PagedListOfWorkflowInstanceSummaryModel>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5455 })); ~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5458:15 - error TS2393: Duplicate function implementation.

5458 protected processWorkflowInstancesGet(response: HttpResponseBase): Observable<PagedListOfWorkflowInstanceSummaryModel> { ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5491:5 - error TS2393: Duplicate function implementation.

5491 workflowDefinitionsGet(ids: string | undefined, searchTerm: string | undefined, orderBy: WorkflowDefinitionOrderBy | undefined, sortBy: SortBy | undefined, page: number | undefined, pageSize: number | undefined, version: string | undefined): Observable<PagedListOfWorkflowDefinitionSummaryModel> { ~~~~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5531:9 - error TS2322: Type 'Observable<WorkflowDefinition | PagedListOfWorkflowDefinitionSummaryModel>' is not assignable to type 'Observable<PagedListOfWorkflowDefinitionSummaryModel>'. Type 'WorkflowDefinition | PagedListOfWorkflowDefinitionSummaryModel' is not assignable to type 'PagedListOfWorkflowDefinitionSummaryModel'. Type 'WorkflowDefinition' is missing the following properties from type 'PagedListOfWorkflowDefinitionSummaryModel': items, page, pageSize, totalCount

5531 return this.http.request("get", url_, options_).pipe(observableMergeMap((response : any) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5532 return this.processWorkflowDefinitionsGet(response_); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 5541 return observableThrow(response) as any as Observable<PagedListOfWorkflowDefinitionSummaryModel>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5542 })); ~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5545:15 - error TS2393: Duplicate function implementation.

5545 protected processWorkflowDefinitionsGet(response: HttpResponseBase): Observable<PagedListOfWorkflowDefinitionSummaryModel> { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5784:5 - error TS2393: Duplicate function implementation.

5784 workflowRegistryGet(version: string | undefined): Observable<PagedListOfWorkflowBlueprintSummaryModel> { ~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:5800:9 - error TS2322: Type 'Observable<PagedListOfWorkflowBlueprintModel | PagedListOfWorkflowBlueprintSummaryModel>' is not assignable to type 'Observable<PagedListOfWorkflowBlueprintSummaryModel>'. Type 'PagedListOfWorkflowBlueprintModel | PagedListOfWorkflowBlueprintSummaryModel' is not assignable to type 'PagedListOfWorkflowBlueprintSummaryModel'. Type 'PagedListOfWorkflowBlueprintModel' is not assignable to type 'PagedListOfWorkflowBlueprintSummaryModel'. Types of property 'items' are incompatible. Type 'WorkflowBlueprintModel[]' is not assignable to type 'WorkflowBlueprintSummaryModel[]'. Property 'versionId' is missing in type 'WorkflowBlueprintModel' but required in type 'WorkflowBlueprintSummaryModel'.

5800 return this.http.request("get", url_, options_).pipe(observableMergeMap((response : any) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5801 return this.processWorkflowRegistryGet(response_); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 5810 return observableThrow(response) as any as Observable<PagedListOfWorkflowBlueprintSummaryModel>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5811 })); ~~~~~~~~~~~~

src/shared/service-proxies/service-proxies.ts:40620:5 40620 versionId!: string | undefined; ~~~~~~~~~ 'versionId' is declared here.

Error: src/shared/service-proxies/service-proxies.ts:5814:15 - error TS2393: Duplicate function implementation.

5814 protected processWorkflowRegistryGet(response: HttpResponseBase): Observable<PagedListOfWorkflowBlueprintSummaryModel> { ~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:6486:5 - error TS2393: Duplicate function implementation.

6486 dispatchPost(signalName: string, body: DispatchSignalRequest | undefined): Observable<DispatchSignalResponse> { ~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:6519:15 - error TS2393: Duplicate function implementation.

6519 protected processDispatchPost(response: HttpResponseBase): Observable<DispatchSignalResponse> { ~~~~~~~~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:6602:5 - error TS2393: Duplicate function implementation.

6602 dispatchPost(token: string, api_version: string | undefined): Observable<void> { ~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:6620:9 - error TS2322: Type 'Observable<void | DispatchSignalResponse>' is not assignable to type 'Observable<void>'. Type 'void | DispatchSignalResponse' is not assignable to type 'void'. Type 'DispatchSignalResponse' is not assignable to type 'void'.

6620 return this.http.request("post", url_, options_).pipe(observableMergeMap((response : any) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6621 return this.processDispatchPost(response_); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 6630 return observableThrow(response) as any as Observable<void>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6631 })); ~~~~~~~~~~~~

Error: src/shared/service-proxies/service-proxies.ts:6634:15 - error TS2393: Duplicate function implementation.

6634 protected processDispatchPost(response: HttpResponseBase): Observable<void> { ~~~~~~~~~~~~~~~~~~~

Had the same issue. Downgrading swagger in web.core to 6.2.3 helps currently.

Some possible Related information on this: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2368 https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/2373

Not sure if there is a negative effect with downgrading currently.

Showing 1 to 10 of 79 entries