Hi,
I use the Payment module for subscriptions and it works well. But there are two points that need to be improved.
Here is the code : var paymentRequest = await SubscriptionAppService.CreateSubscriptionAsync(EditionId, CurrentTenant.GetId()); return LocalRedirectPreserveMethod("/Payment/GatewaySelection?paymentRequestId=" + paymentRequest.Id);
I want to stay on .net core 6 for now.
Thank you for your help.
Hi,
After migration from version 5.3 to version 6.0.2, the lookup added to table "AbpUsers" don't work.
Here's my code that works with version 5.3 : ObjectExtensionManager.Instance.Modules() .ConfigureIdentity(identity => { identity.ConfigureUser(user => { user.AddOrUpdateProperty<Guid?>( "EstablishmentId", property => { property.UI.Lookup.Url = "/api/app/establishment"; property.UI.Lookup.DisplayPropertyName = "name"; property.UI.Lookup.ValuePropertyName = "id"; property.DisplayName = LocalizableString.Create("Establishment"); } ); }); });
In version 6.0 nothing was recorded. In version 6.0.2, EstablishmentId is recording but the text is missing in the "Extraproperties" field. As a result, the establishment does not appear in the list or in the edit page.
Thank you for your help.
Hi,
I have updated to version 4.3.1 and it works fine.
Thanks.
Hi,
I notice that it works well with a shared database but not with separate databases. The Abp tenant, featuresvalues, and editions tables are empty in separate bases. I will try to create a dedicated project.
Best regards.
Hi,
here is some additional information. I use Application StartUp Template with Lepton Theme. The values assigned in the administration interface are effective a few hours, I don't know exactly how much. Is there a cache problem ?
Here are values in the database, they do not change :
But in ApplicationConfigurationSript, values are differents, as well as the values obtained with IfeatureManager and IFeatureChecker :
features: {
values: {
"Identity.TwoFactor": "Optional",
"FileManagement.Enable": "True",
"FileManagement.StorageSize": "0",
"Account.EnableLdapLogin": "False",
"Products.Blazer": "True",
"Products.Trouser": "True",
}
},
Best regards.
Hi,
i have a multi-tenant architecture. I have set up different features according to the tenants.
Tenant 1 : Products.Blazer = true, Products.Trouser = true Tenant 2 : Products.Blazer = false, Products.Trouser = true
I use this code in application.contracts and it works :
public override void Define(IFeatureDefinitionContext context)
{
var productsType = context.AddGroup("Products", displayName: LocalizableString.Create<OrdersAppResource>("Products"));
productsType.AddFeature(
"Products.Blazer",
defaultValue: "true",
displayName: LocalizableString.Create<OrdersAppResource>("Blazer"),
valueType: new ToggleStringValueType()
);
productsType.AddFeature(
"Products.Trouser",
defaultValue: "true",
displayName: LocalizableString.Create<OrdersAppResource>("Trouser"),
valueType: new ToggleStringValueType()
);
}
The database is ready. Datas in the Features table is those defined from the interface. But, reading the features according to the tenant always gives the same result, the one set by default. I used IFeatureManager and IFeatureChecker.
Best regards.