Activities of "hayrettinbebek@gmail.com"

  • ABP Framework version: v9.0.4
  • UI Type: Blazor Server
  • Database System: EF Core (PostgreSQL)

We cannot write a query like “var list = await context.Products.Include(x=> x.VariantCards).ToListAsync();”.

When we want to use include in list retrieval, we realized that there are no connections in the entity class opened by abp studio. I want to go through the example to make the problem more understandable.

I have 2 tables in the form of Product and VariantCard. There is a 1-n relationship between these tables. Product has multiple VariantCards and VariantCard has one Product.

But in the entity class opened by Abp Studio, there is no VariantCard list in Product. Because of this, a code like “var list = await context.Products.Include(x=> x.VariantCards).ToListAsync();” cannot be written. Because there are no “VariantCards”.

Even if you manually add “ICollection<VariantCard> VariantCard” to the Product class, you still cannot use the Include query because this connection is not specified in the settings in the context class of the project. You also need to add to the context class.

In my Repository class, I need to make a lot of manual additions and follow them to write “var list = await context.Products.Include(x=> x.VariantCards).ToListAsync();”. Moreover, when I update a class using abp studio's interface, the changes I made in the context class are deleted. This is a big problem.

Is there an easy way to make a query like this? We want to be able to use the query “var list = await context.Products.Include(x=> x.VariantCards).ToListAsync();”.

Showing 1 to 1 of 1 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.