XperienceCommunity.DataRepository is a library designed to simplify data access and management within applications built on Xperience by Kentico. This library provides a repository pattern implementation, enabling developers to perform data access operations in a more structured and maintainable way.
Add the package to your application using the .NET CLI: View the Usage Guide for more detailed instructions.
dotnet add package XperienceCommunity.DataRepository
Alternatively, you can add the package using the NuGet Package Manager in Visual Studio:
- Right-click on your project in the Solution Explorer.
- Select "Manage NuGet Packages..."
- Search for
XperienceCommunity.DataRepository
. - Click "Install" to add the package to your project.
In your Startup.cs
or Program.cs
file, configure the services to use the repository pattern. Add the following code to the ConfigureServices
method:
// Register the repository services
services.AddXperienceDataRepositories(options=> { options.CacheMinutes = 60;});
To install the XperienceCommunity.DataRepository
library, follow these steps:
Add the package to your application using the .NET CLI: View the Usage Guide for more detailed instructions.
dotnet add package XperienceCommunity.DataRepository
Alternatively, you can add the package using the NuGet Package Manager in Visual Studio:
- Right-click on your project in the Solution Explorer.
- Select "Manage NuGet Packages..."
- Search for
XperienceCommunity.DataRepository
. - Click "Install" to add the package to your project.
In your Startup.cs
or Program.cs
file, configure the services to use the repository pattern. Add the following code to the ConfigureServices
method:
// Register the repository services
services.AddXperienceDataRepositories(options=> { options.CacheMinutes = 60;});
To see the guidelines for Contributing to Kentico open source software, please see Kentico's CONTRIBUTING.md
for more information and follow the Kentico's CODE_OF_CONDUCT
.
Instructions and technical details for contributing to this project can be found in Contributing Setup.
Distributed under the MIT License. See LICENSE.md
for more information.
This contribution is not directly supported or maintained by Kentico. It serves to illustrate some specific functionality or is a proof of concept for a specific version of the product. Feel free to contribute yourself, file an issue, fix bugs, but Kentico does not guarantee any assistance nor support.
XperienceCommunity.DataRepository is a library designed to simplify data access and management within applications built on Xperience by Kentico. This library provides a repository pattern implementation, enabling developers to perform CRUD (Create, Read, Update, Delete) operations in a more structured and maintainable way.
- Repository Pattern: Provides a consistent way to access data, promoting separation of concerns and testability.
- Support for .NET 8 and .NET 9: Leverages the latest features and improvements in the .NET ecosystem.
- Integration with Xperience by Kentico: Seamlessly integrates with Xperience by Kentico, allowing for efficient data management within the CMS.
- Asynchronous Operations: Supports async/await patterns for non-blocking data operations.
- Dependency Injection: Designed to work with the built-in dependency injection container in ASP.NET Core.
- Simplified data access for applications using Xperience by Kentico.
- Improved code maintainability and testability through the repository pattern.
- Efficient handling of data operations with support for asynchronous programming.
- The library is designed specifically for use with Xperience by Kentico and may not be suitable for other CMS or data management systems.
- Certain advanced data operations may require custom implementations beyond the provided repository pattern.
- This matrix explains which versions of the library are compatible with different versions of Xperience by Kentico / Kentico Xperience 13---
Xperience Version | Library Version |
---|---|
>= 29.6.0 | 1.0.0 |