C# Console App to find all references to databse objects within a given directory, and within a diven Sql Server database.
"Database objects" includes the following:
- Tables
- Stored Procs
- User-defined Functions
- User-defined Types
- Views
You may specify the following settings in the appSettings.json
file. These settings are as follows:
ConnectionStrings
: A connection string of the database you wish to map.DirectoryToSearch
: The absolute path of the directory you wish to search.PatternsToIgnore
: Comma-separated list of directories/files to ignore when searching. Ex."file.cs,/folder/"
MatchingTechnique
: There are two options for this setting:Regex
andContains
.Regex
will match files/folder to thePatternsToIgnore
list by regex patterns.Contains
will do a simple string contains.