私のC#コンソールアプリケーション:
1:
string CE_ParentName_ = CEReader5[0].ToString(); // get string with lithuanian letters for example "Konsolės".
を使用するConsole.WriteLine()
と、コンソールに正しい出力が得られます。
2:
readname.CommandText = "SELECT [ID] FROM [Net7].[dbo].[GroupFilter] WHERE
[GroupFilterName]='" + CE_ParentName_ + "'"; // I need to find records in my DB with name of that string (1 possible option)
3:
if (NameReader.Read()) { idd = NameReader[0].ToString(); } // if i get any results ar no.2 i need to read them
ポイントは、文字列にリトアニア文字が含まれている場合、no.2 は結果を返さないことです。文字列にリトアニア文字がない場合 - すべてが完璧に機能します。すべてを試しました、あなたは私の最後の希望です。