The eXpressApp Framework supplies the Business Class Library that consists of three assemblies.
eXpressApp 框架提供由三个程序集组成的业务类库。
DevExpress.Persistent.BaseImpl.v19.2.dll Contains ready-to-use XPO persistent classes.
包含现成的 XPO 持久类。
DevExpress.Persistent.BaseImpl.EF.v19.2.dll Contains ready-to-use Entity Framework Code First classes.
包含即用型实体框架代码第一类。
DevExpress.Persistent.Base.v19.2.dll Contains interfaces and helper classes used in XAF Extra Modules. Classes implementing these interfaces are available in the two DevExpress.Persistent.BaseImpl.* assemblies listed above.
包含 XAF 额外模块中使用的接口和帮助器类。实现这些接口的类在上面列出的两个 DevExpress.持久.BaseImpl.* 程序集中可用。
You can modify and recompile an assembly with ready-to-use XPO or EF entities using the steps below.
您可以使用以下步骤修改和重新编译具有即用型 XPO 或 EF 实体的程序集。
Run the Visual Studio Command Prompt as an administrator and execute the Sn.exe (Strong Name Tool)utility with the following parameters.
- 以管理员身份运行 Visual Studio 命令提示符,并使用以下参数执行 Sn.exe(强名称工具)实用程序。
sn -k "%PROGRAMFILES(x86)%\DevExpress 19.2\Components\Sources\DevExpress.Key\StrongKey.snk"
This will create the strong name file (see Strong-Named Assemblies
这将创建强名称文件(请参阅强命名程序集
Navigate to one of the following folders.
导航到以下文件夹之一。
- %PROGRAMFILES(x86)%\DevExpress 19.2\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl - if you use XPO.
- %PROGRAMFILES(x86)%\DevExpress 19.2\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl.EF - if you use EF.
Open the DevExpress.Persistent.BaseImpl.csproj or DevExpress.Persistent.BaseImpl.EF.csproj project in Visual Studio.
在可视化工作室中打开 DevExpress.持久.BaseImpl.csproj 或 DevExpress.Base.Base.EF.csproj 项目。
- If you use EF, ensure that the EntityFramework.dll assembly is available. The project already includes a reference to this assembly, but you may need to provide the DLL file. You can download it from NuGet, or copy it from the EF Demo project (%PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\EFDemoCodeFirstCS\EFDemo.Module\lib\EntityFramework.dll).
- 如果使用 EF,请确保实体框架.dll 程序集可用。该项目已包含对此程序集的引用,但您可能需要提供 DLL 文件。你可以从NuGet下载,或从EF演示项目复制它(%PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp
- Modify any class from the opened project.
- 从打开的项目修改任何类。
Compile the project by clicking Rebuild in the context menu invoked for the solution. Once this rebuild is successful, the default assembly located in the %PROGRAMFILES(x86)%\DevExpress 19.2\Components\Bin\Framework folder will be replaced with the modified assembly.
通过单击为解决方案调用的上下文菜单中的"重建"来编译项目。此重建成功后,位于 %PROGRAMFILES(x86)%%_DevExpress 19.2_组件_Bin_框架文件夹中的默认程序集将替换为修改后的程序集。