灵活的 DevExpress XAF 数据字典管理模块,用于管理 lookup 数据,支持动态创建、自动过滤、Excel 导入导出
$ dotnet add package Wxy.Xaf.DataDictionary灵活的 DevExpress XAF 数据字典管理模块
dotnet add package Wxy.Xaf.DataDictionary
Blazor (Startup.cs):
builder.Modules.Add<Wxy.Xaf.DataDictionary.WxyXafDataDictionaryModule>();
WinForms (Startup.cs):
builder.Modules.Add<Wxy.Xaf.DataDictionary.WxyXafDataDictionaryModule>();
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 值,确保顺序正确。
详细文档请访问: https://github.com/wxy8000/wxyXafExcel
MIT License