Talrace.Core.Dal
8.0.0
dotnet add package Talrace.Core.Dal --version 8.0.0
NuGet\Install-Package Talrace.Core.Dal -Version 8.0.0
<PackageReference Include="Talrace.Core.Dal" Version="8.0.0" />
paket add Talrace.Core.Dal --version 8.0.0
#r "nuget: Talrace.Core.Dal, 8.0.0"
// Install Talrace.Core.Dal as a Cake Addin
#addin nuget:?package=Talrace.Core.Dal&version=8.0.0
// Install Talrace.Core.Dal as a Cake Tool
#tool nuget:?package=Talrace.Core.Dal&version=8.0.0
About
This package provides a set of extension methods for classes such as ModelBuilder and DbContext.
The package also contains the IOrderBy<TEntity> interface and two of its implementations for sorting IQueryable<TEntity> in ascending and descending order.
Available api
ModelBuilderExtensions - static class contains one extension method for ModelBuilder class that sets all database names (columns names, keys and foreign keys names, tables names, indexes names) to lowercase.
DbContextExtensions - static class provides set of extension methods for DbContext class.
OrderBy - class provides functionality for sorting IQueryable<TEntity> in ascending order.
OrderByDescending - class provides functionality for sorting IQueryable<TEntity> in descending order.
Setup
Before using the methods provided in ModelBuilderExtensions and DbContextExtension classes, you must connect to a relational database. For example:
public void ConfigureServices(IServiceCollection services) {
services.AddDbContext<TestDbContext>(options => options.UseSqlServer("<ConnectionString>"));
}
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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.0)
- Talrace.Core.Interfaces (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Talrace.Core.Dal:
Package | Downloads |
---|---|
Talrace.Core.Services
Core Services |
GitHub repositories
This package is not used by any popular GitHub repositories.