Go to Pervasive's website and download the ADO.NET 4.0 database provider. The download should include C# sample code about using the provider.

http://www.pervasivedb.com/psqlvx/Pages/PSQLVx.aspx

To find the ADO.NET 4.0 download and readme, scroll to the bottom of the page under "Software Development Kit"