Generation od Context file

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Bubbi
Posts: 2
Joined: Wed 07 Sep 2016 22:13

Generation od Context file

Post by Bubbi » 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:

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

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Generation od Context file

Post by Shalex » Thu 08 Sep 2016 14:42

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.

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Generation od Context file

Post by Shalex » Thu 22 Sep 2016 15:04

New build of Entity Developer 6.0.96 is available for download: viewtopic.php?f=32&t=34311.

Post Reply