Passingwind.Abp.DictionaryManagement.TestBase 1.2.0
dotnet add package Passingwind.Abp.DictionaryManagement.TestBase --version 1.2.0
NuGet\Install-Package Passingwind.Abp.DictionaryManagement.TestBase -Version 1.2.0
此命令旨在在 Visual Studio 的包管理器控制台中使用,因为它使用 NuGet 模块的 Install-Package 版本。
<PackageReference Include="Passingwind.Abp.DictionaryManagement.TestBase" Version="1.2.0" />
对于支持 PackageReference 的项目,将此 XML 节点复制到项目文件以引用此包。
paket add Passingwind.Abp.DictionaryManagement.TestBase --version 1.2.0
NuGet 团队不提供对此客户端的支持。请联系其 维护者 以获取支持。
#r "nuget: Passingwind.Abp.DictionaryManagement.TestBase, 1.2.0"
#r 指令可用于 F# Interactive 和 Polyglot Notebooks。将其复制到交互式工具或脚本的源代码中以引用此包。
// Install Passingwind.Abp.DictionaryManagement.TestBase as a Cake Addin #addin nuget:?package=Passingwind.Abp.DictionaryManagement.TestBase&version=1.2.0 // Install Passingwind.Abp.DictionaryManagement.TestBase as a Cake Tool #tool nuget:?package=Passingwind.Abp.DictionaryManagement.TestBase&version=1.2.0
NuGet 团队不提供对此客户端的支持。请联系其 维护者 以获取支持。
字典管理
提供字典项和组数据
如何使用
域
从 IDictionaryManager
开始
/// <summary>
/// Get items
/// </summary>
Task<IReadOnlyList<DictionaryItemDescriptor>> GetItemsAsync(string groupName, bool onlyEnabled = true, CancellationToken cancellationToken = default);
/// <summary>
/// Get groups
/// </summary>
Task<IReadOnlyList<DictionaryGroupDescriptor>> GetGroupsAsync(string? parentName = null, bool onlyPublic = true, CancellationToken cancellationToken = default);
/// <summary>
/// Get item value by name
/// </summary>
Task<string?> GetItemValueAsync(string itemName, string? defaultValue = null, CancellationToken cancellationToken = default);
/// <summary>
/// set an item value by name
/// </summary>
Task SetItemValueAsync(string name, string value, CancellationToken cancellationToken = default);
/// <summary>
/// Set item is enabled
/// </summary>
Task SetItemEnabledAsync(string name, bool isEnabled, CancellationToken cancellationToken = default);
/// <summary>
/// Set group is public
/// </summary>
Task SetGroupPublicAsync(string name, bool isPublic, CancellationToken cancellationToken = default);
/// <summary>
/// Get item descriptor by name
/// </summary>
Task<DictionaryItemDescriptor> GetItemAsync(string name, CancellationToken cancellationToken = default);
/// <summary>
/// Get group descriptor by name
/// </summary>
Task<DictionaryGroupDescriptor> GetGroupAsync(string name, CancellationToken cancellationToken = default);
/// <summary>
/// Check group is exists by name
/// </summary>
Task<bool> IsGroupExistsAsync(string name, CancellationToken cancellationToken = default);
/// <summary>
/// Check item is exists by name
/// </summary>
Task<bool> IsItemExistsAsync(string name, CancellationToken cancellationToken = default);
/// <summary>
/// Create item
/// </summary>
Task<DictionaryItem> CreateItemAsync(string name, string displayName, string? value = null, string? description = null, string? groupName = null, int displayOrder = 100, bool isEnabled = true, CancellationToken cancellationToken = default);
/// <summary>
/// Create group
/// </summary>
Task<DictionaryGroup> CreateGroupAsync(string name, string displayName, string? parentName = null, string? description = null, bool isPublic = false, CancellationToken cancellationToken = default);
/// <summary>
/// Delete item by name
/// </summary>
Task DeleteItemAsync(string name, CancellationToken cancellationToken = default);
/// <summary>
/// Delete group by name
/// </summary>
Task DeleteGroupAsync(string name, bool removeAllItems = true, CancellationToken cancellationToken = default);
应用程序服务
从 IDictionaryAppService
开始
产品 | 版本 兼容的和额外的目标框架版本。 |
---|---|
.NET | net8.0 是兼容的。 net8.0-android 已计算。 net8.0-browser 已计算。 net8.0-ios 已计算。 net8.0-maccatalyst 已计算。 net8.0-macos 已计算。 net8.0-tvos 已计算。 net8.0-windows 已计算。 |
-
net8.0
- Microsoft.NET.Test.Sdk (>= 17.9.0)
- NSubstitute (>= 5.1.0)
- Passingwind.Abp.DictionaryManagement.Domain (>= 1.2.0)
- Shouldly (>= 4.2.1)
- Volo.Abp.Authorization (>= 8.2.0)
- Volo.Abp.Autofac (>= 8.2.0)
- Volo.Abp.TestBase (>= 8.2.0)
- xunit (>= 2.8.0)
- xunit.extensibility.execution (>= 2.8.0)
NuGet 包 (2)
显示依赖Passingwind.Abp.DictionaryManagement.TestBase的前2个NuGet包
包 | 下载 |
---|---|
Passingwind.Abp.DictionaryManagement.MongoDB.Tests
一个提供动态字典管理服务的abp模块 |
|
Passingwind.Abp.DictionaryManagement.EntityFrameworkCore.Tests
一个提供动态字典管理服务的abp模块 |
GitHub 代码库
此包未被任何流行的GitHub代码库使用。
版本 | 下载 | 最后更新 |
---|---|---|
1.2.0 | 107 | 7/7/2024 |