Skip to content

Commit 04181f3

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/powerapps-docs-pr (branch live)
2 parents cc30569 + 8b137b5 commit 04181f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

powerapps-docs/developer/data-platform/org-service/generate-early-bound-classes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Generate early-bound classes for the SDK for .NET"
33
description: "Learn how to use the Power Platform CLI pac modelbuilder build command to generate early-bound classes for use with the Microsoft Dataverse SDK for .NET. This tool generates early-bound .NET classes that represent the Entity Data Model used by Dataverse."
4-
ms.date: 10/18/2023
4+
ms.date: 01/26/2024
55
author: kkanakas
66
ms.author: kartikka
77
ms.reviewer: pehecke
@@ -63,8 +63,7 @@ Use the following steps to get started:
6363
"entitynamesfilter-comment": "Filters the list of entities are retrieved when reading data from Dataverse.",
6464
"entityNamesFilter": [
6565
"account",
66-
"contact",
67-
"sample_*"
66+
"contact"
6867
],
6968
"entitytypesfolder-comment": "Folder name that contains entities.",
7069
"entityTypesFolder": "Entities",
@@ -149,7 +148,9 @@ Generation Complete - 00:00:01.815
149148
PS C:\projects\exampleproject\model>
150149
```
151150

152-
When you inspect the output, notice that it only generates classes for the tables specified by `entityNamesFilter` and only the messages specified in the `messageNamesFilter`. You should specify which tables (entities) and messages you use in your project. Otherwise, classes for all tables and messages are generated. You can use `*` as a wildcard character in these values. This is useful when items in your solution share a common customization prefix.
151+
When you inspect the output, notice that it only generates classes for the tables specified by `entityNamesFilter` and only the messages specified in the `messageNamesFilter`. You should specify which tables (entities) and messages you use in your project. Otherwise, classes for all tables and messages are generated.
152+
153+
For `messageNamesFilter`, you can use `*` as a wildcard character in these values. This is useful when messages in your solution share a common customization prefix.
153154

154155
`pac modelbuilder build` writes the files into folders with names you can control in the settings file:
155156

@@ -180,7 +181,7 @@ Here's an example showing how to generate files with the same settings as the ex
180181
```powershell
181182
PS C:\>pac modelbuilder build `
182183
--outdirectory C:\projects\exampleproject\model `
183-
--entitynamesfilter 'account;contact;sample_*' `
184+
--entitynamesfilter 'account;contact' `
184185
--generatesdkmessages `
185186
--messagenamesfilter 'searchautocomplete;searchquery;sample_*' `
186187
--namespace ExampleProject `
@@ -207,8 +208,7 @@ This doesn't include all the settings because it uses the default options. If yo
207208
"optionSetsTypesFolder": "OptionSets",
208209
"entityNamesFilter": [
209210
"account",
210-
"contact",
211-
"sample_*"
211+
"contact"
212212
],
213213
"messageNamesFilter": [
214214
"searchautocomplete",

0 commit comments

Comments
 (0)