ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

Create an XAF Application 创建一个XAF应用程序

2019-12-11 11:00:06  阅读:366  来源: 互联网

标签:Web applications Create 应用程序 Application Visual SimpleProjectManager XAF


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.

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

     

    SPM_NewProject

  4. 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.

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

     

    CTutor_Solution_Wizard_1

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

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

     

    SolutionWizard_Step2_Both_Cut

    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.

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

     

    SolutionWizard_Step3_None_Cut

  4. Click Finish.

The Solution Wizard creates a solution with the following projects:

单击Finish。
解决方案向导创建一个解决方案与以下项目

SPM_SolutionExplorer

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:

"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.

Next topic: Define the Logical Data Model and Relationships

指定数据库连接
XAF应用程序使用MSSql Server LocalDB数据库,连接字符串如下:

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

您可以在SimpleProjectManager.Win\App中修改这个连接字符串。配置和SimpleProjectManager.Web \ Web。配置文件(参考connectionStrings元素)。有关更多信息,请参见将XAF应用程序连接到数据库提供程序主题。
在这个阶段,您可以运行WinForms和ASP。NET应用程序,具有为业务线(LOB)应用程序自动创建的导航、菜单和其他UI元素。然而,业务模型和逻辑还没有定义——这将在以下主题中实现。

标签:Web,applications,Create,应用程序,Application,Visual,SimpleProjectManager,XAF
来源: https://www.cnblogs.com/foreachlife/p/CreateAnXAFApplication.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有