Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "BlueBrackets"

I have the same issue, using npm on a Windows 10 machine. The file 'ion.rangeSlider.skinFlat.css' doesn't exist in the package. By removing it from the bundle-config.json and the package-mapping-config.js it was solved.

Answer

The validator class should be public, but the other thing is that the validator class should be placed in solutionname.Application project instead of the solutionname.Application.Shared where the dto's are located.

After moving the validator class and making it public the validation is working, thanks for your help.

I've removed my migration scripts, updated the snapshot file and removed my entities from the database. On my entities I've implemented ISoftDelete instead of and queryfilter with fluid. I've created a migration, updated the database and everything is working as expected.

Issue is solved.

The tenantId in the created records match the tenantId of the tentant creating the record.

When I run SQL Server profiler the following query is created (2 reference properties where not shown in the class definition in my previous message).

And it is missing the tenantid

SELECT COUNT(*)
FROM [Countries] AS [e]
LEFT JOIN (
    SELECT [e0].*
    FROM [TenantLanguages] AS [e0]
    WHERE [e0].[IsDeleted] = 0
) AS [t] ON [e].[DefaultLanguageId] = [t].[Id]
LEFT JOIN (
    SELECT [e1].*
    FROM [Currencies] AS [e1]
    WHERE [e1].[IsDeleted] = 0
) AS [t0] ON [e].[DefaultCurrencyId] = [t0].[Id]
WHERE [e].[IsDeleted] = 0

and

SELECT [e].[Id], [e].[Code], [e].[CreationTime], [e].[CreatorUserId], [e].[DefaultCurrencyId], [e].[DefaultLanguageId], [e].[DeleterUserId], [e].[DeletionTime], [e].[Description], [e].[IsDeleted], [e].[IsInEU], [e].[IsLocal], [e].[LastModificationTime], [e].[LastModifierUserId], [e].[TenantId], [t].[Id], [t].[Code], [t0].[Id], [t0].[Code]
FROM [Countries] AS [e]
LEFT JOIN (
    SELECT [e0].*
    FROM [TenantLanguages] AS [e0]
    WHERE [e0].[IsDeleted] = 0
) AS [t] ON [e].[DefaultLanguageId] = [t].[Id]
LEFT JOIN (
    SELECT [e1].*
    FROM [Currencies] AS [e1]
    WHERE [e1].[IsDeleted] = 0
) AS [t0] ON [e].[DefaultCurrencyId] = [t0].[Id]
WHERE [e].[IsDeleted] = 0

Hi @yekalkan,

It is working, the version control didn't show the new files created but were on disk. Thanks for your support!

Hello @yekalkan,

I've updated my solution with the new assembly en tried to run it again. The result is better but not working 100%, the new source files are not created although the log says they are. The modified files are actually correctly modified. I've also run it with the sudo command but makes no difference.

This is the loginfo from terminal

iMac:AspNetZeroRadTool rob$ dotnet aspnetzeroradtool.dll Product.json -> Entity is being generated. -> AppService is being generated. -> ..\src\BlueBrackets.Core\Authorization\AppPermissions.cs is being modified. -> ..\src\BlueBrackets.Core\Authorization\AppAuthorizationProvider.cs is being modified. -> Consts is being generated. -> ..\src\BlueBrackets.EntityFrameworkCore\EntityFrameworkCore\BlueBracketsDbContext.cs is being modified. -> AppServiceInterface is being generated. -> Dtos.EntityDto is being generated. -> Dtos.CreateOrEditDto is being generated. -> Dtos.GetAllInput is being generated. -> ..\src\BlueBrackets.Application\CustomDtoMapper.cs is being modified. Running add-migration... Could not run add-migration

Showing 1 to 6 of 6 entries