Starts in:
1 DAY
10 HRS
2 MIN
54 SEC
Starts in:
1 D
10 H
2 M
54 S

Activities of "agilmore"

I had commented out the code in the SolutionMenuContributor , GetFirstProjectAsync method.

Did you uncomment it before you tested. SolutionMenuContributor still doesn't work for me, although the test class does. This is the issue.

I've sent you a project. The class that has the issue is SolutionMenuContributor in the Blazor project. The test class/method is ProjectApplicationTests class GetListAsyncForSltn method in the Datansa.App.Application.Tests project.

Hi.

Yes that worked. So the issue was, in the Test class there was no ambient UOW, as there would be in an ApplicationService class.

Thanks for your help.

I've sent the project by email.

By the way, the Test class that contains the Test method is "EntityInstanceManager_Tests" in the Datansa.App.Domain.Tests project under the "Solution" folder.

Is there a way to provide my Project privately ?

Ok, Thanks very much for your help.

Ok.

I made the change and it worked.

Just to clarify.

  1. I only need to add the EfCoreQuerableExtensions because EF is using SQLite in Test mode ?
  2. Or, EfCoreQuerableExtensions need to be configured for SQL Server in Production as well ?

Thanks - Adam

I haven't.

The Abp framework EF documentations says GetAsync will include details as default. Does that not work for Sqlite? Or does it have to be configuredevery time? That would be a good addition to your documentation.

Hi.

Thanks, that fixed the issue.

A supplementary question, does the SQlite EF Core Context used by the test framework support the IncludeDetails=true.

In my code above foreach(var templateBranch in template.Branches), Branches returns null.

Branches are added in a seeding class, which worked for SQL Server.

Showing 11 to 19 of 19 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06