.net - How can i convert IQueryable<string> to a string array? -


अगर मैं ऐसा करता हूं ...

  rowNames = _myDB.RowSet.Where (r = & Gt; (आर। आरआईडी & gt; = न्यूनतम आईडी) & amp; amp; (आर। आरआईडी & lt; = maxId))। चुनें (आर = & gt; आर। आरओएनाम);  

यह एक IQueryable देता है, मैं इसे कैसे डाल सकता हूँ: string [] myStringArray ?

इसे आज़माएं:

  _myDB.RowSet। जहां (आर = & gt; (आर। राइड & gt; = न्यूनतम आईडी) & amp; amp; (R.RowId & lt; = maxId))। चुनें (r = & gt; r.RowName) .ToArray ();  

यह एक्सटेंशन विधि का लाभ उठाता है।


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -