Generation od Context file
Posted: Wed 07 Sep 2016 22:17
Hi,
Is there reason why I cannot set contextfilename witout model name. Id DbContext template there are these lines:
why it is not like this:
Or even better would be if we can SET filename for context file.
Marko
Is there reason why I cannot set contextfilename witout model name. Id DbContext template there are these lines:
Code: Select all
if (FilePerClass)
contextFileName = baseFileName + "." + contextClassName;
else
contextFileName = baseFileName + ".Designer";
Code: Select all
if (FilePerClass)
contextFileName = ModelNameAsFilesPrefix ? baseFileName + "." + contextClassName :contextClassName;
else
contextFileName = baseFileName + ".Designer";
Marko