Base solution for your next web application

Activities of "denis.karovic"

  • Product version: 5.4
  • Product type: Angular
  • Framework type: .net core
  • ABP Framework version: 5.4.0

Hy, I am inserting data by executing raw sql command. All data are properly inserted into database, but the repository is not aware of them being inserted. Basically, usersBeforeInsert and usersAfterInsert contain the same 3 records.

Also, after application restart, repository is still not aware of users inserted with ExecuteSqlRaw(), retrieving only users that existed prior to ExecuteSqlRaw().

How to make _userRepository retrieve all data from db?

Here is the code sample:

var usersBeforeInsert = await _userRepository.GetAllListAsync(); // 3 records retrieved var commandText = GenerateInsertUsersSqlScript(users); var context = _userRepository.GetDbContext(); var rowsAffected = context.Database.ExecuteSqlRaw(commandText); // 85000 records inserted context.SaveChange(); var usersAfterInsert = await _userRepository.GetAllListAsync(); // 3 record retrieved

Lets say we have two tables (simplified example) with one to many relationship:

Orders { guid Id, DateTime PlaceAt }

OderLineItems { guid Id, guid OrderId, guid ProductId }

Creating Order entity with Power Tools goes without problem. But creating OrderLineItems entity generates this 4 errors:

They should be pretty easy to fix manualy, but Power Tools should not be generating them.

Hello,

Is there a possibility of creating one-to-one relationship between two tables using Power Tools?

If not, what would be the most apropriate solution?

Hi,

I have several questions regarding Events. I have read documentation regarding it on https://aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events. However, I have several questions:

  1. Are events stored somewhere (database, redis…)?

  2. Can we choose where events will be stored?

  3. Is handling them triggered based or loop/timer based? (I believe it's a pub/sub trigger based implementation, but I just need to check with you one more time)

  4. Any supprot for Integration Events?

Hi,

I have ASP.NET Zero version v8.1.0. If I want to upgrade it to the latest (v8.4.0) would it be sufficient to only update nuget packages for ABP (from v.5.1.0 to v.5.4.0), or manual steps for Zero would be needed?

Hello,

There is an error with this component. If getting payment result is not succesfull after the first attempt and the method controlAgain() needs to be called, there is en error with loosing scope.

Wrong implementation:

  controlAgain() {
        if (this.maxControlCount === 0) {
          return;
        }

        setTimeout(this.getPaymentResult, this.controlTimeout);                         // this makes it looses scope
        this.controlTimeout *= 2;
        this.maxControlCount--;
  }
  

Appropriate Implementation:

controlAgain() {
        if (this.maxControlCount === 0) {
          return;
        }

        setTimeout( () => {
            this.getPaymentResult();
        }, this.controlTimeout);                                                                    // this way scope is perserved
        this.controlTimeout *= 2;
        this.maxControlCount--;
  }

Hello,

Do you have any additional documentation regarding payment process besides one that is already publicly available (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Subscription)?

Hello ASP.NET Zero,

I am trying to make Stripe payment proccess work. So far, I've created Stripe developer account, installed Stripe CLI, created Webhook to my local machine. Subscriptions purchased from Angular side are shown on stripe dashboard. But payment proccess cannot be finished, because in StripePaymentAppService.GetPaymentResult() this condition is never met payment.Status == SubscriptionPaymentStatus.Completed, no matter how many times action is called from Angular side.

I think the problem is that stripe cli listen and forward command is not configured correctly, so StripeControllerBase.WebHooks() method is never called. I tried running this command with various ports, but i cannot make it work : stripe listen --forward-to https://localhost:XXXXXX/Stripe/WebHooks

**This is the output of stripe cli after making purchase from angular side **

	2020-03-13 14:08:39   --> payment_intent.created [evt_1GMDFiARA5glizJOChWcBlF6]
	2020-03-13 14:08:40            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:18   --> payment_intent.succeeded [evt_1GMDGLARA5glizJOWvG9Qyvo]
	2020-03-13 14:09:19            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:20   --> checkout.session.completed [evt_1GMDGLARA5glizJOKbCq8Cxy]
	2020-03-13 14:09:20   --> charge.succeeded [evt_1GMDGLARA5glizJOtdfj9rra]
	2020-03-13 14:09:21   --> customer.created [evt_1GMDGLARA5glizJOKjNr21oK]
	2020-03-13 14:09:21   --> payment_method.attached [evt_1GMDGLARA5glizJOiWYJjJ9x]
	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.
	

This is output of stripe cli after running stripe trigger payment_intent.created

    2020-03-13 14:11:19   --> payment_intent.succeeded [evt_1GMDIJARA5glizJO60AfGW7C]
    2020-03-13 14:11:19   --> charge.succeeded [evt_1GMDIJARA5glizJOGc2Wt9bv]
    2020-03-13 14:11:19   --> payment_intent.created [evt_1GMDIJARA5glizJOMhZux29M]
    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

launchSetting.json from Web.Host:

    {
      "iisSettings": {
        "windowsAuthentication": false,
        "anonymousAuthentication": true,
        "iisExpress": {
          "applicationUrl": "http://localhost:22742/",
          "sslPort": 0
        }
      },
      "profiles": {
        "IIS Express": {
          "commandName": "IISExpress",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        },
        "EkhartYoga.Web.Host": {
          "commandName": "Project",
          "launchUrl": "http://localhost:22742",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        }
      }
    }

launchSetting.json from Web.Core:

    {
      "iisSettings": {
        "windowsAuthentication": false,
        "anonymousAuthentication": true,
        "iisExpress": {
          "applicationUrl": "http://localhost:57741/",
          "sslPort": 0
        }
      },
      "profiles": {
        "IIS Express": {
          "commandName": "IISExpress",
          "launchBrowser": true,
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        },
        "EkhartYoga.Web.Core": {
          "commandName": "Project",
          "launchBrowser": true,
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          },
          "applicationUrl": "http://localhost:57743/"
        }
      }
    }
Question

Hello I tried to upgrade licence from regular to enterpice. I proceeded all the way and paid for the invoice 1400 dollars. I have the invoice and I can send it to you. But after payment and after returning to your panel from payment page I received 500 error and my licence remained regular. Can you please upgrade my licence manually once I deliver you the invoice as evidence that I paid for it.

Can you please help me asap, cause I need the licence now? Thanks in advance.

Showing 1 to 9 of 9 entries