예제 #1
0
        public void Save()
        {
            string        columns    = "name";
            List <string> valueNames = new List <string>()
            {
                "@Name"
            };
            List <Object> values = new List <Object>()
            {
                _name
            };

            DB.OpenConnection();
            DB.SaveToTable(_tableName, columns, valueNames, values);
            _id = DB.LastInsertId();
            DB.CloseConnection();
        }