Base solution for your next web application

Activities of "xitix"

Problem is: when I am giving "Users", and "Roles" permission to the client side admin user. Then he is able to see settings pages as well.

He is able to see all pages on Permission modal and able to edit it also. [see image]

But He should see like this[See Image]

Last time Mr. Maliming has solved this problem at #7394 for my previos server and different URL.

I followed the same step and solved previously on last server. Again I am facing same problem when I am hosting same project on new server with new URL.

Asp.net Core URL : http://ozones.xitix.co.in/ Angular URL : http://ozone.xitix.co.in/

See Image of : appsettings.Production.json, appconfig.production.json

See Error Image :

I wanted to load these files after login page. Because when client is accessing from other countries it is loading very slow for fist login page. kindly suggest me.

I have tested my web site speed A CSS file and JS file taking too long to load, I want to put this 2 files on my cloud server and link to approperiat location after building angular app. Plz guide this technique either.

how do I include tenant name in URL so that user should not know about Tenant Things and he simply enter URL for appropriate tenant?

You are intelligent to understand what I mean for user perspective If I have different client for same portal.

I refered this question aswer : #7511 it gives me some hint but not brief , kindly give me steps for making subdomain resolver.

Kindly Guide me to call this method GetNameOrConnectionString() for multitenancy.

 public class DbPerTenantConnectionStringResolver : DefaultConnectionStringResolver, IDbPerTenantConnectionStringResolver
    {
        /// <summary>
        /// Reference to the session.
        /// </summary>
        public IAbpSession AbpSession { get; set; }

        private readonly ICurrentUnitOfWorkProvider _currentUnitOfWorkProvider;
        private readonly ITenantCache _tenantCache;

        /// <summary>
        /// Initializes a new instance of the <see cref="DbPerTenantConnectionStringResolver"/> class.
        /// </summary>
        public DbPerTenantConnectionStringResolver(
            IAbpStartupConfiguration configuration,
            ICurrentUnitOfWorkProvider currentUnitOfWorkProvider,
            ITenantCache tenantCache)
            : base(configuration)
        {
            _currentUnitOfWorkProvider = currentUnitOfWorkProvider;
            _tenantCache = tenantCache;

            AbpSession = NullAbpSession.Instance;
        }

        public override string GetNameOrConnectionString(ConnectionStringResolveArgs args)
        {
            if (args.MultiTenancySide == MultiTenancySides.Host)
            {
                return GetNameOrConnectionString(new DbPerTenantConnectionStringResolveArgs(null, args));
            }

            return GetNameOrConnectionString(new DbPerTenantConnectionStringResolveArgs(GetCurrentTenantId(), args));
        }

        public virtual string GetNameOrConnectionString(DbPerTenantConnectionStringResolveArgs args)
        {
            if (args.TenantId == null)
            {
                //Requested for host
                return base.GetNameOrConnectionString(args);
            }

            var tenantCacheItem = _tenantCache.Get(args.TenantId.Value);
            if (tenantCacheItem.ConnectionString.IsNullOrEmpty())
            {
                //Tenant has not dedicated database
                return base.GetNameOrConnectionString(args);
            }

            return tenantCacheItem.ConnectionString;
        }

        protected virtual int? GetCurrentTenantId()
        {
            return _currentUnitOfWorkProvider.Current != null
                ? _currentUnitOfWorkProvider.Current.GetTenantId()
                : AbpSession.TenantId;
        }
    }

How to activate my new tenant that should fully work for different database. ? [refer image]

Project Type : Asp.net Zero + Angular [v.7.0 ]

Project type : AspNet Core + Angular [latest v.7.0]

i want to get userId on asp.net core web service to change database connection string based on userId.

Project Type : Asp.net core + Angular [lates v.7.0]

Showing 11 to 20 of 38 entries