Base solution for your next web application

Activities of "squaresunion"

how do I open an issue?

Answer is right here

<a class="postlink" href="https://stackoverflow.com/questions/45626158/the-override-username-string-length-did-not-work-when-calling-usermanager-create">https://stackoverflow.com/questions/456 ... ger-create</a>

<cite>maliming: </cite> The Update-Datebase command will not use the environment.

See: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpZeroTemplateDbContextFactory.cs#L15">https://github.com/aspnetzero/aspnet-ze ... ory.cs#L15</a>

<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Configuration/AppConfigurations.cs#L17">https://github.com/aspnetzero/aspnet-ze ... ons.cs#L17</a>

Yes I saw that. It working for me now. Great thanks for you quick answer.

Regards

<cite>SquaresUnion: </cite> I create a appsettings.staging.json file change the environment variable ASPNETCORE_ENVIRONMENT to staging but when I do an update-database it is still pointing to the dev environment. The default appsettings file...How should I do

OK I am reading the doc. What I am trying to do will never work. I got the right way to proceed thanks

I create a appsettings.staging.json file change the environment variable ASPNETCORE_ENVIRONMENT to staging but when I do an update-database it is still pointing to the dev environment. The default appsettings file...How should I do

<cite>ryancyq: </cite> Reading of appsetting.json with environment variable is done at <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Configuration/AppConfigurations.cs#L34">https://github.com/aspnetzero/aspnet-ze ... ons.cs#L34</a>

ok thanks but does that mean that if you have a custom appsettings.environment.json, with the above code it will loaded natively the correct file? Do I need to change the code for it to work properly?

Hello Guys, I was able to figure out how to do things here. Please take a look at this class TenantRoleAndUserBuilder and use the existing code as example.

I even tried to add those roles in the database initialisation and it is still not working. Dont see my new roles in the UI in the roles datalist. Can somebody help? Please?

Yes but now I have bad suprise. I dont see the roles I hardcoded in the UI. What am I doing wrong? Shouldnt this be working?

roleManagementConfig.StaticRoles.Add( new StaticRoleDefinition( StaticRoleNames.Host.Client, MultiTenancySides.Host) ); roleManagementConfig.StaticRoles.Add( new StaticRoleDefinition( StaticRoleNames.Host.Employees, MultiTenancySides.Host) );

found the answer :) if class SquaresUnionCoreModule find line of code if (DebugHelper.IsDebug) { //Disabling email sending in debug mode Configuration.ReplaceService<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient); } Hope this will help somebody else. Regards

Showing 1 to 10 of 31 entries