This topic describes how to use the Solution Wizard to create XAF applications and specify a connection string.

本主题介绍如何使用解决方案向导创建XAF应用程序并指定连接字符串。

Create the WinForms and ASP.NET Applications

  1. From the Visual Studio main menu, select File | New | Project... to invoke the New Project dialog.

  2. In the Installed tree, expand a language node (Visual C# or Visual Basic) and choose DevExpress XAF. Select DevExpress v19.2 XAF Solution Wizard, specify the new solution's name - "SimpleProjectManager", and click OK.

创建WinForms和ASP。网络应用

  1. 在Visual Studio主菜单中,选择文件| New | Project…以调用新项目对话框。
  2. 在已安装的树中,展开语言节点(Visual c#或Visual Basic)并选择DevExpress XAF。选择DevExpress v19.2 XAF解决方案向导,指定新解决方案的名称——“SimpleProjectManager”,然后单击OK。

  1. Choose the target platform(s) on the Solution Wizard's first page. You can create separate WinForms, ASP.NET, Mobile (maintenance mode) applications, or multiple applications at once. Choose the Windows and Web platforms and click Next.

在解决方案向导的首页上选择目标平台。您可以创建单独的WinForms, ASP。NET、移动(维护模式)应用程序或多个应用程序同时使用。选择Windows和Web平台,然后单击Next。

  1. Choose Entity Framework Code Fist and eXpress Persistent Objects and click Next.

首先选择实体框架代码并表示持久对象,然后单击Next。

Note

You can use the Entity Framework (EF)

or eXpress Persistent Objects (XPO) as your project's object-relational mapping (ORM)

请注意
您可以使用实体框架(EF)
或者将持久对象(XPO)表示为项目的对象-关系映射(ORM

  1. tool. This tutorial demonstrates the EF Code First and XPO-based approaches. Two ORMs are selected simultaneously for demo purposes. Real-world applications usually use one ORM.

  2. You can choose security options for your application. Choose None as the Authentication type. This tutorial does not show how to use the XAF Security System.

工具。本教程首先演示EF代码和基于xpo的方法。同时选择两个orm进行演示。实际应用程序通常使用一个ORM。
           您可以为应用程序选择安全选项。选择None作为身份验证类型。本教程不介绍如何使用XAF安全系统。

  1. Click Finish.

The Solution Wizard creates a solution with the following projects:

  1. 单击Finish。

解决方案向导创建一个解决方案与以下项目

Refer to the Application Solution Structure topic for more information on projects an XAF solution contains.

有关XAF解决方案包含的项目的更多信息,请参阅应用程序解决方案结构主题。

Specify the Database Connection

指定数据库连接

The XAF applications use the MSSql Server LocalDB database with the following connection string:

XAF 应用程序使用具有以下连接字符串的 MSSql 服务器 LocalDB 数据库:

"Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\v11.1;Initial Catalog=SimpleProjectManager"

 

You can modify this connection string in the SimpleProjectManager.Win\App.config and SimpleProjectManager.Web\Web.config files (refer to the connectionStrings element). See the Connect an XAF Application to a Database Provider topic for more information.

At this stage, you can run the WinForms and ASP.NET applications with automatically created navigation, menu, and other UI elements for line-of-business (LOB) applications. However, the business model and logic are not defined yet - this is implemented in the following topics.

您可以在"简单项目经理"中修改此连接字符串。Win_App.config 和 SimpleProjectManager.Web_Web.config 文件(请参阅连接字符串元素)。有关详细信息,请参阅将 XAF 应用程序连接到数据库提供程序主题。
在此阶段,您可以使用业务线 (LOB) 应用程序自动创建的导航、菜单和其他 UI 元素运行 WinForms 和ASP.NET应用程序。但是,业务模型和逻辑尚未定义 - 这在以下主题中实现。

Create an XAF Application 创建一个XAF应用程序的更多相关文章

  1. 002.Create a web API with ASP.NET Core MVC and Visual Studio for Windows -- 【在windows上用vs与asp.net core mvc 创建一个 web api 程序】

    Create a web API with ASP.NET Core MVC and Visual Studio for Windows 在windows上用vs与asp.net core mvc 创 ...

  2. 使用IDEA创建一个Servlet应用程序

    使用IDEA创建一个Servlet应用程序 第一步:创建web应用 选择web application应用,之后填写项目名称等. 第二步:项目配置 在WEB-INF目录下创建两个文件夹:classes ...

  3. 使用 Android Studio 开发工具创建一个 Android 应用程序,显示一行文字“Hello Android”,并将应用程序的名称更改为“FirstApp”。

    需求说明: 使用 Android Studio 开发工具创建一个 Android 应用程序,显示一行文字"Hello Android",并将应用程序的名称更改为"Firs ...

  4. 使用 Android Studio 开发工具创建一个 Android 应用程序,并在 Genymotion 模拟器上运行

    需求说明: 使用 Android Studio 开发工具创建一个 Android 应用程序,并在 Genymotion 模拟器上运行 实现步骤: 打开 Android Studio,创建一个 Andr ...

  5. 创建一个简单MyBatis程序

    文章目录 MyBatis基础 MyBatis 简介 创建一个MyBatis程序 1. 创建Java项目 2. 加载MyBatis包 3. 编写POJO类和映射文件 4.创建mybatis-config ...

  6. VB6 如何创建一个标准控制台程序

    打开 VB6 并新建一个标准EXE程序,把窗口删掉,然后再加入一个模块. 在模块中加入AllocConsole.FreeConsole.SetConsoleTitle.Sleep的API声明: Pub ...

  7. 创建一个Windows Service 程序

    1.新建Windows项目,选择"Windows服务"类型的项目. 2.在生成的Service1.cs中代码中写你需要的代码,如下: using System; using Sys ...

  8. 创建一个应用台程序,声明一个 int变量,并且初始化数组,通过while语句输出数组内的所有成员。

    ]{,,,,}; ; ) { Console.WriteLine("myNum[{0}]的值为{1}", s,myNum[s]); s++; } Console.ReadLine( ...

  9. 创建一个自定义的Application类

    由于每个应用程序必须创建一个Application对象,vs为开发人员提供了模板来减轻开发人员的重复工作.当使用vs创建一个WPF应用程序是,vs会自动创建一个app.xaml文件, <Appl ...

随机推荐

  1. easyui treegrid数据重复加载问题

    在使用easyui的时候,出现了数据重复加载的问题.如下图 关于这个问题有两种说法,第一种说法是 easyui-datagrid 类在html和js中重复定义,数据渲染时会加载两次.另一种是$(&qu ...

  2. RabbitMQ 匿名队列断开问题定位记录

    RabbitMQ 匿名队列断开问题定位分析 1    问题现象 平台中,服务的信息交互通过RabbitMQ进行.在实际的使用中,发现系统启动后,就会出现status 监控的mq connection断 ...

  3. javascript中的定时器入门

    JavaScript提供定时器(timer)的功能,可以延期执行或重复执行函数或代码段. window对象提供了三个方法来实现定时器的效果,分别是setTimeout().setInternal()和 ...

  4. Linux介绍以及VMware和Centos的安装

    一. Linux介绍 1 Linux诞生的故事 Unix篇: 为了进一步强化大型主机的功能,让主机的资源可以提供更多的使用者来利用,所以在1964年, 由AT&A公司的贝尔实验室(Bell). ...

  5. 使用Kubernetes进行ProxySQL本机群集

    自v1.4.2起,ProxySQL支持本机群集.这意味着多个ProxySQL实例可识别群集; 他们了解彼此的状态,并能够通过根据配置版本,时间戳和校验和值同步最新的配置来自动处理配置更改. Proxy ...

  6. Linux安装docker-compose

    下载:curl -L https://get.daocloud.io/docker/compose/releases/download/1.16.1/docker-compose-`uname -s` ...

  7. 高强度学习训练第十六天总结: Spring框架中的设计模式

    仔细想了想..没必要重复造轮子. 每天复习啥了就直接CTRL CV了 https://gitee.com/SnailClimb/JavaGuide/blob/master/docs/system-de ...

  8. 网络协议 15 - P2P 协议

    大家说起种子,应该都知道是用来下载资源的.那么资源下载都有哪些方式?种子下载又有什么优势呢? 下载电影的两种方式     第一种是通过 HTTP 进行下载.这种方式,有过经历的人应该体会到,当下载文件 ...

  9. WebAPI的使用

    后台API的代码: using System; using System.Collections.Generic; using System.Linq; using System.Web; using ...

  10. 【解决 FTP】windows访问Linux的vsftpd(FTP服务器)问题200 Switching to ASCII mode,227 Entering Passive Mode

    转载:关于FTP主动模式(active mode)与被动模式(passive mode)的工作原理: 主动模式(服务器向客户端敲门,然后客户端开门)FTP:客户机与服务器之间建立连接时,客户机是大于1 ...