Starts in:
0 DAY
11 HRS
38 MIN
20 SEC
Starts in:
0 D
11 H
38 M
20 S

Activities of "TMuska"

Answer

I'm just trying to follow the example. Instead of IsActive/boolean, I'm trying to do CustomerNumber/string.

protected override Expression<Func<TEntity, bool>> CreateFilterExpression<TEntity>()
{
    var expression = base.CreateFilterExpression<TEntity>();

    if (typeof(IIsActive).IsAssignableFrom(typeof(TEntity)))
    {
        Expression<Func<TEntity, bool>> isActiveFilter =
            e => !IsActiveFilterEnabled || EF.Property<bool>(e, "IsActive");
        expression = expression == null 
            ? isActiveFilter 
            : QueryFilterExpressionHelper.CombineExpressions(expression, isActiveFilter);
    }

    return expression;
}
Question
  • ABP Framework version: v7.4.4
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Can you give me an example to override the CreateFilterExpression method using a string value for the query filter? Your example is using a bool. I want to have a global query filter that will filter by customer number, just like a tenant id. I followed your example but not able to get it to work with a string.

https://docs.abp.io/en/abp/latest/Data-Filtering

Question
  • ABP Framework version: v7.4.3
  • UI Type: Angular
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

When I run abp suite it automatically installs v 8.0.0 even if I install it using abp suite install --version 7.4.3. As soon I run the abp suite command it updates to 8.0.0. How do I run the 7.4.3 version of the suite? I've uninstalled and reinstalled both the CLI and Suite multiple times.

  • ABP Framework version: 7.4.3
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Using the suite I try to create a new entity it get the following message: The entity with the same name already exists! This entity is not in my project. It did once but I removed it. Is there something I need to delete that is not visible?

  • ABP Framework version: v7.4.3
  • UI Type: Angular
  • Database System: EF Core SQL Server

Updated solution from 7.3.2 to 7.4.3 and now angular gives the following error message:

Error: src/app/app.module.ts:62:7 - error TS2345: Argument of type '{ cookieConsent: { privacyPolicyUrl: string; cookiePolicyUrl: string; }; }' is not assignable to parameter of type 'AbpCookieConsentOptions'. Object literal may only specify known properties, and 'cookieConsent' does not exist in type 'AbpCookieConsentOptions'.

   cookieConsent: {
     privacyPolicyUrl: 'gdpr-cookie-consent/privacy',
     cookiePolicyUrl: 'gdpr-cookie-consent/cookie',
   },
Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06