C# 对lambdac的SQL查询

C# 对lambdac的SQL查询,c#,mysql,sql,linq,lambda,C#,Mysql,Sql,Linq,Lambda,这个SQL查询的Lambda语句是什么 更新表名称 设置列名称=替换列名称,CHAR13',CHAR10'' 我已经试过了: ExporttoExcel ete = new ExporttoExcel(); if (ete.BillingNotes != null) { ete.BillingNotes = ete.BillingNotes.Replace("\r", " "); ete.BillingNotes = ete.BillingNotes.Replace("\

这个SQL查询的Lambda语句是什么

更新表名称 设置列名称=替换列名称,CHAR13',CHAR10'' 我已经试过了:

ExporttoExcel ete = new ExporttoExcel(); 
if (ete.BillingNotes != null) 
{ 
    ete.BillingNotes = ete.BillingNotes.Replace("\r", " "); 
    ete.BillingNotes = ete.BillingNotes.Replace("\n", " ");
} 
a.SubmitChanges(); 
谢谢大家!


还是不走运。有人吗?

以下是样品:

var tb = db.Table_Name.SingleOrDefault(x=>x.Id == 1);
if(tb != null)
      tb.Column_Name = tb.Column_Name.Replace("\\r","").Replace("\\n","");
db.SaveChanges();

使用以下方法解决此问题:

a、 ExecuteCommandupdate ExporttoExcel set CardNotes=replaceCommandupdate CardNotes,字符13',,字符10'

变量a代表DataContext


希望对其他人有所帮助!谢谢

向我们展示您尝试过的内容已尝试过的可能的副本:ExporttoExcel ete=新ExporttoExcel;ifete.BillingNotes!=null{ete.BillingNotes=ete.BillingNotes.Replace\r,;ete.BillingNotes=ete.BillingNotes.Replace\n,;}a.SubmitChanges;有人能给我一些建议吗?谢谢,我来试试。CHAR13=\n CHAR10=\r对吗?运气不好,我认为您给出的代码与我的完全相同。我仍然无法更换\n\r或char13/Char10仍然没有运气,不知道为什么它不能更换。有人能给我一些建议吗?