GlueFramework.Core
1.0.3
dotnet add package GlueFramework.Core --version 1.0.3
NuGet\Install-Package GlueFramework.Core -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GlueFramework.Core" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GlueFramework.Core" Version="1.0.3" />
<PackageReference Include="GlueFramework.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GlueFramework.Core --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GlueFramework.Core, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GlueFramework.Core@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GlueFramework.Core&version=1.0.3
#tool nuget:?package=GlueFramework.Core&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Glue Framework Core
The foundational package of Glue Framework providing DDD building blocks and data access abstractions.
Features
Repository Pattern with LINQ
// Query with lambda
var items = await _repository.QueryAsync(x => x.Category != "");
// Query top N
var top3 = await _repository.QueryTopAsync(x => x.IsActive, 3);
// Paged search with filter options
var page = await _repository.PagerSearchAsync(
new FilterOptions<MyEntity>(
x => x.Status == Status.Active,
new PagerInfo { PageIndex = 1, PageSize = 20 }
)
);
DDD Building Blocks
- Entity & ValueObject - Base classes for domain models
- AggregateRoot - Transaction boundary markers
- DomainEvent - In-process event publishing
- UnitOfWork - Transaction management
Data Access
- IDbSession - Database session abstraction
- IDALFactory - Data Access Layer factory
- IRepository<T> - Generic repository interface
Cross-Cutting Concerns
- IIdentityProvider - User identity abstraction
- IHashService - Cryptographic hashing
- ICacheManager - Caching abstraction
Usage
public class OrderService
{
private readonly IRepository<Order> _orderRepo;
private readonly IUnitOfWork _uow;
public OrderService(IRepository<Order> orderRepo, IUnitOfWork uow)
{
_orderRepo = orderRepo;
_uow = uow;
}
public async Task<Order> CreateOrderAsync(CreateOrderDto dto)
{
var order = new Order(dto.CustomerId, dto.Items);
await _orderRepo.AddAsync(order);
await _uow.CommitAsync();
return order;
}
}
Dependencies
- Autofac for DI
- Dapper for data access
- Newtonsoft.Json for serialization
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Autofac.Extensions.DependencyInjection (>= 10.0.0)
- Autofac.Extras.DynamicProxy (>= 7.1.0)
- Dapper.StrongName (>= 2.1.35)
- GlueFramework.AuditLog.Abstractions (>= 1.0.3)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.3.0)
- Microsoft.IdentityModel.Tokens (>= 8.3.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Data.SqlClient (>= 4.9.0)
- System.IdentityModel.Tokens.Jwt (>= 8.3.0)
- System.Security.Cryptography.Xml (>= 9.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on GlueFramework.Core:
| Package | Downloads |
|---|---|
|
GlueFramework.WebCore
Package Description |
|
|
GlueFramework.OrchardCoreModule
Package Description |
|
|
GlueFramework.AuditLogModule
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.