Linq to sql truncating string returned by Stored Procedure -


I have asked this question before but I have no answers. Maybe I was not very clear, give me some more details.

I have an SP that gives a long string here is the DBML file code

  [function (name = "dbo.spX")] Public IsingleResult & lt; SpXResult & gt; SpX ([parameter (dbtv = "ver variable (8000)") string straight) {IExecuteResult result = this.ExecuteMethodCall (this, (MethodInfo) (MethodInfo.GetCurrentMethod ()), str); Return ((IslingleSalt & lt; spXResult & gt;) (returning result.)); }  

and spXResult class here

  public partial square spXResult {private string _XML_F52E2B61_18A1_11d1_B105_00805F49916B; PublicSpexResult () {} [column (name = "[XML_F52E2B61-18A1-11d1-B105-00805F49916B]", storage = "_Xml_F52E2B61_18A1_11d1_B105_00805F49916B", dbiped = "newtext", update check = updatecack never)] public string XML_F52E2B61_18A1_11d1_B105_00805F49916B {Return it. _XML_F52E2B61_18A1_11d1_B105_00805F49916B; } Set {if ((this._XML_F52E2B61_18A1_11d1_B105_00805F49916B! = Value)) {this._XML_F52E2B61_18A1_11d1_B105_00805F49916B = value; }}}}  

And here is my code

  ISingleResult & lt; SpXResult & gt; Results = CTX SPX ("1234"); String Returns SRR = Results. First (). XML_F52E2B61_18A1_11d1_B105_00805F49916B;  

Everything is fine, when the result is not a long string, but as soon as the SP gives a very long string, this result bites. I do not have any clue why .. anybody please help Can do.

Thank you

I have only one thing that I can see - it announced Hawa:

  Public Isling result & lt; SpXResult & gt; SPX ([parameter (DbType = "VARCHAR (8000)")] string str)  

(DbType = VARCHAR (8000)) - which ANSI (non-Unicode), but in column The announcement in which you use NTEXT - First of all, this is Unicode (2-byte per character), and why NTEXT ?? Do you have a VARCHAR?

  [Column (name = "[XML_F52E2B61-18A1-11d1-B105-00805F49916B]", storage = "_ XML_F52E2B61_18A1_11d1_B105_00805F49916B", DbType = "ntext", UpdateCheck = UpdateCheck.Never)] < / code> 

it seems a little strange .......

you can try to make it similar in both places? Like both the VARCHAR cases ??

Mark

(8000)

Comments

Popular posts from this blog

How to Create Master-Details view using Asp.Net MVC framework -

delphi - Mouseover hint for TChart series value -

c++ - Linux and clipboard -