Default NULL incorrectly generated

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
dilbert
Posts: 68
Joined: Tue 28 Apr 2009 10:11

Default NULL incorrectly generated

Post by dilbert » Wed 20 Jan 2016 09:09

Hi,

I'm using LinqConnect model for my SqLite database.

There is a problem with generating property for a VARCHAR column with explicitly defined default NULL value (that is not necessary but it is not incorrect).

For example for this table:

Code: Select all

CREATE TABLE test_table ( 
   description varchar(255) DEFAULT NULL);
generated property Description contains incorrect default value:

Code: Select all

[Table(Name = @"""main"".test_table")]
public partial class TestTable : INotifyPropertyChanging, INotifyPropertyChanged
{
    ...
    private string _Description = @"NULL";
    ...
}
NULL is translated as string.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Default NULL incorrectly generated

Post by MariiaI » Wed 20 Jan 2016 14:15

Thank you for the report on this. We will inform you about the results regarding this issue as soon as any are available.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Default NULL incorrectly generated

Post by MariiaI » Fri 12 Feb 2016 06:57

The bug with determination of NULL values as strings while reading metadata for columns with "DEFAULT NULL" via the Database-First approach is fixed (SQLite).

New build of LinqConnect 4.5.930 is available!
It can be downloaded from http://www.devart.com/linqconnect/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=31&t=33202.

Post Reply