Base solution for your next web application

Activities of "valeriy"

Will it be update module zero (version 0.6.0.0) to last abp libs (version 0.6.1.1)? Please update it. Thanks

Thank you. Yes, I set all these features. I use login too. I very like your Abp project. Thanks.

Answer

I found a solution for my situation: I call _dbContext.InitializeDynamicFilters(); then _dbContext.SetFilterScopedParameterValue(AbpDataFilters.MustHaveTenant, true); _dbContext.SetFilterScopedParameterValue(AbpDataFilters.MayHaveTenant, true);

And select from Users returns values.

But why _dbContext.DisableAllFilters() doesn't work - for me it's question... Thanks

Answer

I set Configuration.MultiTenancy.IsEnabled = true and _userManager.LoginAsync with Tonent works But _dbContext.DisableAllFilters() doesn't work: exec sp_executesql N'SELECT TOP (1) [Extent1].[Id] AS [Id], [Extent1].[TenantId] AS [TenantId], [Extent1].[Name] AS [Name], [Extent1].[DisplayName] AS [DisplayName], [Extent1].[IsStatic] AS [IsStatic], [Extent1].[IsDefault] AS [IsDefault], [Extent1].[IsDeleted] AS [IsDeleted], [Extent1].[DeleterUserId] AS [DeleterUserId], [Extent1].[DeletionTime] AS [DeletionTime], [Extent1].[LastModificationTime] AS [LastModificationTime], [Extent1].[LastModifierUserId] AS [LastModifierUserId], [Extent1].[CreationTime] AS [CreationTime], [Extent1].[CreatorUserId] AS [CreatorUserId] FROM [dbo].[AbpRoles] AS [Extent1] WHERE ((([Extent1].[TenantId] IS NULL) AND (@DynamicFilterParam_MayHaveTenant_tenantId IS NULL)) OR (([Extent1].[TenantId] IS NOT NULL) AND ([Extent1].[TenantId] = @DynamicFilterParam_MayHaveTenant_tenantId)) OR (@DynamicFilterParam_MayHaveTenant_DynamicFilterIsDisabled IS NOT NULL)) AND (([Extent1].[IsDeleted] = @DynamicFilterParam_SoftDelete_IsDeleted) OR (@DynamicFilterParam_SoftDelete_DynamicFilterIsDisabled IS NOT NULL)) AND ([Extent1].[TenantId] = @p__linq__0) AND (N''Admin'' = [Extent1].[Name])',N'@DynamicFilterParam_MayHaveTenant_tenantId int,@DynamicFilterParam_MayHaveTenant_DynamicFilterIsDisabled bit,@DynamicFilterParam_SoftDelete_IsDeleted bit,@DynamicFilterParam_SoftDelete_DynamicFilterIsDisabled bit,@p__linq__0 int',@DynamicFilterParam_MayHaveTenant_tenantId=0,@DynamicFilterParam_MayHaveTenant_DynamicFilterIsDisabled=NULL,@DynamicFilterParam_SoftDelete_IsDeleted=0,@DynamicFilterParam_SoftDelete_DynamicFilterIsDisabled=NULL,@p__linq__0=1

Please advise. Thanks

Thanks. It's fine. Could the forum send a mail notification, when somebody replied?

Answer

Good day. How can I use dynamic Filter or disable it in migration, when I use dbContext? Thanks

Showing 1 to 6 of 6 entries