My database(Sql compact edition) password is Y6K<dkq2J)[hf/',@K"!IiQA
.
When I create it's entity data model connection string in my App config will be:
Edited
<add name="OtherEntities" ... Password=""Y6K<dkq2J)[hf/',@K""""!IiQA"" ... />
There are quotation sign "
and '
in the password,every thing is OK.so i want to use Ado.Net SqCelconnection
.
string pass = "???";
string conString =
"Data Source=path\Other.sdf;password='" + pass + "';";
using (SqlCeConnection connection = new SqlCeConnection(conString))
{
.
How do I replace "
sign and '
sign in password?
I already tried \"
,\"\"
,"
for "
sign.
and ''
and '
for '
sign.but doesn't work.