Comprehensive Tutorial 综合教程(MainDemo应用程序)
Follow this tutorial to create a simple application used to store contacts and other related objects as you learn about the fundamentals of the eXpressApp Framework. Reviewing the XAF Architecture topic about the basic concepts used throughout this tutorial is highly recommended.
在学习eXpressApp框架的基础知识时,跟随本教程创建一个用于存储联系人和其他相关对象的简单应用程序。强烈建议您回顾一下XAF体系结构主题中贯穿本教程的基本概念。
Tutorial Structure
教程结构
The tutorial consists of the following sections.
Business Model Design
This section is split into two parts, which describe the use of two different Object-relational mapping (ORM)
本教程由以下部分组成。
- 商业模式设计
本节分为两个部分,它们描述了两个不同对象关系映射(ORM)的使用
tools: Entity Framework (EF) and eXpress Persistent Objects (XPO)
工具:实体框架(EF)和表示持久对象(XPO)
. You will start by choosing the one ORM you will use in your project and the subsequent steps will reflect your choice. In this section, you will implement classes that will form the business model (which defines the database tables) of your application. As a result of completing this section, you will end up with two automatically generated interfaces based on the same business model - a WinForms application and a website. In addition, these applications will contain a set of features that form the base application functionality.
- Main_Demo_BMD
- 您将首先选择一个您将在项目中使用的ORM,随后的步骤将反映您的选择。在本节中,您将实现一些类,这些类将形成应用程序的业务模型(定义数据库表)。完成本部分后,您将得到两个基于相同业务模型的自动生成的接口—一个WinForms应用程序和一个网站。此外,这些应用程序将包含一组构成基本应用程序功能的特性。
- Main_Demo_BMD
Extend Functionality
In this section, you will add custom features to the application built in the previous section.
- 扩展功能
在本节中,您将向上一节中构建的应用程序添加自定义特性。 UI Customization
This section will teach you how to easily customize the automatically generated UI of an application.
- 用户界面定制
本节将教会您如何轻松地自定义自动生成的应用程序UI。 Extra Modules
In this section, you will add extra features supplied with XAF (file attachment, data analysis, report generation, etc.).
- 额外的模块
在本节中,您将添加XAF提供的额外功能(文件附件、数据分析、报告生成等)。 Security System
Use this section to learn how to make the application secure by adding the XAF Security System to it.
安全系统
使用本节了解如何通过添加XAF安全系统来确保应用程序的安全性。
Each section consists of a number of lessons. Each lesson provides the steps required for implementing the functionality mentioned in the lesson title. These steps include the exact instructions , and may also include code snippets (in C# and VB) and images.
The final application created as a result of this tutorial is included in the XAF installation. The Entity Framework version of the Main Demo is located in the %PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\EFDemoCodeFirst folder, and eXpress Persistent Objects version is located in the %PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo folder by default. This application is intended to demonstrate a wide variety of features for implementing tasks in XAF applications..
每一节由若干课组成。每个课程都提供了实现课程标题中提到的功能所需的步骤。这些步骤包括确切的指令,也可能包括代码片段(在c#和VB中)和图像。
本教程创建的最后一个应用程序包含在XAF安装中。实体框架版本的主要演示位于%公共% \ \ DevExpress演示文档19.2 \ \ eXpressApp框架组件\ EFDemoCodeFirst文件夹,和表达持久对象版本位于%公共% \ \ DevExpress演示文档19.2 \ \ eXpressApp框架\ MainDemo文件夹默认组件。此应用程序旨在演示用于在XAF应用程序中实现任务的各种功能。
#Connection String
#连接字符串
Begin by ensuring that you have a Microsoft SQL Server database management system (DBMS) installed. If you use a different DBMS, you will need to provide the proper connection strings.
首先确保安装了Microsoft SQL Server数据库管理系统(DBMS)。如果使用不同的DBMS,则需要提供适当的连接字符串。
Use the Solution Wizard to create a solution. The wizard attempts to detect your installed SQL server and changes the connection string accordingly. Supported servers are Microsoft SQL Server (including the Express and LocalDB editions). To use another database system (PostgreSQL, MySQL, Oracle, SQLite, Firebird, etc.), change the ConnectionString argument in the App.config and Web.config files of the WinForms/ASP.NET application projects. Refer to the Connect an XAF Application to a Database Provider topic for details about connecting to different database systems. A database will be created on the server under the name of the solution you created. If you wish to change any of these details, you will need to make the necessary changes to the connection string by using the application configuration file (App.config or Web.config) or using the Application Designer. Refer to the Connect an XAF Application to a Database Provider topic for additional information on connection strings.
使用“解决方案向导”创建解决方案。向导尝试检测安装的SQL server并相应地更改连接字符串。受支持的服务器是Microsoft SQL Server(包括Express和LocalDB版本)。要使用另一个数据库系统(PostgreSQL、MySQL、Oracle、SQLite、Firebird等),请更改App.config和Web中的ConnectionString参数。配置文件的WinForms/ASP。网络应用程序项目。有关连接不同数据库系统的详细信息,请参阅将XAF应用程序连接到数据库提供者主题。将在服务器上以您创建的解决方案的名称创建一个数据库。如果您希望更改这些细节中的任何一个,您将需要使用应用程序配置文件(App.config或Web.config)或使用应用程序设计器对连接字符串进行必要的更改。有关连接字符串的附加信息,请参阅将XAF应用程序连接到数据库提供程序主题。
If you ever need to recreate your database, just drop it from the database server or remove the file, and it will be recreated automatically the next time the application runs.
如果您需要重新创建数据库,只需从数据库服务器删除它或删除文件,它将在下一次运行应用程序时自动重新创建。
Comprehensive Tutorial 综合教程(MainDemo应用程序)的更多相关文章
- 【原创】车载实时路况信息接收终端移植于Smart210开发板 --- 综合教程
[原创]车载实时路况信息接收终端移植于Smart210开发板 --- 综合教程 所用工具: windows电脑 Ubuntu12.04 Smart210开发板 4g以上SD卡 U盘 步骤: 1. ...
- HP LoadRunner 12.02 Tutorial T7177-88037教程独家中文版
HP LoadRunner 12.02 Tutorial T7177-88037教程独家中文版 Tylan独家呕血翻译 转载请注明出自“天外归云”的博客园 Welcome to the LoadRun ...
- [教程] [授权翻译] 使用补丁修改DSDT/SSDT [DSDT/SSDT综合教程]
[教程] [授权翻译] 使用补丁修改DSDT/SSDT [DSDT/SSDT综合教程] http://bbs.pcbeta.com/viewthread-1571455-1-1.html [教程] [ ...
- iOS Sprite Kit教程之编写程序以及Xcode的介绍
iOS Sprite Kit教程之编写程序以及Xcode的介绍 Xcode界面介绍 一个Xcode项目由很多的文件组成,例如代码文件.资源文件等.Xcode会帮助开发者对这些文件进行管理.所以,Xco ...
- Directx11教程(21) 修正程序最小化异常bug
原文:Directx11教程(21) 修正程序最小化异常bug 很长时间竟然没有注意到,窗口最小化时候,程序会异常,今天调试水面程序时,随意间最小化了窗口,发现程序异常了.经过调试,原来程 ...
- [Python 3.x 官方文档翻译]The Python Tutorial Python教程
Python is an easy to learn, powerful programming language. It has efficient high-level data structur ...
- 使用补丁修改DSDT/SSDT [DSDT/SSDT综合教程]
请尊重原贴作者 与 本贴楼主.原作者把自己丰富的经验分享给了大家,本贴作者每个贴子平均花了3个小时翻译. 所以,转载请注明出处:原贴地址:http://www.tonymacx86.com/ ...
- PyQt5教程——第一个程序(2)
用PyQt5写的第一个程序 在这篇PyQt5教程中,我们可以学习一些PyQt5的基础应用. 简单的例子 这是一个显示一个小窗口的简单例子.我们可以做许多这样的窗口.我们可以调整它的窗口尺寸,最大化或最 ...
- 转:libFuzzer Tutorial(libFuzzer教程)
转:https://github.com/google/fuzzer-test-suite/blob/master/tutorial/libFuzzerTutorial.md 本文在Ubuntu16下 ...
随机推荐
- 虚拟化和Docker
1.硬件层的虚拟化具有高性能和隔离性,因为hypervisor直接在硬件上运行,有利于控制VM的OS访问硬件资源,使用这种解决方案的产品有VMware ESXI和Xen server. 2.hyper ...
- vue中点击屏幕其他区域关闭自定义div弹出框
直接上代码: mounted: function () { let that = this; $(document).on('click', function (e) { let dom = $('. ...
- Flutter报错记录
1.Could not find an option named "androidx". Run 'flutter -h' (or 'flutter -h') for avai ...
- Nacos 集群部署
关于nacos 集群部署,网上的示例往往不全或不可用,而官方的教程太简单了.官方也提供了一个 docker + nacos 的伪集群的 部署示例.但毕竟是 伪, 不能实际生产使用. 全网就几乎就没有 ...
- JavaWeb中的MVC
不使用什么MVC的案例分析: 利用Servlet与jsp实现登陆请求,数据库查询,以及页面的跳转逻辑 具体流程如下: 不做任何结构上的考虑,可以简单的做如下实现: 目录结构 LoginServlet ...
- 从0系统学Android--3.1编写UI界面
从0系统学Android--3.1编写UI界面 本系列文章目录:更多精品文章分类 本系列持续更新中.... 界面设计和功能开发同样重要,界面美观的应用程序不仅可以大大增加用户粘性,还能帮我们吸引到更多 ...
- Maven简介与使用
Maven介绍 Maven是项目管理工具,对软件项目提供构建与依赖管理 Mavan是Apache下的Java开源项目 Mavan为Java项目提供了统一的管理方式,已成为业界标准 Maven核心特性 ...
- Fiddler常用设置
1.设置抓取HTTPS请求 勾选后弹窗添加证书确认框 点击yes后,弹出警告 点击是,成功添加证书 点击OK确认,设置成功了 成功抓取到HTTPS请求 2.自定义会话框,展示GET和POST请求 3. ...
- 关于字符串的格式化----format与%
格式化字符串一般有两种方法 1.%(d整数,s字符,f浮点数) 2.format 用处极为广泛且限制不多 注意:第一种对于数组的传递会报TypeError,所以必须传递数组 a = (1, 2, 3) ...
- 12c新特性 在线操作数据文件
我们都知道,oracle pre-12c之前,若是想要把一个数据文件改名或者迁移, 必须在归档模式下先把这个数据文件offline之后, 然后进行OS上的copy或者rename 操作, 最后在sql ...