Page 1 of 1

Duplicate Designer File being created upon save

Posted: Wed 27 Jul 2022 16:23
by iamnotcreative
Hello,

I'm running into a problem when editing my project's LQML in that it's creating a new .Designer.vb file upon Save All. I had previously edited one of the classes to put the schema in front of the table name and when I did that it removed the line

<LastGenOutput>MyProject.Designer.vb</LastGenOutput>

from the lqml section of my project file.

Code: Select all

<None Include="MyProject.lqml">
<Generator>DevartLinqToSqlGenerator</Generator>
<SubType>Designer</SubType>
</None>


I've tried manually editing my project file which work once after which the LastGenOutput line is removed again.

Running Devart Entity Developer- 6.12.1354.0 in Visual Studio 2019. Any help is appreciated.

Re: Duplicate Designer File being created upon save

Posted: Tue 04 Oct 2022 08:14
by Shalex
iamnotcreative wrote: Wed 27 Jul 2022 16:23when editing my project's LQML in that it's creating a new .Designer.vb file upon Save All
That is a designed behavior.
iamnotcreative wrote: Wed 27 Jul 2022 16:23I had previously edited one of the classes to put the schema in front of the table name
Please set the schema via the Source property of LinqClass in the model designer: Source=schemaName.tableName instead of Source=tableName.

Also, be aware of the "Preserve schema name in storage" option in Model Settings that is applied to the newly added tables to the model.