mysql - SQL Query to Lambda C# -
what lambda statement sql query?
update table_name set column_name = replace(replace(column_name, char(13), ' '), char(10), ' ')
i tried :
exporttoexcel ete = new exporttoexcel(); if (ete.billingnotes != null) { ete.billingnotes = ete.billingnotes.replace("\r", " "); ete.billingnotes = ete.billingnotes.replace("\n", " "); } a.submitchanges();
thank you!
still no luck. anyone?
here samples:
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();
Comments
Post a Comment