Check if you have this change: https://github.com/aspnetzero/aspnet-zero-core/commit/a8fb4d897c6570183b6b932b064953c2bcede4c9
Is there a way to add a screenshot here?
You can click on Upload attachment below the Submit button. It's a problem of imgur.com — e.g. github.com images work.
GetAllIncluding is single-level. To include nested relationships, add using Microsoft.EntityFrameworkCore; and do:
var output = from p in
(_productRepo.GetAllIncluding(
// ...
// p => p.ProductApprovals // Comment out this line
// ...
).Include(p => p.ProductApprovals) // Include relationship
.ThenInclude(pa => pa.Approver1) // ThenInclude nested relationship
.ToList())
where Filter.FilterUtil.FilterForGetProduct(p, input)
select p;
You can run SQL Server Profiler.
But I don't really want it as an entire different object. I would like to just add 1 column basically to the OrganizationUnit.
That's not possible. What's wrong with having a different object?
I saw the note in the documentation below but I didn't really understand what to do with the OnModelCreating.
That's no longer necessary as of ABP v3.2.0. I just created a PR to remove that note.
Did you try what I suggested?
Try setting a default value explicitly:
public class FetchTestInput: PagedAndSortedInputDto, IShouldNormalize
{
public int TestLevel { get; set; } = 0;
public int CodeType { get; set; } = 0;
// ...
}
Can you find where ClassificationLevel and CodeType appears in your project?