I opened a new bug report at <a class="postlink" href="https://github.com/valor-software/ngx-bootstrap/issues/4278">https://github.com/valor-software/ngx-b ... ssues/4278</a>
@ alper, I did, thanks, it hides content but not tab header itself.
@ ismcagdas - I was thinking just source control templates, not the code generation part. Thanks for your support.
Yes, I figured that I did not update templates. I dd a full folder copy for RAD tool but some reason it did not come through. Consider putting those templates under version control so changes can be tracked.
Mystery, I installed v.5.3 and 1.4 rad tool on different computer and generates different code for GetAll.
As you can see, it creates filter first.
Both places say that v1.4 installed. I guess VS2017 I have have an issue with caching older version of the tool. You might want to look into it, as I move DLL files into dir, and did update on the tool, insted of reinstalling it.
public async Task<PagedResultDto<GetMyTestForView>> GetAll(GetAllMyTestsInput input) {
var filteredMyTests = _myTestRepository.GetAll()
.WhereIf(!string.IsNullOrWhiteSpace(input.Filter), e => false || e.Name.Contains(input.Filter) || e.Description.Contains(input.Filter))
.WhereIf(!string.IsNullOrWhiteSpace(input.NameFilter), e => e.Name.ToLower() == input.NameFilter.ToLower().Trim())
.WhereIf(!string.IsNullOrWhiteSpace(input.DescriptionFilter), e => e.Description.ToLower() == input.DescriptionFilter.ToLower().Trim());
var query = (from o in filteredMyTests
select new GetMyTestForView() { MyTest = ObjectMapper.Map<MyTestDto>(o)
})
;
var totalCount = await query.CountAsync();
var myTests = await query
.OrderBy(input.Sorting ?? "myTest.id asc")
.PageBy(input)
.ToListAsync();
return new PagedResultDto<GetMyTestForView>(
totalCount,
myTests
);
}
I am using v 5.3 and still has the code which fails if query does not find anything. See
public async Task<PagedResultDto<GetAll{{Entity_Name_Plural_Here}}Output>> GetAll(GetAll{{Entity_Name_Plural_Here}}Input input)
{
var query = (from o in _{{entity_Name_Here}}Repository.GetAll()
{{NP_Looped_Query_Join_Here}}
select new GetAll{{Entity_Name_Plural_Here}}Output() { {{Entity_Name_Here}} = ObjectMapper.Map<{{Entity_Name_Here}}Dto>(o)
{{NP_Looped_Map_Join_Here}}
})
.WhereIf(
!string.IsNullOrWhiteSpace(input.Filter),
e => false {{Property_Looped_Template_Here}}
);
var totalCount = await query.CountAsync();
var {{entity_Name_Plural_Here}} = await query
.OrderBy(input.Sorting ?? "{{entity_Name_Here}}.id asc")
.PageBy(input)
.ToListAsync();
return new PagedResultDto<GetAll{{Entity_Name_Plural_Here}}Output>(
totalCount,
{{entity_Name_Plural_Here}}
);
}
Nop, suggestion in the issue did not solve it. also there is not way to know which version of the RAD tool I am using
UI would treat them differently, warning vs error.
they work for me, you need to be logged in and I guess approved to view posts in this forum by admin
Like I said, I used to get all messages that are posted to forum as I subscribed to it. No more!
Here are my preference again: <a class="postlink" href="https://gyazo.com/d50bd957b55017392473f7baf2e1db72">https://gyazo.com/d50bd957b55017392473f7baf2e1db72</a>
I checked spam, aspnetboilerplate.com in my contacts so it comes to inbox.
Subscribe to forum does not work for me.