First off, thank you for considering contributing to CachedQueries! It's people like you that make this project great.
This project and everyone participating in it is governed by our commitment to a respectful and inclusive community. By participating, you are expected to uphold this standard.
Before creating bug reports, please check the existing issues to avoid duplicates. When you create a bug report, include as many details as possible:
- Use a clear and descriptive title
- Describe the exact steps to reproduce the problem
- Provide specific examples (code snippets, configuration)
- Describe the behavior you observed and what you expected
- Include your environment details (.NET version, EF Core version, cache provider)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion:
- Use a clear and descriptive title
- Provide a detailed description of the proposed functionality
- Explain why this enhancement would be useful
- List any alternatives you've considered
- Fork the repo and create your branch from
main - If you've added code that should be tested, add tests
- Ensure the test suite passes (
dotnet test) - Make sure your code follows the existing code style
- Write a good commit message
# Clone your fork
git clone https://github.com/YOUR_USERNAME/CachedQueries.git
cd CachedQueries
# Restore dependencies
dotnet restore
# Build the solution
dotnet build
# Run tests
dotnet testsrc/
├── CachedQueries/ # Main library
│ ├── Abstractions/ # Interfaces
│ ├── Extensions/ # Extension methods
│ ├── Interceptors/ # EF Core interceptors
│ ├── Internal/ # Internal implementations
│ └── Providers/ # Cache provider implementations
├── CachedQueries.Redis/ # Redis provider package
└── CachedQueries.Tests/ # Unit tests
- Follow C# naming conventions
- Use
async/awaitfor asynchronous code - Add XML documentation comments for public APIs
- Keep methods focused and small
- Write unit tests for new functionality
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests after the first line
Releases are automated via GitHub Actions:
- Update version in
Directory.Build.propsif needed - Update
CHANGELOG.md - Create a git tag:
git tag v3.x.x - Push the tag:
git push origin v3.x.x - GitHub Actions will build, test, and publish to NuGet
Feel free to open an issue with your question or reach out to the maintainers.
Thank you for contributing! 🎉