编程语言
首页 > 编程语言> > Comprehensive Tutorial (MainDemo Application) 综合教程(MainDemo应用程序)

Comprehensive Tutorial (MainDemo Application) 综合教程(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.

本教程由以下部分组成。

         本节分为两个部分,它们描述了两个不同对象关系映射(ORM)的使用

tools: Entity Framework (EF) and eXpress Persistent Objects (XPO)

工具:实体框架(EF)和表示持久对象(XPO)

 

Main_Demo_BMD

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.
如果您需要重新创建数据库,只需从数据库服务器删除它或删除文件,它将在下一次运行应用程序时自动重新创建。

标签:application,Comprehensive,section,应用程序,will,Application,MainDemo,config,XAF
来源: https://www.cnblogs.com/foreachlife/p/Comprehensive-Tutorial.html