This project is read-only.

Jagged array

May 18, 2013 at 3:16 PM
Hello.
The following code does not work.
Throws an exception Error: 1002: Incompatible meta-model.
It seems that it is not possible to store a jagged array.
there is a solution?
public class JA
            {
                public double[][] Test { get; set; }
            }

public void JAtest()
            {
                JA Test = new JA();
                JA Test2 = null;

                string tfn = "./test.db";

                using (IOdb TBD = OdbFactory.Open(tfn)) {
                    TBD.Store(Test);
                }
// the next line throws the exception
                using (IOdb TBD = OdbFactory.Open(tfn)) {  
                    Test2 = TBD.QueryAndExecute<JA>.FirstOrDefault;
                }

                
            }
May 18, 2013 at 8:07 PM
Hello, yes that's true. Maybe Array of arrays could solve your problem ?

Pls rise the bug for that.

Thanks,
Jacek