public static string ControlNPrefix(string sql) { var str = CharacterUtil.NPrefixEncode(sql).Replace("NN'", "N'"); return(CharacterUtil.NPrefixEncode(sql)); }