SyncFusionを使用してSQLへの接続が以下のコードを使用することによって達成することができます。
DataSet ds = new DataSet();
//In below provide full path of your database(*.sdf) location.
string conStringforDB = HttpContext.Current.Server.MapPath("Northwind.sdf").Split(new string[] { "\\wcf" }, StringSplitOptions.None)[0] + "\\Northwind.sdf";
SqlCeConnection con = new SqlCeConnection(conStringforDB);
con.Open();
SqlCeCommand cmd = new SqlCeCommand(@"SELECT Top(100) [Order ID], [Product ID], [Unit Price], Quantity
FROM [Order Details] ", con);
SqlCeDataAdapter da = new SqlCeDataAdapter(cmd);
da.Fill(ds);
//Creation of DataView
DataView dataView = new DataView(ds.Tables[0]);