ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

xxxxBase.generated.cs ToString error. (Compilation error) #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the generated code below, Index represents an integer.

///<summary>
/// Returns a String that represents the current object.
///</summary>
public override string ToString()
{
    return String.Format("Index: {0}{1}",
            (Index ?? String.Empty),
            System.Environment.NewLine);
}

Error
========
Operator '??' cannot be applied to operands of type 'int' and 'string'

Background
==========
This was generated against an Access database using the ADOX provider.

Mapping File
============
<Column Id="Index" CSType="System.Int32" PropertyName="Index" 
FieldName="_index" FriendlyName="Index" IncludeInOutput="true" />

Original issue reported on code.google.com by james.pa...@gmail.com on 4 Aug 2010 at 1:36

GoogleCodeExporter commented 9 years ago
Hello,

Could you please attach an Access Sample that contains this table in question.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 12:30