Base solution for your next web application

Activities of "princedis"

Hi,
I am using AspNet Zero version 3.0.0 and I would like to give users the option to switch database for testing in our organization. I have enabled LDAP so cannot enable Multi Tenancy. I was able to change the connection string dynamically by creating a custom ConnectionStringResolver and by extending AbpSession to store the current database selection of the user. But when one user changes the database it is changed for all users in the organization. I would like to change the database separately for each user based on their preference. If I would create a user setting I would have to use Ado.net to check the setting because of different databases.

Is there any other way to change the connection string dynamically for a user?

When Enabling LDAP, Multitenancy is disabled, their By now to go to root domain, and is not able to enable Chat. How to enable Chat in LDAP enabled Host.

Hi, I just restarted my project in ABP, Previously when I do a delete on ISoftDelete enabled entity, It set isDelete flag and other things and will not show on normal get. But Now when i call delete it throught error as

private readonly ISASRepositoryBase<Detail> _detailRepository;
public async Task SoftDeleteDetailAsync(int id)
        {
            await _detailRepository.DeleteAsync(id);
        }

Inside of WebApi Project under override Initialize

public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            //Automatically creates Web API controllers for all application services of the application
            DynamicApiControllerBuilder
                .ForAll<IApplicationService>(typeof(ZeroApplicationModule).Assembly, "app")
                .Build();

            Configuration.Modules.AbpWebApi().HttpConfiguration.Filters.Add(new HostAuthenticationFilter("Bearer"));

            //convert Enums to Strings (instead of Integer) globally
            Newtonsoft.Json.JsonConvert.DefaultSettings = (() =>
            {
                var settings = new Newtonsoft.Json.JsonSerializerSettings();
                settings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter { CamelCaseText = true });
                return settings;
            });

            ConfigureSwaggerUi(); //Remove this line to disable swagger UI.
        }

In Normal WebAPi project we do Formatters.JsonFormatter.SerializerSettings inside public static void Register(HttpConfiguration config). But in AspNetZero Dynamic WebApi how do I do formating.

Basically I am looking to do Newtonsoft.Json.Converters.StringEnumConverter.

<cite>hikalkan: </cite> Hi,

I answered this question before here: #1073

Yes he is right, but I made some thing, Which might helpfull for you. [https://goo.gl/Wa8Oyt])

I have a solution, Which is working for me. [https://goo.gl/Wa8Oyt])

Question

HI, After a long time, I planned to start again the project, and for that first I downloaded the latest from "https://aspnetzero.com/download". And started development process, in between I stuck on multi context issue and while implementing that I came across "DefaultDbContextAttribute", which I did not found on the dll. Eventually I saw that all of the packages are pointes to "0.9.1.0" and the "DefaultDbContextAttribute" is in the latest.

Do we need to keep, updating using command, or do we download the all them from the link with the same company and project name and update using GitHub.? please explain.

Hi, Am writing an application where I tried to keep my code/function as a separate module so that I don't touch your base code downloaded. .

Thanks to the great framework and great documentation, support and knowledge base. Till now every things working fine.

Using [http://aspnetzero.com/Documents/Extending-Existing-Entities]), I have created additional fields to user element. Now my next step is to alter the user registration page like below. .

I know that i can alter the page from the donloaded code. But how can i redirect the call to my own project of dll file.

My main aim is to achieve upgradation process easy. As per my plan, when ever a new code is release my you. I can simply download that and plug my code reference, without thinking what are the pages i needed to be changes as a part of upgration.

I am sending you a link of my source code in you email (with this ticket number).

Please help

That worked, but my modularizatation concept was compermised.

Showing 1 to 10 of 20 entries