Hello,
While implementing my entities on my asp.net zero project (angular 2), I'm facing following issue. I have two entities AccountingCode and VatCode. VatCode has a reference to AccountingCode (I took your step-by-step document has an example)
When I try the following applicationservice method, it works great :
public async Task<PagedResultDto<VatCodeListDto>> GetVatCodes(GetVatCodesInput input)
{
var vatCodes = _vatCodeRepository
.GetAll()
.Include(p=>p.AccountingCode)
.WhereIf(
!input.Filter.IsNullOrEmpty(),
p => p.Description.Contains(input.Filter) ||
p.Code.Contains(input.Filter)
);
var resultCount = await vatCodes.CountAsync();
var results = await vatCodes
.OrderBy(input.Sorting)
.PageBy(input)
.ToListAsync();
var eventTypeListDtos = results.MapTo<List<VatCodeListDto>>();
return new PagedResultDto<VatCodeListDto>(resultCount, eventTypeListDtos);
}
AccountingCode entity is added to the result without lazy loading by adding the line : .Include(p=>p.AccountingCode)
The problem is when I delete an element from AcountingCode table that was linked to a VatCode element. In that case, the previous query removes all vatcode elements that where linked to the deleted AccountingCode element => but they are still in the database.
If I remove the line .Include(p=>p.AccountingCode), it works fine : all VatCode elements are sent to the client (with no AccountingCode linked to it).
Do you know how to proceed in order to keep Include method in the query (and avoid lazy loading) ?
Hi,
I'm currently adding the calendar component from Metronic theme. The component is FullCalendar for Angular2. The component works fine but I have some issues to add localization. I linked component "locale" property to the current abp language. This also works, no problem here.
But, only month translations are being translated. Time format and component labels are not changed (cf screenshot).
From FullCalendar documentation [https://fullcalendar.io/docs/text/locale/]), I added this line to angular-cli : "../node_modules/fullcalendar/dist/locale-all.js"
This leads to following error : Uncaught TypeError: Cannot read property 'datepickerLocale' of undefined
I also tried to add datepicker and jqui-datepicker components as mentioned in the documentation, another error is thrown : Uncaught ReferenceError: Ember is not defined
Is it the loading script order that is wrong ? (as it is suggested in fullcalendar doc)
Hi,
I would like to update my current ASPNETZERO project to ASPNETZERO v3.1. I've updated my ABP nuget packages but some interesting buggs have been corrected on ASPNETZERO v3.1 that I would like to integrate.
What is you advice to do that ? Tks