AugusteVN.Modules.Blog.Database
1.0.10
See the version list below for details.
dotnet add package AugusteVN.Modules.Blog.Database --version 1.0.10
NuGet\Install-Package AugusteVN.Modules.Blog.Database -Version 1.0.10
<PackageReference Include="AugusteVN.Modules.Blog.Database" Version="1.0.10" />
<PackageVersion Include="AugusteVN.Modules.Blog.Database" Version="1.0.10" />
<PackageReference Include="AugusteVN.Modules.Blog.Database" />
paket add AugusteVN.Modules.Blog.Database --version 1.0.10
#r "nuget: AugusteVN.Modules.Blog.Database, 1.0.10"
#:package AugusteVN.Modules.Blog.Database@1.0.10
#addin nuget:?package=AugusteVN.Modules.Blog.Database&version=1.0.10
#tool nuget:?package=AugusteVN.Modules.Blog.Database&version=1.0.10
AugusteVN.Modules.Blog.Database
EF Core DbContext and entities for blog content
Part of the AugusteVN Modules collection.
Installation
dotnet add package AugusteVN.Modules.Blog.Database
Merged Domain Documentation
AugusteVN.Modules.Blog.Database
Domain entities and shared interfaces for blog content — defines the IBlogDbContext contract and all entity types used by both the EfCore persistence layer.
Entities
BlogPost (extends AuditableEntity)
| Property | Type | Description |
|---|---|---|
Id |
Guid |
Primary key (inherited from Entity) |
Title |
string |
Display title |
CoverPhotoUrl |
string |
Cover image URL |
BodyAsMarkdown |
string |
Content in Markdown |
BodyAsHtml |
string |
Rendered HTML content |
IsPinned |
bool |
Pinned to top of listings |
Slug |
string |
URL-friendly slug |
PostType |
string |
Blog post, Newsletter article, Portfolio project, Job listing, ... |
Categories |
IEnumerable<BlogPostCategory>? |
Navigation: post categories |
Tags |
IEnumerable<BlogPostTag>? |
Navigation: post tags |
Author |
AuthorBaseEntity? |
Author information |
IsPublic |
bool |
Published state |
Downloadable |
DownloadableEntity? |
Associated file download |
BlogPostCategory (extends AuditableEntity)
| Property | Type | Description |
|---|---|---|
Id |
Guid |
Primary key |
Name |
string |
Category name (Lifestyle, Technology, ...) |
BlogPosts |
IEnumerable<BlogPost> |
Navigation: posts in this category |
BlogPostTag (extends AuditableEntity)
| Property | Type | Description |
|---|---|---|
Id |
Guid |
Primary key |
Name |
string |
Tag name (keywords, no #) |
BlogPosts |
IEnumerable<BlogPost> |
Navigation: posts with this tag |
Interface
IBlogDbContext
public interface IBlogDbContext
{
DbSet<BlogPost> BlogPosts { get; set; }
DbSet<BlogPostCategory> BlogPostCategories { get; set; }
DbSet<BlogPostTag> BlogPostTags { get; set; }
DbSet<AttachmentEntity> BlogPostAttachments { get; set; }
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
}
Provider-agnostic contract implemented by both BlogEfCoreDbContext and BlogDbContext.
Dependencies
AugusteVN._Shared.ContractsAugusteVN.Database.Entities
Installation
dotnet add package AugusteVN.Modules.Blog.Database
Full Documentation
See the Blog Module README for complete documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- AugusteVN.Database.EFCore (>= 1.1.4)
- AugusteVN.Database.Entities (>= 1.1.5)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AugusteVN.Modules.Blog.Database:
| Package | Downloads |
|---|---|
|
AugusteVN.Modules.Blog.Features
CQRS handlers for blog post operations |
|
|
AugusteVN.Modules.Blog.Api
Minimal API endpoints for blog posts and RSS feeds |
GitHub repositories
This package is not used by any popular GitHub repositories.