Base solution for your next web application

Activities of "Pablo"

Hello,

I'm trying to create a many to many relationship.

I would appreciate it if I can be given an example on how to create the DTO objects for Selecting, Editing, Inserting.

I got this far when trying to retrieve data:

            var project = await _projectRepository
                           .GetAll()
                           .Include(p => p.Type)
                           .Include(p => p.Project_Users)
                           .OrderBy(p => p.Id)
                           .ThenBy(p => p.Name)
                           .FirstOrDefaultAsync(x => x.Id == input.Id.Value);
                           

Project_Users is mapped to the Join table.

This is partially working but I can't get the values of the joint table.

I need to get all users releted to a particular project. I tried with this approach but I didn't work:

var project = await _projectRepository .GetAll() .Include(p => p.Type) .Include(p => p.Client) .Include(p => p.Users) .OrderBy(p => p.Id) .ThenBy(p => p.Name) .FirstOrDefaultAsync(x => x.Id == input.Id.Value);

I found this old post which is pretting much what I need, but the file link with examples they talk about is missing: https://support.aspnetzero.com/QA/Questions/9684/Many-to-many-DTO-example-needed

I would appreciate it if I can be refered to an up-to-date example of this senario.

Hi Ismcagdas,

Thank you very much for sharing that with me. It helps a lot.

Thanks for your great support.

Hello,

I'm still new to this great framework. I'm using the latest version of ASP.net Zero and by following the tutorials I managed to create most of the CRUD components of the API. However, I'm a bit confused about how to create the API to retrieve a single record by ID. I couldn't find an example of this in the documentation. I tried to read other external documents but most point to using a controller, but in ASP.net Zero, I understand Application Services are used along with DTO's.

I would appreciate it if you can point me in the right direction on how I can achieve the above. An actual example would be really helpfull.

Thanks in advance!

Answer

Hi,

Thanks for your response.

I tried follow that link but it seems to be broken.

Regards,

Hi @ismcagdas,

Thanks for your response and for the link. I'll have a look.

I tried to follow the Asp.net Zero documentation but noticed that the first step says:

First, create a class named FileUploadViewModel in *.Web.Host\Areas\AppAreaName\Models folder. This class will be used to transfer additional parameters during the upload process.

I couldn't find the "Areas" folder. Could you pelase indicate the path I'm supposed to create that class on the newer version?

Thanks in advance.

Question

Hello,

I've been trying to read through the documents about File Upload functionality. I came across this doc: https://docs.aspnetzero.com/en/aspnet-core-angular/v11.0.0/Core-Angular-File-Upload-Tutorial

However, this document is not for the latest version. The latest version does not seem to include the File Upload tutorial. I tried implementing this functionality using the outdated documentation, but the folder structure is quite different.

I would appreciate it if you could point me to the correct documentation.

Kind regards,

PS: I would like to be able to upload files to Azure Blob. If there is some documentation on this it would be highly appreciated.

Hello,

I'm following this totorial: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Deleting-Person and I'm having an issue with the SweetAlert component on the following method:


deletePerson(person: PersonListDto): void { this.message.confirm( this.l('AreYouSureToDeleteThePerson', person.name), isConfirmed => { if (isConfirmed) { this._personService.deletePerson(person.id).subscribe(() => { this.notify.info(this.l('SuccessfullyDeleted')); _remove(this.people, person); }); } } ); }


"IsConfirmed =>" shows an error in VisualStudio Code and the app won't compile. The error I see reads:

Argument of type '(isConfirmed: any) => void' is not assignable to parameter of type 'string'.

I would appreciate it if you can point me in the right direction as I've been unable to fix this issue.

Kind regards,

Hi Ismail, Thanks for your resposne.

Yes, I was refering to the video tutorial on Udemy. This tutorial is featured at the begining of the docs: https://docs.aspnetzero.com/en/aspnet-core-angular/latest

However, the code I've used is same as from the written documents. I'm still having issues displaying the correct css styles. I noticed you use classes containing "kt" as for example: "kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor". This classes don't seem to be working on my app.

Could you please let me know what library this KT classe are linked to?

Thanks in advance for your response.

PS. I've attached an screenshot of the issue.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? API: v11.2.0 | Client: v11.2.0 [20220610]
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

If issue is about UI

  • Which theme are you using? Default, Metronic 8
  • What are the theme settings? No custom settings applied

Hello, I am very new to the Asp.net Zero framework and I'm currently going through the tutorials (video on Udemy and from the docs) to get my head around things.

I followed both the docs and the instructions from the video, which by the way seem to be outdated, making it a bit hard to follow along as the code used in each version seems to be different.

I got to the point where I can render the list in Angular View as per this document: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Using-GetPeople-Method-from-Angular

However, my list does not have any styles applied to it - it shows only a grey background with the text rendered on top. I can't see the white card or the list styles. I noticed that the classes used in the video tutorial are different to the ones in the docs.

I would appreciate your help with this.

Also, as said, I'm very new using this framework, and I couldn't see any docs on what is used for grid, styling and UI components. Eg. is it Bootstrap? Or Angular Components? I would like to be consistent with the styles already used in other Components but can't figure it out.

Thanks in advance for your assistance :)

Showing 1 to 9 of 9 entries