/// <summary>
        /// Updates
        /// </summary>
        /// <param name="entity"></param>
        public void Update(BaseEntity entity)
        {
            SqlStringGenerator stringgenerator = new SqlStringGenerator(this.MapInfoSession);
            UpdateQuery        updatequery     = stringgenerator.GenerateUpdateQuery(entity, this.Name);

            updatequery.ExecuteNonQuery();
        }
        /// <summary>
        /// Returns the Mapbasic insert commands needed to insert the supplied entity into the current table.
        /// </summary>
        /// <param name="entity">The entity that needs to be inserted, entity is not inserted just used to generate insert commands.</param>
        /// <returns>A string containing the needed Mapbasic commands to insert the entity into the current table.</returns>
        public string GetInsertString(BaseEntity entity)
        {
            SqlStringGenerator stringgenerator = new SqlStringGenerator(this.MapInfoSession);

            return(stringgenerator.GenerateInsertString(entity, this.Name));
        }