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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -