You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(SqlCommandcmdEncrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,encryptedTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
131
+
using(SqlCommandcmdUnencrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,unencryptedTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
Assert.True(readerEncrypted.HasRows,@"We didn't find any rows.");
130
152
131
-
using(SqlCommandcmdEncrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,encryptedTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
132
-
using(SqlCommandcmdUnencrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,unencryptedTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
using(SqlCommandcmdEncrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,targetTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
220
+
using(SqlCommandcmdUnencrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,witnessTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
Assert.True(readerEncrypted.HasRows,@"We didn't find any rows.");
228
241
229
-
using(SqlCommandcmdEncrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,targetTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
230
-
using(SqlCommandcmdUnencrypted=newSqlCommand(string.Format(@"SELECT {0} FROM [{1}] WHERE {0} = {2}",FirstColumnName,witnessTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
@@ -293,44 +275,35 @@ public void TestOutOfRangeValues(string connString, SqlDbType currentDbType)
293
275
sqlConnectionEncrypted.Open();
294
276
sqlConnectionUnencrypted.Open();
295
277
296
-
try
278
+
foreach(ValueErrorTupletupleinvalueList)
297
279
{
298
-
foreach(ValueErrorTupletupleinvalueList)
280
+
using(SqlCommandsqlCmd=newSqlCommand(String.Format("INSERT INTO [{0}] VALUES ({1})",encryptedTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
299
281
{
300
-
using(SqlCommandsqlCmd=newSqlCommand(String.Format("INSERT INTO [{0}] VALUES ({1})",encryptedTableName,FirstParamName),sqlConnectionEncrypted,null,SqlCommandColumnEncryptionSetting.Enabled))
using(SqlCommandsqlCmd=newSqlCommand(String.Format("INSERT INTO [{0}] VALUES ({1})",unencryptedTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
using(SqlCommandsqlCmd=newSqlCommand(String.Format("INSERT INTO [{0}] VALUES ({1})",unencryptedTableName,FirstParamName),sqlConnectionUnencrypted,null,SqlCommandColumnEncryptionSetting.Disabled))
0 commit comments