private static string ConvertToConnectionString(IConnectionString connectionString) { var cnStringBuilder = new SqlCeConnectionStringBuilder(connectionString.PlainString); cnStringBuilder.Enlist = false; return connectionString.ReplacePlain(cnStringBuilder.ConnectionString).PlainString; }
protected override IConnectionString OnFormatConnectionString(IConnectionString connectionString) { var cnString = base.OnFormatConnectionString(connectionString); var cnStringBuilder = new SqlCeConnectionStringBuilder(cnString.PlainString) { Enlist = false }; return connectionString.ReplacePlain(cnStringBuilder.ConnectionString); }