As Fab has stated the way to duplicate this behavior in 2.x is to clear the tick box "(.Net 2.0+) Generate as nullable type" against each nullable field in the designer.
The plugin to automatically set/toggle all of these check boxes is available under Tools -> PlugIns as part of the standard installaton.
I have tried this but I'm not getting the behavior I got in 1.0. In 1.0, it would return the default for the type (eg. int32 would return a 0. a boolean would be false) if the data was a null. but with 2.6 I am getting a null object returned. Am I doing something wrong (putting aside the way we are allowing nulls in the database)?
Here is what is being generated.
/// <summary> The DollarFields property of the Entity Company<br/><br/>
/// </summary>
/// <remarks>Mapped on table field: "Company"."DollarFields"<br/>
/// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0<br/>
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.Int32 DollarFields
{
get { return (System.Int32)GetValue((int)CompanyFieldIndex.DollarFields, true); }
set { SetValue((int)CompanyFieldIndex.DollarFields, value); }
}
/// <summary> The IsAllowShowHiddenCues property of the Entity Company<br/><br/>
/// </summary>
/// <remarks>Mapped on table field: "Company"."IsAllowShowHiddenCues"<br/>
/// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0<br/>
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.Boolean IsAllowShowHiddenCues
{
get { return (System.Boolean)GetValue((int)CompanyFieldIndex.IsAllowShowHiddenCues, true); }
set { SetValue((int)CompanyFieldIndex.IsAllowShowHiddenCues, value); }
}