Abp样板Abp.Feature.AllFeatures到C#

Abp样板Abp.Feature.AllFeatures到C#,c#,aspnetboilerplate,C#,Aspnetboilerplate,我用的是abp样板。 在客户端,我读取特性并设置新值。如何将这些功能保存到数据库中 客户端功能正确,但在asp.net中我的后端上这些功能的类型是什么 例如,我尝试过: public List<IFeatureDefinitionContext> Licences { get; set; } public Dictionary<FeatureValueStore, Feature> LicencesList { get; set; } public List<Fea

我用的是abp样板。 在客户端,我读取特性并设置新值。如何将这些功能保存到数据库中

客户端功能正确,但在asp.net中我的后端上这些功能的类型是什么

例如,我尝试过:

public List<IFeatureDefinitionContext> Licences { get; set; }
public Dictionary<FeatureValueStore, Feature> LicencesList { get; set; }
public List<FeatureSetting> LicencesSetting { get; set; }
public List<Feature> LicencesTest { get; set; }
public List<FeatureDictionary> LicencesDictionary { get; set; }
在这里,我尝试了一点许可证列表,设置等

var saveLicences = function (licences) {
            var deferred = $q.defer();
            abp.ui.setBusy(
                null,
                localizationService.saveLicences({
                    licences: licences,
                    licencesList: licences,
                    licencesSetting: licences,
                    licencesDictionary: licences
        })
                .success(function (data) {
                    deferred.resolve(data);
                    abp.notify.success(abp.utils.formatString(localize("ConfigSaved"), ''));
                }).error(function (response) {
                    deferred.reject(response);
                })
            );
            return deferred.promise;
        };

在我的application.dll项目中,这些值应该显示…

尽管我不能清楚地理解您的问题;我想您需要功能的定义,以便可以插入和使用
IFeatureManager


请参见

0 down vote accept我在JavaScript函数中使用abp.features.allFeatures。现在我想将js代码中设置的新功能保存到数据库中,但我应该在C#abp.Features.allFeatures=C#List或Dictionary等中选择哪种类型
var saveLicences = function (licences) {
            var deferred = $q.defer();
            abp.ui.setBusy(
                null,
                localizationService.saveLicences({
                    licences: licences,
                    licencesList: licences,
                    licencesSetting: licences,
                    licencesDictionary: licences
        })
                .success(function (data) {
                    deferred.resolve(data);
                    abp.notify.success(abp.utils.formatString(localize("ConfigSaved"), ''));
                }).error(function (response) {
                    deferred.reject(response);
                })
            );
            return deferred.promise;
        };