Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema of DataSource in v3 YAML #715

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Persistence/PaYaml/Models/SchemaV3/DataSourceInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

namespace Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models.SchemaV3;

public enum DataSourceInstanceType
public enum DataSourceType
{
DataverseTable,
Table,
Actions
}

public record DataSourceInstance
{
[YamlMember(DefaultValuesHandling = DefaultValuesHandling.Preserve)]
public required DataSourceInstanceType Type { get; init; }
public string? TableLogicalName { get; init; }
public required DataSourceType Type { get; init; }
jamevaalet marked this conversation as resolved.
Show resolved Hide resolved
public NamedObjectMapping<string>? Parameters { get; init; }
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
DataSources:
jamevaalet marked this conversation as resolved.
Show resolved Hide resolved
Accounts:
Type: DataverseTable
TableLogicalName: account
Type: Table
Parameters:
TableLogicalName: account
Contacts:
Type: DataverseTable
TableLogicalName: contact
Type: Table
Parameters:
TableLogicalName: contact
Users:
Type: DataverseTable
TableLogicalName: systemuser
Type: Table
Parameters:
TableLogicalName: systemuser
Loading