dlaw_code
dlaw_code
CC#
Created by dlaw_code on 4/8/2023 in #help
❔ 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
113 replies