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.
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!
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,
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
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 :)