Entity Model - Poco Template Problem - 6.1.40

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
evren
Posts: 10
Joined: Sat 12 Nov 2011 13:35

Entity Model - Poco Template Problem - 6.1.40

Post by evren » Tue 07 Aug 2012 18:17

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 ";"?

evren
Posts: 10
Joined: Sat 12 Nov 2011 13:35

Re: Entity Model - Poco Template Problem - 6.1.40

Post by evren » Thu 09 Aug 2012 19:06

Problem still exists on 6.1.58 as well.. So no answers guys?

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

Re: Entity Model - Poco Template Problem - 6.1.40

Post by Shalex » Fri 10 Aug 2012 13:21

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 #>;

evren
Posts: 10
Joined: Sat 12 Nov 2011 13:35

Re: Entity Model - Poco Template Problem - 6.1.40

Post by evren » Fri 17 Aug 2012 00:00

Sorry for delay. Thank you for temporary fix :)

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

Re: Entity Model - Poco Template Problem - 6.1.40

Post by Shalex » Fri 17 Aug 2012 08:20

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.

evren
Posts: 10
Joined: Sat 12 Nov 2011 13:35

Re: Entity Model - Poco Template Problem - 6.1.40

Post by evren » Sat 18 Aug 2012 23:25

Roger that.. Thank you :)

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

Re: Entity Model - Poco Template Problem - 6.1.40

Post by Shalex » Fri 07 Sep 2012 09:49

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.

Post Reply