WIP: Add EF Core entity models with navigation properties and Fluent API configurations #69
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joezombie/castr!69
Loading…
Reference in a new issue
No description provided.
Delete branch "copilot/create-ef-core-entity-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the EF Core migration epic (#58). Creates proper entity classes to replace current record models, establishing the foundation for EF Core integration.
Entities Created
5 entity classes in
Data/Entities/:Feed- Podcast feed with YouTube configuration and navigation properties to Episodes, DownloadedVideos, ActivityLogs, DownloadQueueEpisode- Episode with FeedId foreign key and back-reference to FeedDownloadedVideo- Downloaded video tracking with FeedId foreign keyActivityLog- Activity history with nullable FeedId for system-wide eventsDownloadQueueItem- Active download queue with FeedId foreign keyAll entities use
[Required],[MaxLength]annotations and proper nullable reference types.Fluent API Configurations
5 configuration classes in
Data/Configurations/implementingIEntityTypeConfiguration<T>:feeds,episodes,downloaded_videos,activity_log,download_queue)Feed.Name,Episode(FeedId, Filename),DownloadedVideo(FeedId, VideoId),DownloadQueueItem(FeedId, VideoId)DbContext
CastrDbContextwith 5 DbSets and automatic configuration discovery viaApplyConfigurationsFromAssembly().Package References
Added EF Core 9.0.0 packages:
EntityFrameworkCore,EntityFrameworkCore.Sqlite,EntityFrameworkCore.Design.Schema alignment verified against existing
CentralDatabaseServiceSQL definitions.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Pull request closed