Exemplo n.º 1
0
        public int insert(ActiveRecord item)
        {
            item.preInsert();
            InsertQuery query = new InsertQuery(item.GetType());

            foreach (KeyValuePair <string, string> properties in getProperties(item))
            {
                query.addKeyValue(properties.Key, properties.Value);
            }
            return(query.exec());
        }