Skip to content

basic sernos#16

Merged
richardiphillips merged 6 commits into
mainfrom
sp1
May 6, 2026
Merged

basic sernos#16
richardiphillips merged 6 commits into
mainfrom
sp1

Conversation

@richardiphillips
Copy link
Copy Markdown
Contributor

No description provided.

@richardiphillips richardiphillips requested a review from a team May 6, 2026 09:45
Comment on lines +30 to +36
r => new SerialNumberInstanceRepository(r.GetService<ServiceDbContext>()))
.AddTransient<IRepository<Part, string>, EntityFrameworkRepository<Part, string>>(
r => new EntityFrameworkRepository<Part, string>(r.GetService<ServiceDbContext>()?.Parts))
.AddTransient<IRepository<SalesArticle, string>, EntityFrameworkRepository<SalesArticle, string>>(
r => new EntityFrameworkRepository<SalesArticle, string>(r.GetService<ServiceDbContext>()?.SalesArticles))
.AddTransient<IRepository<SerialNumberConfiguration, string>, EntityFrameworkRepository<SerialNumberConfiguration, string>>(
r => new EntityFrameworkRepository<SerialNumberConfiguration, string>(r.GetService<ServiceDbContext>()?.SerialNumberConfigurations));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think scoped is technically the more correct choice for lifetimes for these sorts of services. Not sure how much it matters however

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. will fix in next one

@richardiphillips richardiphillips merged commit e6fb688 into main May 6, 2026
2 checks passed
@richardiphillips richardiphillips deleted the sp1 branch May 6, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants