Activities of "zhongfang"

Oh, may I use as below?

string providers= await this.SettingProvider.GetOrNullAsync("Abp.Account.ExternalProviders");

I created 2 files as below

Yee.EasyComment.Application.Contracts.Users

    public class AppUserDto : IdentityUserDto
    {
    }
        

Yee.EasyComment.Domains.Users

    public class AppUser : IdentityUser
    {
    }

My question can be change to:

If I save feature value for tenant version. Then I can't change the feature value for a single tenant?

Now, I can control the menuitem with IFetureChecker. But another question ... can not change the feature value for a single tenant ater save the value for version.

OK. I see. I will try later.

another question, I have define features. But after I saved for tenant version. I can not change the value for a single tenant.

I replaced all abp.auth.isGranted('Config. with abp.auth.isGranted('ChangeConfig.

The problem has been resolved.

Otherwise, may ABP framework use a const string in Javascript , and this const string equals to this member:

public class ConfigPermissions
{
    public const string GroupName = "ChangeConfig";

I have found the code which control the visibility of buttons in Actions column as below. the parameter are all started with "Config. If I modify from Config to ChangeConfig, it will be OK?

var dataTable = $("#AgentLevelsTable").DataTable(abp.libs.datatables.normalizeConfiguration({
        processing: true,
        serverSide: true,
        paging: true,
        searching: false,
        scrollX: true,
        autoWidth: false,
        scrollCollapse: true,
        order: [[1, "asc"]],
        ajax: abp.libs.datatables.createAjax(agentLevelService.getList, getFilter),
        columnDefs: [
            {
                rowAction: {
                    items:
                        [
                            {
                                text: l("Edit"),
                                visible: abp.auth.isGranted('Config.AgentLevels.Edit'),
                                action: function (data) {
                                    editModal.open({
                                     id: data.record.id
                                     });
                                }
                            },
                            {
                                text: l("Delete"),
                                visible: abp.auth.isGranted('Config.AgentLevels.Delete'),
                                confirmMessage: function () {
                                    return l("DeleteConfirmationMessage");
                                },
                                action: function (data) {
                                    agentLevelService.delete(data.record.id)
                                        .then(function () {
                                            abp.notify.info(l("SuccessfullyDeleted"));
                                            dataTable.ajax.reload();
                                        });
                                }
                            }
                        ]
                }
            },
			{ data: "levelId" },
			{ data: "levelName" },
			{ data: "desc" },
			{ data: "needFans" },
			{ data: "needConsumerAmount" },
            {
                data: "isActive",
                render: function (isActive) {
                    return isActive ? l("Yes") : l("No");
                }
            }
        ]
    }));
private readonly IRepository<Product, Guid> _productRepository;
        private readonly IDataFilter _dataFilter;

        public ProductManager(
            IRepository<Product, Guid> productRepository,
            IDataFilter dataFilter)
        {
            _productRepository = productRepository;
            _dataFilter = dataFilter;
        }

        public async Task<long> GetProductCountAsync()
        {
            using (_dataFilter.Disable<IMultiTenant>())
            {
                return await _productRepository.GetCountAsync();
            }
        }

I have the source code of Account Pro module. But I have nont found the source code.

But, which project? which folder?

Showing 91 to 100 of 136 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 08, 2025, 08:24
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.