I'm working in Visual Studio 2013 in one Solution (MySolution
).
From OOP perspective I separate C# code in domain layer in one Project (MyCProject
) from the main database who is placed in specific SQL Server Database Project (MySQLProject
).
Both projects shared same namespace, are stored in the same MySolution
solution.
How can I access the tables data in MySQLProject
in MyCProject
?
The tables are stored inside the MySQLProject
project, but not in SQL Server Express database server who is also installed on the machine, does that affect the accessibility?
At the end, maybe I have not mentioned some relevant information, so if someone can help me I would be very happy if the answer can be little bit detailed like a walk through information sheet. Because I don't know what information is relevant to write so the problem can be resolved in best way as possible.
Copyright Notice:Content Author:「Sandri」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28265112/getting-database-information-from-sql-project-in-c-sharp-project