创建 Common Data Service 数据库Create a Common Data Service database

可以将 Common Data Service 用作数据存储,从而创建数据库并生成应用。You can create a database and build apps by using Common Data Service as a data store. 可以创建你自己的自定义实体,也可以使用预定义的实体。You can either create your own custom entities or use the predefined entities. 若要创建数据库,要么必须先创建一个环境,要么必须以管理员身份分配到现有环境。To create a database, you first need to either create an environment, or be assigned to an existing environment as an administrator. 此外,还必须分配有相应的许可证。In addition, you must be assigned the appropriate license. 若要了解如何购买 Common Data Service 使用套餐,请参阅定价信息For information on purchasing a plan for using the Common Data Service, see Pricing info.

数据库创建方法有三种:There are three ways to create a database:

  • 在管理中心内In the admin center
  • 在 powerapps.com 的“开始”窗格中In the Home pane of powerapps.com
  • 在 powerapps.com 的“实体”窗格中In the Entities pane of powerapps.com

在管理中心内创建数据库Create a database in the admin center

  1. “管理中心”的左侧导航窗格中,单击“环境”。In the admin center, in the left navigation pane, click Environments.
  2. 选择环境或新建一个环境(如果需要的话)。Select the environment, or create a new environment if needed.
  3. 单击“数据库”选项卡上的“创建数据库”。On the Database tab, click Create a database. 创建的数据库默认处于开放访问模式。By default, the database is created in Open access mode.
  4. 若要强制执行安全规范,请选中“限制访问”。If you want to enforce security, select Restrict access.

在 powerapps.com 的“开始”窗格中创建数据库Create a database in the Home pane of powerapps.com

  1. powerapps.com 上的左侧导航窗格中,单击“开始”。On powerapps.com, in the left navigation pane, click Home.
  2. 在“使用 Microsoft Common Data Service”部分中,查找“创建数据库”或“开始使用”按钮。In the Use the Microsoft Common Data Service section, look for the button that is named either Create database or Get started. 具体查找哪个按钮名称视你的许可证和权限分配而定。The button's name depends on your license and permission assignments. 可能无法在当前环境中创建数据库。You might not be allowed to create a database in the current environment.

在当前环境中创建数据库Create database in current environnmet

  1. 单击“创建数据库”。Click Create database.
  2. 若要强制执行安全规范,请选中对话框中的“限制对数据库的访问”复选框。In the dialog box, select the Restrict access to database check box if you want to enforce security.
  3. 单击“创建我的数据库”。Click Create my database.

从新建环境开始Get started by creating a new environment

  1. 单击“开始使用”。Click Get started.
  2. 在对话框中,单击“创建新环境”,开始新建环境和数据库。In the dialog box, click Create new environment to start to create a new environment and database.
  3. 在“环境名称”字段中,输入一个独一无二的名称。In the Environment name field, enter a unique name. 在“区域”字段中,选择相应的区域。In the Region field, select the appropriate region.
  4. 若要强制执行安全规范,请选中“限制对数据库的访问”复选框。Select the Restrict access to database check box if you want to enforce security.
  5. 单击“创建”。Click Create.

在 powerapps.com 的“实体”窗格中创建数据库Create a database in the Entities pane of powerapps.com

  1. powerapps.com 上,展开“Common Data Service”部分,然后单击或点击左侧导航窗格中的“实体”。On powerapps.com, expand the Common Data Service section and click or tap Entities in the left navigation pane.
  2. 单击“开始使用”。Click Get started. 创建的数据库处于开放访问模式。The database is created in Open access mode.

开放式和受限式数据库Open and restricted databases

创建的数据库默认处于开放访问模式。By default, a database is created in Open access mode. 在此模式下,并未强制执行安全规范来限制对实体的访问。In this mode, security for access to entities isn't enforced. 环境管理员可以将数据库设为处于限制访问模式。The environment administrator can set the database to Restrict access mode. 在此模式下,将根据权限集和角色,强制执行安全规范来限制对实体的访问。In this mode, security for access to entities is enforced, based on permission sets and roles.

  1. “管理中心”的左侧导航窗格中,单击“环境”。On admin center, in the left navigation pane, click Environments.
  2. 选择环境。Select the environment.
  3. 在“数据库”选项卡上,执行下列步骤之一:On the Database tab, follow one of these steps:
    • 若要强制执行安全规范,请选中“限制访问”。To enforce security, select Restrict access.
    • 若要禁用安全规范,请选中“开放访问”。To disable security, select Open access.

许可证和安全权限License and security permissions

必须是选定环境中的管理员,并且分配有相应的许可证,才能创建数据库。To create a database, you must be an administrator in the selected environment, and the appropriate license must be assigned to you. 在环境中,可以使用“安全”选项卡进一步配置其他用户的安全权限。有关详细信息,请参阅配置数据库安全设置安全模型From the environment, you can further configure security permissions for other users by using the Security tab. For more information, see Configure database security and Security model.

隐私声明Privacy notice

通过 Microsoft PowerApps 通用数据模型,我们收集自定义实体和字段名称并将其存储在诊断系统中。With the Microsoft PowerApps common data model we collect and store custom entity and field names in our diagnostic systems. 我们利用这一知识来改进我们客户的通用数据模型。We use this knowledge to improve the common data model for our customers. 创建者创建的实体和字段名称帮助我们了解 Microsoft PowerApps 社区中的常见方案,并确定服务标准实体范围中的缺口,如与组织相关的架构。The entity and field names that Creators create help us understand scenarios that are common across the Microsoft PowerApps community and ascertain gaps in the service’s standard entity coverage, such as schemas related to organizations. Microsoft 无法访问或使用数据库表中与这些实体相关联的数据,此类数据也无法在预配了数据库的区域之外进行复制。The data in the database tables associated with these entities is not accessed or used by Microsoft or replicated outside of the region in which the database is provisioned. 不过,请注意,自定义实体和字段名称可能可以进行跨区域复制,并根据我们的数据保留策略进行删除。Note, however, the custom entity and field names may be replicated across regions and are deleted in accordance with our data retention policies. Microsoft 致力于保护你的隐私安全,我们的信任中心对此进行了详述。Microsoft is committed to your privacy as described further in our Trust Center.