MigrationsScaffolder.TryGetProjectFile(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to find a file under the project directory.
protected virtual string TryGetProjectFile (string projectDir, string fileName);
protected virtual string? TryGetProjectFile (string projectDir, string fileName);
abstract member TryGetProjectFile : string * string -> string
override this.TryGetProjectFile : string * string -> string
Protected Overridable Function TryGetProjectFile (projectDir As String, fileName As String) As String
Parameters
- projectDir
- String
The project directory.
- fileName
- String
The filename.
Returns
The file path or null if none.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework