-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V3 YAML schema for Data Sources (#712)
- Loading branch information
1 parent
2e59eee
commit 1349006
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/Persistence/PaYaml/Models/SchemaV3/DataSourceInstance.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using YamlDotNet.Serialization; | ||
|
||
namespace Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models.SchemaV3; | ||
|
||
public enum DataSourceInstanceType | ||
{ | ||
DataverseTable, | ||
} | ||
|
||
public record DataSourceInstance | ||
{ | ||
[YamlMember(DefaultValuesHandling = DefaultValuesHandling.Preserve)] | ||
public required DataSourceInstanceType Type { get; init; } | ||
public string? TableLogicalName { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/schemas-tests/pa-yaml/v3.0/Examples/Src/DataSources/DataSources1.pa.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
DataSources: | ||
Accounts: | ||
Type: DataverseTable | ||
TableLogicalName: account | ||
Contacts: | ||
Type: DataverseTable | ||
TableLogicalName: contact | ||
Users: | ||
Type: DataverseTable | ||
TableLogicalName: systemuser |