Click here to Skip to main content
15,609,498 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have included the the dbconnection and config files in my c# project folder(MyProject) to connect sql server

but I got the follwoing errors

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'DBConnection' could not be found (are you missing a using directive or an assembly reference?)	LabProject	C:\Users\Sarvanan\documents\visual studio 2015\Projects\LabProject\LabProject\App_Code\DAL\DataAccessObject.cs	21	Active

How can add the references of dbconnection file

What I have tried:

Updated 31-May-22 1:47am

1 solution

Assuming that is the correct Reference, add the appropriate using line to the top of each file that references your component.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900