c# - How to store multidimensional array with Ormlite in Sqlite? -


i'm storing item in in-memory sqlite datastore using ormlite's db.insert(item). resulting array null. need change way i'm storing or way i'm retrieving it?

public class item {     [autoincrement]     public long id { get; set; }      public int[,] numbers { get; set; } }  public class tester {      void test() {         var item = new item() { numbers = new int[5,5] };          item.numbers[1,1] = 1234;          using (var db = new ....) {              db.insert(item);              var id = db.lastinsertedid();              var result = db.singlebyid<item>(id);              /*             output:                result.numbers == null                                                                */         }     }  } 

multi-dimensional arrays aren't supported in servicestack, i.e. in ormlite or text serializers.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -