C# Typed Dataset corrupts CommandText -


i need perform maintenance on old c# windows forms application (.net 3.5) using typed datasets. purpuse i'm bound using vs 2010.

the issue follows, when 'touch' typed dataset, or after rebuilds, commandtext within datasets designer file getting corrupted. automatically cr+lf , whitespaces being placed, e.g.

this._adapter.insertcommand.commandtext = "\r\n                      dbo.nameofastoredprocedure\r\n                    "; 

when performing search/replace rid of unwanted changes, works short while , issue reoccurs.

any ideas on causing issue , how fix this?

why think corrupted? should have no effect on behavior.

anyways, output expect when embed text in xml. eg:

<commandtext>   dbo.nameofastoredprocedure </commandtext> 

if pedantic whitespace (that should ignored), following:

<commandtext>dbo.nameofastoredprocedure</commandtext> 

Comments

Popular posts from this blog

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -

SQL Server - MyCTE query based on 24 hour period (next day) -