Activities of "KuldeepRathi"

Hi,

We are getting issue with Exceptions while using ABP InsertSync.
For any error/exception came from SQL not getting moved in exception code and not going in catch statement. This is happening whenever we are passing false in Repository.InsertAsync().

As shown below in Option 1 code. Please suggest, we need to send custom error number like - throw new CivitException(ex.Message, "2601");

Same is working fine if we are calling direct EfCoreException

-------------------------------------------------------------------- +@ AbpException Code starts -------------------------------------------------------------------- //Option1 :- passing inner async parameter as "false".

public async Task AddOrganization(OrganizationDto input)
        {
            try
            {

                var data = ObjectMapper.Map<OrganizationDto, Setup.Organization.Organization>(input);                                
                await _orgContactRepository.InsertAsync(data, false);
                
            }
        catch (DbUpdateException ex)
            {
                throw new CivitException(ex.Message, "2601");
            }
        }

//Option2 :- passing inner async parameter as "true"

public async Task AddOrganization(OrganizationDto input)
        {
            try
            {

                var data = ObjectMapper.Map<OrganizationDto, Setup.Organization.Organization>(input);                
                await _orgContactRepository.InsertAsync(data, true);                
                
            }
            catch (DbUpdateException ex)
            {
                throw new CivitException(ex.Message, "2601");
            }
        }

------------------------------------ +@ AbpException Code Ends --------------------------------------------------------------------

----------------------------------- +@ EFCoreException Code starts --------------------------------------------------------------------

        public override int SaveChanges()
        {
            try
            {
                
                var data=base.SaveChanges();
                return data;
            }
            catch (DbUpdateException e)
            {
                Console.WriteLine(e);
                throw;
            }
        }

------------------------------------------------ +@ EFCoreException Code ends --------------------------------------------------------------------

What's the stacktrace? You haven't mentioned about the exception

Do you need stacktrace? Situation in Steps-

  1. Calling InsertSync() function and Passing False as parameter {as mentioned in below sample code}
  2. If any exception comes then it should go to Catch{} loop.
  3. But currently it is not going.
  4. If we are using plain 'DbUpdateException' of EFCore, then it is raising Ex.message {Sample code added in Previou/ above message}

public async Task AddOrganization(OrganizationDto input)
        {
            try
            {

                var data = ObjectMapper.Map<OrganizationDto, Setup.Organization.Organization>(input);                                
                ~~await _orgContactRepository.InsertAsync(data, false);~~
                
            }
        **catch (DbUpdateException ex)
            {
                throw new CivitException(ex.Message, "2601");
            }**
        }

Hi, Please help by replying few questions on SaaS/ Edition/ Features?

  1. Can we assign Features Directly to tenant without Edition?
  2. Can we have one to many editions for a tenant?

Regards,

  1. Any features difference in Abp Angular UI vs Abp MVC UI vs Abp Blazor UI
  2. if any comparison documents is available for Abp Angular UI vs Abp MVC UI vs Abp Blazor UI, so please provide it.
  3. Abp Payment module available in angular ui ?

Hi,

what about the first and second point ?

We want to restrict user multiple login session at time, there should be single active login session.

user should be allowed to be logged in to one application from only one browser at a time. When user logs in then server should check his current active sessions to the same application from other browsers. If there is then log out from everywhere else and keep only newest session.

so any provision available in abp.io commercial module ?

i already tried this but it's not working,

this piece of code add in WebModule

any another configuration ?

i already tried this but it's not working,

this piece of code add in WebModule

any another configuration ?

any other configuration for Restrict user to multiple login ?

we want to define Jurisdictions of each user and want to use in work flow/approval flows. do you have any provision available in abp framework?

How to implement you directory and file APIs/ functions if Storage and web servers are different? Do you have any recommendation or sample code for same?

Showing 1 to 10 of 16 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11