File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- # access-sql-server-database-from-net-core-console-application
2
- How to connect .NET Core Console application to SQL server database and read table data
1
+ # access sql server database from net core console application
2
+ How to connect .NET Core Console application to SQL server database and read table data.
3
+
4
+ This blogpost explains how to connect .NET Core Console application to SQL server database and read table data.
5
+ You will not be using the Entity framework for this. You will inject the dependency of IConfiguration to read appsettings.
6
+
7
+ 1 . ** DAL -> DepartmentDAL.cs** - has required code to connect to SQL server and get Department data.
8
+ 2 . ** Models -> Department.cs** - is a model for Department entity.
9
+
10
+ ![ folder structure for dot net core console application] ( https://geeksarray.com/images/blog/folder-structure-for-adventure-data-console-app.PNG )
11
+
12
+ For more details [ click here] ( https://geeksarray.com/blog/access-sql-server-database-from-net-core-console-application )
You can’t perform that action at this time.
0 commit comments