How to insert a object to sql?
I have some objects that i want to store in sql lite  database from what i read in here best option is to serialize object and store it as blob but i don't know how to make it and also i would like to know how the sql table should look .
My object is something like this :

     class Buttons
    {
        private int _ID;
        private string _name;
        private string _text;
        private String[] _layers;
        public int ID 
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string Name 
        {
            get { return _name; }
            set { _name = value; }
        }
        public string Text 
        {
            get { return _text; }
            set { _text = value; }
        }
        public String[] Layers 
        {
            get { return _layers; }
            set { _layers = value; }
        }
        public Buttons(int ID,string name, string text, String[] layers)
        {
            _ID = ID;
            _name = name;
            _text = text;
            _layers = layers;
        }
    }
How to insert a object to sql?
===

I have some objects that i want to store in sql lite  database from what i read in here best option is to serialize object and store it as blob but i don't know how to make it and also i would like to know how the sql table should look .
My object is something like this :

     class Buttons
    {
        private int _ID;
        private string _name;
        private string _text;
        private String[] _layers;
        public int ID 
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string Name 
        {
            get { return _name; }
            set { _name = value; }
        }
        public string Text 
        {
            get { return _text; }
            set { _text = value; }
        }
        public String[] Layers 
        {
            get { return _layers; }
            set { _layers = value; }
        }
        public Buttons(int ID,string name, string text, String[] layers)
        {
            _ID = ID;
            _name = name;
            _text = text;
            _layers = layers;
        }
    }