Base solution for your next web application

Activities of "kpmg"

Hi,

For an actual project we want to modify and extend the frontend .html/.ts files which are generated with the help of the VS "Create an Entity"-Plugin.

Unfortunately the Entities will change in the future.

I think the backend should not be a problem, because it generates Micration classes. But in the frontend it just delete the files?

What is the recommended way to avoid loosing modifications, if we want to use the "Re-generate an Entity" for this? Like I have seen it would completely remove all the change which are done in the corresponding files?

I thought about using a git-repository to merge the old changes and the new generated files.. but I think there should be easier/better ways to do it?

Regards

When extending tables in the database and trying to regenerate or update existing entities, columns with phrase ID and any type except numeric are skipped by the generator.

Example of table with GUID columns:

[Table(nameof(Company))]
    public partial class Company : AuditedEntity, IMayHaveTenant, ISoftDelete
    {
        public int? TenantId { get; set; }

        public bool IsDeleted { get; set; }

    }

    public partial class Company
    {
        [Column("companyGUID")]
        public Guid CompanyGuid { get; set; }

        [Column("name")]
        [StringLength(255)]
        public string Name { get; set; }

... other columns

        [Column("hierarchicalFatherGUID")]
        public Guid? HierarchicalFatherGuid { get; set; }

        [Column("taxGroupFatherGUID")]
        public Guid? TaxGroupFatherGuid { get; set; }

        [Column("isTaxGroupHead")]
        public bool? IsTaxGroupHead { get; set; }

    }

When opening 'Load Entity From Database' GUID columns are not detected. Hence created entities and services do not inlcude GUID columns and would overwrite valid entities. To avoid this we manually update entities with dotnet ef tool. We work around this by manually editing Company.json in directory \aspnet-core\AspNetZeroRadTool and then regenerate services and views.

Can you fix this soon?

Thanks a lot!

hello @yelkalkan, thanks for this hint.

We also discovered that GUID columns must be omitted for filtering because they are always read in the GetAll call by input.guidName.ToString(). It would be nice if the generator UI would provide more documentation about that. Of course we will exclude the GUID / uniqueidentifier columns from filtering DTOs.

Hi,

i wanted to use pTable in a modal bootstrap dialog.

I used the asp.net zero powertool to generate main components.

In the create or edit modal component i added the p-table from primeNg but no styles are applied to the table.

I have added the class 'primeng-datatable-container' to p-table tag as a workaround.

thx for your help

that is the workaround.

i compared my code with the generated one from the main page with the p-table for an entity and realized that this also wrapped with a div and the primeng-datatable-container class.

Shouldn't the styles be applied automatically, like in the showcase of primeng [https://www.primefaces.org/primeng/#/table]) ?

Hello,

i generated crud operations with the asp.net zero tool for an entity. The modal dialog is to small for creating and editing my entity. So i decided to create a new component and navigate with a routerLink to it. The navigation works, but the opened dropdown stays in the dom of the page until a complete pagereload is done.

<a [routerLink]="exampleRoute" [queryParams]="exampleParams">
                 Do Something
</a>

as a workaround i added this the function

closeDropdown(event) {
        $(event.target).closest('.dropdown-menu').remove();
    }

and changed the link to:

<a (click)="closeDropdown($event)" [routerLink]="exampleRoute" [queryParams]="exampleParams">
                 Do Something
</a>

is this a bug or am i missing something in the routerlink?

thank you

The link is broken

i am logged in

Do i need to login to git with the same email address, as the account for this forum?

thank you,

i e-mailed my development manager to add me to this list. when i have access i will have a look at the linked issue

best regards

Showing 1 to 10 of 43 entries