Page 1 of 1

Generation od Context file

Posted: Wed 07 Sep 2016 22:17
by Bubbi
Hi,

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";
why it is not like this:

Code: Select all

if (FilePerClass)
    contextFileName = ModelNameAsFilesPrefix ? baseFileName + "." + contextClassName :contextClassName;
  else
    contextFileName = baseFileName + ".Designer";
Or even better would be if we can SET filename for context file.

Marko

Re: Generation od Context file

Posted: Thu 08 Sep 2016 14:42
by Shalex
Bubbi wrote:

Code: Select all

if (FilePerClass)
    contextFileName = ModelNameAsFilesPrefix ? baseFileName + "." + contextClassName :contextClassName;
  else
    contextFileName = baseFileName + ".Designer";
Thank you for your suggestion. We will notify you when the predefined DbContext template is updated.

Re: Generation od Context file

Posted: Thu 22 Sep 2016 15:04
by Shalex
New build of Entity Developer 6.0.96 is available for download: viewtopic.php?f=32&t=34311.