Page 1 of 1

Entity Model - Poco Template Problem - 6.1.40

Posted: Tue 07 Aug 2012 18:17
by evren
Hi there,

One more bug but this time Entity Model.

Code: Select all

        public virtual global::System.Nullable<int> ModelId
        {
            get
            {
                return _ModelId;
            }
            set
            {
                try
                {
                    _settingFK = true;
                    if (_ModelId != value)
                    {
                      if (WebsiteModel != null && WebsiteModel.ModelId != value)
                      {
                          var previousValue = _WebsiteModel
                          _WebsiteModel = null;
                          FixupWebsiteModel(previousValue, skipKeys: true);
                      }
                    _ModelId = value;
                    }
                }
                finally
                {
                    _settingFK = false;
                }
            }
        }
Check the line "var previousValue = _WebsiteModel". Where is ";"?

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Thu 09 Aug 2012 19:06
by evren
Problem still exists on 6.1.58 as well.. So no answers guys?

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Fri 10 Aug 2012 13:21
by Shalex
Thank you for your report. We will fix the template.
You can correct it in your environment yourself: right click on the POCO Entity template in Model Explorer > Copy to Model Folder > open template and edit it to add semicolon:
replace

Code: Select all

                      var previousValue = _<#= np.Name #>
with

Code: Select all

                      var previousValue = _<#= np.Name #>;

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Fri 17 Aug 2012 00:00
by evren
Sorry for delay. Thank you for temporary fix :)

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Fri 17 Aug 2012 08:20
by Shalex
Be aware this local (copied to the project folder) template would not be updated during reinstall of dotConnect for PostgreSQL. In this case, if you want to use the updated template, disable the local one and add the "global" template via Model Explorer > Add Template menu after installing the new version of our provider.

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Sat 18 Aug 2012 23:25
by evren
Roger that.. Thank you :)

Re: Entity Model - Poco Template Problem - 6.1.40

Posted: Fri 07 Sep 2012 09:49
by Shalex
New version of Entity Developer 4.6 is released!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=24852.