Base solution for your next web application

Activities of "squaresunion"

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) );

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?

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.

Hello Guys, I Would like to know if I can copy users password directly from my former Asp.Net Sql Server Membership database to Aspnet zero .net core membership database without any change. Any body knows how this works?

Regards

Hello Guys, I noticed that in the native code of server side code (angular 5 .Net core) to read the appsettings.json file using this code JObject.Parse(File.ReadAllText("appsettings.json")); Is this working if I create a file appsettings.Production.json will this read the correct production file automatically if I change the ASPNETCORE_ENVIRONMENT to production? Or it is going to find appsettings.json on the drive? How does this work?

Regards

<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?

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>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

<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

Hello I cant understand why the Username lenght is limited to 32 character lenght. Is it possible to change that? Can somebody please show me how to increase it? Please currently migrating to asp.net Zero in production. I see its coming from the framework. Cant I overide it? Using .Net core Angular 5.

Showing 31 to 40 of 45 entries