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;
}
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
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.
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?
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',
},