© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
112 replies
dlaw_code

❔ Startup File to Program file

services.AddTransient<ISqlDataAccess, SqlDataAccess>();
            services.AddTransient<IContactData>, ContactData>();
services.AddTransient<ISqlDataAccess, SqlDataAccess>();
            services.AddTransient<IContactData>, ContactData>();


I watched a tutorial video where the code above was called in the Startup.vsmean while I only have a Program.cs . Is there a way I can call this in Program.cs
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Minimize Winforms app to tray on program startup?
C#CC# / help
4y ago
❔ Implementing sound file into program
C#CC# / help
3y ago
how to read .txt file next to the Program.cs
C#CC# / help
2y ago