Bounteous.Data.Extensions provides developer utilities for Bounteous.Data including extensions for creating test objects and bypassing read-only validation in controlled environments.
NOT INTENDED FOR PRODUCTION USE
This package bypasses read-only validation and should only be used in:
- Unit test projects
- Data migration projects
- Development environments
DO NOT USE IN PRODUCTION CODE.
- ✅ ReadOnlyDbSetExtensions - Utilities for creating test objects with read-only entities
- ✅ Development Helpers - Bypass validation for testing and migration scenarios
- ✅ Test Object Creation - Simplified creation of entities for unit testing
dotnet add package Bounteous.Data.ExtensionsOr via Package Manager Console:
Install-Package Bounteous.Data.Extensions- .NET 10.0+
- Bounteous.Data
- Bounteous.Core
- Microsoft.EntityFrameworkCore
using Bounteous.Data.Extensions;
// Create test entities bypassing read-only validation
var testEntity = readOnlyDbSet.CreateTestObject();// For data migrations or development setup
using var scope = readOnlyDbSet.BypassReadOnlyValidation();
// Perform operations that would normally be blockedThis project is licensed under the MIT License - see the LICENSE file for details.