You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add Cosmos DB integration and repository implementation
Introduced new projects and configurations to support Cosmos DB integration in a .NET web application. This includes:
- Adding new project references and updating solution configurations.
- Setting up necessary services, controllers, models, and configuration files.
- Implementing a Cosmos DB repository with options, extensions, and tests.
- Adding license information to several files.
- Creating a test project to ensure repository functionality and correctness.
* Refactor solution and add new Bicep deployment files
- Removed `Sample.Datasync.Server.SingleContainer` project from `Datasync.Toolkit.sln`.
- Added `CommunityToolkit.Datasync.Server.CosmosDb.Test` to the solution.
- Created new solution file `Datasync.Server.CosmosDb.SingleContainer.sln` with relevant projects.
- Updated `main.bicep` to include licensing and resource deployment parameters.
- Added `main.parameters.json` for Bicep deployment parameters.
- Created `resources.bicep` to define CosmosDB and App Service resources.
- Updated `Sample.Datasync.Server.SingleContainer.csproj` with necessary project references.
* Add Cosmos DB parameters and repository tests
- Updated `main.bicep` to include new parameters for `accountName`, `databaseName`, and `containerName`, modifying existing parameters to use these values.
- Adjusted composite indexes in `resources.bicep` for better data organization.
- Enhanced `PackedKeyRepository_Tests.cs` with setup code and new test cases for error handling of malformed IDs.
- Introduced `PackedKeyOptions.cs` to manage ID generation and partition key handling for Cosmos DB entities.
* Update partitionKey in Bicep resource definition
Modified the `partitionKey` property in the Bicep file, changing the path from `'/myPartitionKey'` to `'/entity'`. This change reflects an updated partitioning strategy for the database container.
* Refactor variable declarations in Program.cs
Updated the declarations for `builder` and `app` to use explicit types (`WebApplicationBuilder` and `WebApplication`, respectively) instead of `var`. This change improves code clarity and readability.
* Update Bicep and Azure YAML configurations
Renamed connection string resource to 'appsettings' and updated its properties. Added HTTP logging settings for the app service. Enhanced `azure.yaml` with schema reference, project metadata, and defined a deployment workflow. Configured backend service with project details and hosting environment.
0 commit comments