Skip to content

Add modern .NET 6+ RetrieveTimeZone sample#754

Merged
phecke merged 2 commits intomasterfrom
claude-sample-upgrade
Jan 17, 2026
Merged

Add modern .NET 6+ RetrieveTimeZone sample#754
phecke merged 2 commits intomasterfrom
claude-sample-upgrade

Conversation

@phecke
Copy link
Member

@phecke phecke commented Jan 16, 2026

Adds a modern C#-NETCore implementation of the RetrieveTimeZone sample, demonstrating time zone operations in Dataverse using the Microsoft.PowerPlatform.Dataverse.Client SDK.

Key features:

  • Uses ServiceClient and modern .NET 6.0 patterns
  • Configuration via appsettings.json
  • Demonstrates 7 time zone operations: retrieving user settings, getting all time zones for locale, finding by name/ID, filtering by criteria, and UTC/local time conversions
  • Comprehensive README with usage instructions

Also adds shared appsettings.json for CSharp-NETCore samples.

Note: All code creation and updates was done by Claude Code.

phecke and others added 2 commits January 16, 2026 15:07
Adds a modern C#-NETCore implementation of the RetrieveTimeZone sample, demonstrating time zone operations in Dataverse using the Microsoft.PowerPlatform.Dataverse.Client SDK.

Key features:
- Uses ServiceClient and modern .NET 6.0 patterns
- Configuration via appsettings.json
- Demonstrates 7 time zone operations: retrieving user settings, getting all time zones for locale, finding by name/ID, filtering by criteria, and UTC/local time conversions
- Comprehensive README with usage instructions

Also adds shared appsettings.json for CSharp-NETCore samples.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Move time zone demonstration methods to the beginning of the class definition, before configuration and Main method. This improves code readability by showing the core concepts first.

Changes:
- Added region markers to separate demonstration methods from setup code
- Demonstration methods now appear immediately after static fields
- Application setup (Configuration, Constructor, Main) moved to end

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@phecke phecke merged commit 53dc33e into master Jan 17, 2026
1 check passed
@phecke phecke deleted the claude-sample-upgrade branch January 21, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant