Example #1
0
        public void demo_insert()
        {
            user_info tb = new user_info();
            tb.userID = 12;
            tb.sex = 1;//男的

            tb.insert();
        }
Example #2
0
        public void demo_insert2()
        {
            var data = new Dictionary<string, object>();//或其它字段类

            user_info tb = new user_info();
            tb.insert((key)=> {
                if (data.ContainsKey(key))
                    return data[key];
                else
                    return null;
            });
        }