SqlClient in Mono

I am using mono in ubuntu and i need a web service to access an SQL database but in Mono when i use:

using System.Data.SqlClient;

The option SqlClient does not exist.

Upvotes: 0

Views: 913

Answers (1)

Anth12
Anth12

Reputation: 1897

The System.Data.SqlClient namespace is in the System.Data assembly. Try adding a reference to System.Data.

Mono documentation can be found here: https://developer.xamarin.com/api/namespace/System.Data/

Upvotes: 1

Related Questions