DA update Table Def - error (part 2)

Hi,

Just upgraded to RemObjects Data Abstract for Water and Visual Studio, Server Edition - 9.6.113.1413. Updated Table defs in VS and that went ok. (it errors in Water as I mentioned in another ticket). However, I made no changes to the image field in my table and now I have this error on compile:

E: Parameter 1 is “Byte?”, should be “Byte[]”, in call to static Boolean RemObjects.DataAbstract.Linq.LinqDataAdapter.CompareBytes(Byte[] a, Byte[] b) [C:\code\fsxp\WOS-Front-End-Server\Source\Relativity\WOS_TableDefinitions.cs (940)]
E: Parameter 2 is “Byte?”, should be “Byte[]”, in call to static Boolean RemObjects.DataAbstract.Linq.LinqDataAdapter.CompareBytes(Byte[] a, Byte[] b) [C:\code\fsxp\WOS-Front-End-Server\Source\Relativity\WOS_TableDefinitions.cs (940)]

The code generated in my TableDefinitions file did change between version.

// Before Upgrade
private System.Byte[]? f____Image;

    [RemObjects.DataAbstract.Linq.FieldName("Image")]
    [RemObjects.DataAbstract.Linq.DataType(RemObjects.DataAbstract.Schema.DataType.Blob)]
    [RemObjects.DataAbstract.Linq.LogChanges]
    public System.Byte[]? Image
    {
        get
        {
            return this.f____Image;
        }
        set
        {
            if (RemObjects.DataAbstract.Linq.LinqDataAdapter.CompareBytes(this.f____Image, value) != true)
            {
                this.OnPropertyChanging("Image");
                this.f____Image = value;
                this.OnPropertyChanged("Image");
            }
        }
    }

// After Upgrade
private System.Byte? f____Image;

	[RemObjects.DataAbstract.Linq.FieldName("Image")]
	[RemObjects.DataAbstract.Linq.DataType(RemObjects.DataAbstract.Schema.DataType.Blob)]
	[RemObjects.DataAbstract.Linq.LogChanges]
	public System.Byte? Image
	{
		get
		{
			return this.f____Image;
		}
		set
		{
			if (RemObjects.DataAbstract.Linq.LinqDataAdapter.CompareBytes(this.f____Image, value) != true)
			{
				this.OnPropertyChanging("Image");
				this.f____Image = value;
				this.OnPropertyChanged("Image");
			}
		}
	}

Not sure this is a bug or not but kinda stuck now unless I go back to my older version. ( don’t know what version I was running but I think 9.4.x)

Thanks for any suggestions or help. :slight_smile:
Dana

Thanks for the report. This will be fixed ASAP

Thank you very much! Latest build fixed all the issue. Great Job!

1 Like