Base solution for your next web application

Activities of "robdocherty"

Hi, in your step-by-step example, you add the Phone entity to the GetPeople DTO to retrieve each person and their phone numbers. Suppose each person has 10 phone numbers and you wanted to sort that list by Phone Number to make it easier to read (sort by detail entity of master-detail), how can this be done? It seems like EF/LINQ may not support this. If so, how to sort the DTO prior to returning it from the appservice? see below in red. thanks.

public ListResultDto<PersonListDto> GetPeople(GetPeopleInput input) { var persons = _personRepository .GetAll() .Include(p => p.Phones) .WhereIf( !input.Filter.IsNullOrEmpty(), p => p.Name.Contains(input.Filter) || p.Surname.Contains(input.Filter) || p.EmailAddress.Contains(input.Filter) ) .OrderBy(p => p.Name) .ThenBy(p => p.Surname) <span style="color:#FF0000">.ThenBy(p => p.Phones.Number) // ideally you would do this</span> .ToList();

return new ListResultDto&lt;PersonListDto&gt;(persons.MapTo&lt;List&lt;PersonListDto&gt;>());

}

When I first installed zero it was working fine and i was able to go through the step by step development guide and get the sample screen working. Later on, I had some issues adding new data access screens to the angular app so i removed both apps and went back to the original download. The app works OK but I cannot get anything new to work. I get the same error on the console every time and it's driving me nuts. To confirm, the standard admin pages are all working fine. However I can't get even the simple Phonebook page to load.. The error is always like per below. Can anyone help? rob

EXCEPTION: Uncaught (in promise): Error: DI Error Error: DI Error at NoProviderError.ZoneAwareError (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:6205:33">http://localhost:4200/polyfills.bundle.js:6205:33</a>) at NoProviderError.BaseError [as constructor] (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:37836:16">http://localhost:4200/vendor.bundle.js:37836:16</a>) at NoProviderError.AbstractProviderError [as constructor] (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:91873:16">http://localhost:4200/vendor.bundle.js:91873:16</a>) at new NoProviderError (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:91935:16">http://localhost:4200/vendor.bundle.js:91935:16</a>) at ReflectiveInjector_.throwOrNull (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129897:19">http://localhost:4200/vendor.bundle.js:129897:19</a>) at ReflectiveInjector.getByKeyDefault (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129936:25">http://localhost:4200/vendor.bundle.js:129936:25</a>) at ReflectiveInjector.getByKey (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129868:25">http://localhost:4200/vendor.bundle.js:129868:25</a>) at ReflectiveInjector.get (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129737:21">http://localhost:4200/vendor.bundle.js:129737:21</a>) at RootModuleInjector.NgModuleInjector.get (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:92809:52">http://localhost:4200/vendor.bundle.js:92809:52</a>) at CompiledTemplate.proxyViewClass.AppView.injectorGet (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:130672:45">http://localhost:4200/vendor.bundle.js:130672:45</a>) at CompiledTemplate.proxyViewClass.DebugAppView.injectorGet (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:131100:49">http://localhost:4200/vendor.bundle.js:131100:49</a>) at ElementInjector.get (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:130176:27">http://localhost:4200/vendor.bundle.js:130176:27</a>) at ReflectiveInjector_.getByKeyDefault (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129933:24">http://localhost:4200/vendor.bundle.js:129933:24</a>) at ReflectiveInjector.getByKey (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129868:25">http://localhost:4200/vendor.bundle.js:129868:25</a>) at ReflectiveInjector.get (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:129737:21">http://localhost:4200/vendor.bundle.js:129737:21</a>)

Hi there I'm getting the "An internal error occurred during your request!" popup from the Angular 2 app whenever I run it against either of the two available social logins using the latest build. When I first purchased the product a few weeks ago, this was working OK (or it was working with the asp boilerplate download - cant remember which but definitely was not an issue with my fb setup) but seems not to be working on the latest build. Are you able to check this please? How can we troubleshoot this issue? Also, on the facebook auth settings should the site URL be <a class="postlink" href="http://localhost:22742/">http://localhost:22742/</a> or <a class="postlink" href="http://localhost:4200/">http://localhost:4200/</a>? ie, is the angular app making the facebook request or the .core app? Thanks

Hi, do you have sample code to implement the ACTIONS drop down within the JTable grid for Angular 2? This would be per shown on the Angular2 demo (but not in the download): <a class="postlink" href="http://xyz.demo.aspnetzero.com/Application#!/roles">http://xyz.demo.aspnetzero.com/Application#!/roles</a>

If this example is using angular's ui grid then maybe that sample code would be useful? thanks rob

Showing 1 to 4 of 4 entries