Base solution for your next web application

Activities of "jtallon"

Answer

Thanks, We're using aspnetzero . I ended up placing the Dtos in that shared project as it made most sense. Thank you.

From my understanding of the documents, a new Dto is needed for each entity we want to cache. Is that correct?

Question

Hi, Is there any more information regarding caching with Redis? I'm following this guide here but there is no information on what layers they dtos etc should live https://aspnetboilerplate.com/Pages/Documents/v2.0.0/Caching

Any help appreciated.

Hi Team,

We are about to kick start a major upgrade of a project which is using the older ASPNETZERO Package to the latest version which supports .NET 6, but with .NET 7 released the team is curious how soon a version of ASPNETZERO is planned which is based on .NET 7.

Can you give us a concrete idea about the estimated timeline, I can see ABP is already working on a .NET 7 RC version which is good for other project where we are using ABP but need a clarity on this project as well.

Regards, Ali Storm

We now inherit from an out of the box class like this and migrations adds Discriminator column and RoleId which makes sense now because when we look at ef query generated with our extended repo it adds this on the query

Adding [NotMapped] Public string Discriminator {get; set;} gives the correct migration... but is that ok?

  • What is your product version? 10.2.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net Core

I'm trying to add a single column (RoleId) to UserOrganizationUnit I've created a class public class OrganizationUnitRole_Extended : UserOrganizationUnit { public virtual Role Role { get; set; } public int RoleId { get; set; } }

I've added it to the dbcontext public virtual DbSet<OrganizationUnitRole_Extended> OrganizationUnitRole_Extended { get; set; }

However my migrations add in a discriminator column.

Is there any way to avoid this? I've read that fluent api could resolve it but I haven't figured out how to do it properly.

Thanks for this @ismcagdas , If we were to integrate the fix into our own application , would it be the changes made to AppPreBootstrap.ts ?

What is your product version? 10.2.0 What is your product type? Angular What is product framework type? .net core

I created a simple interface IWorkerInterface where I use a Dto which exists in my service-proxies.

export class UserLookupTableDto implements IUserLookupTableDto

However in VS Code when I go to import that type it tells me "Cannot find name 'UserLookupTableDto'.ts(2304)'

A workaround is to go to another ts file an import the new IWorkerInterface. Once this is done I can successfully fix the import import { UserLookupTableDto } from "@shared/service-proxies/service-proxies";

Can you think of any reason why this might happen? I've run "Restart TS Server" and I've done a bunch of refresh.bat and I've also restarted my machine...

I resolved the problem by creating a method to add/update/remove the list of items manually. GraphDiff looks interesting.

  • What is your product version? 10.2.0
  • What is your product type? Angular
  • What is product framework type? .net core

I have a parent entity with a list of child objects. On the UI I load up the parent screen with a list of child objects. I edit one of the child objects attributes. I call createOrUpdate on the parent object and pass everything correctly to the API.

I call parentRepository.GetAllIncluding(x=>x.children).FirstOrDefault( s=>s.Id == input.Id.Value);

I also call: ObjectMapper.Map(input, parentObject); var children = new List<LinkedChildren>(); ObjectMapper.Map(input.Children, children); parentObject.Children = children; await parentRepository.UpdateAsync(parentObject);

The Parent entity has public virtual List<LinkedChildren> Children { get; set; }

The Child entity has [Table("Children")] public class Children : FullAuditedEntity<Guid> { [Required] public virtual int ParentId { get; set; } [ForeignKey("ParentId")] public virtual Parent Parent { get; set; }

I can create the children however when I save after that the children become IsDeleted = 1

Showing 1 to 10 of 86 entries