Wxy.Xaf.DataDictionary
1.4.0
dotnet add package Wxy.Xaf.DataDictionary --version 1.4.0
NuGet\Install-Package Wxy.Xaf.DataDictionary -Version 1.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Wxy.Xaf.DataDictionary" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wxy.Xaf.DataDictionary" Version="1.4.0" />
<PackageReference Include="Wxy.Xaf.DataDictionary" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Wxy.Xaf.DataDictionary --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Wxy.Xaf.DataDictionary, 1.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Wxy.Xaf.DataDictionary@1.4.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Wxy.Xaf.DataDictionary&version=1.4.0
#tool nuget:?package=Wxy.Xaf.DataDictionary&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Wxy.Xaf.DataDictionary
灵活的 DevExpress XAF 数据字典管理模块
功能特性
- ✅ 动态数据字典创建
- ✅ 自动数据过滤
- ✅ 属性级关联
- ✅ Excel 导入/导出支持
- ✅ 超链接禁用(列表视图)
- ✅ 初始数据自动初始化
- ✅ Order 属性自动修复
- ✅ 跨平台支持 (WinForms & Blazor)
使用方法
1. 安装 NuGet 包
dotnet add package Wxy.Xaf.DataDictionary
2. 注册模块
Blazor (Startup.cs):
builder.Modules.Add<Wxy.Xaf.DataDictionary.WxyXafDataDictionaryModule>();
WinForms (Startup.cs):
builder.Modules.Add<Wxy.Xaf.DataDictionary.WxyXafDataDictionaryModule>();
3. 标记业务对象
public class Product : BaseObject
{
[DataDictionary("产品类别")]
public XPCollection<DataDictionaryItem> Category { get; set; }
[DataDictionary("计量单位")]
public DataDictionaryItem Unit { get; set; }
}
高级特性
自动初始化
模块会在首次运行时自动创建示例数据字典:
- 性别
- 民族
- 学历
- 政治面貌
- 婚姻状况
- 员工状态
- 部门类型
自定义数据字典
[DataDictionary("产品类别")]
[EditorAttribute(typeof(DataDictionaryEditor), typeof(System.Drawing.Design.UITypeEditor))]
public DataDictionaryItem Category { get; set; }
Order 属性自动修复
模块会自动检测并修复数据字典项的 Order 值,确保顺序正确。
平台支持
- .NET 8.0
- DevExpress XAF 25.1.*
- Blazor Server
- WinForms
依赖项
- Wxy.Xaf.Excel (用于 Excel 导入/导出支持)
文档
详细文档请访问: https://github.com/wxy8000/wxyXafExcel
许可证
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- DevExpress.ExpressApp (>= 25.2.3)
- DevExpress.ExpressApp.Blazor (>= 25.2.3)
- DevExpress.Persistent.BaseImpl.Xpo (>= 25.2.3)
- Microsoft.AspNetCore.Components (>= 8.0.23)
- Wxy.Xaf.ExcelExchange (>= 1.4.0)
-
net8.0-windows7.0
- DevExpress.ExpressApp (>= 25.2.3)
- DevExpress.ExpressApp.Blazor (>= 25.2.3)
- DevExpress.ExpressApp.Win (>= 25.2.3)
- DevExpress.Persistent.BaseImpl.Xpo (>= 25.2.3)
- Microsoft.AspNetCore.Components (>= 8.0.23)
- Wxy.Xaf.ExcelExchange (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.4.0 - 统一版本发布 - 优化性能和稳定性 - 改进数据字典管理功能