F# has many inbuilt conversions between collection types, so you can use Seq.toArray or Array.ofSeq to convert the sequence of records like this:

1
let arrRecords = Read “SELETCT TOP 10 * FROM Production.Product” |> Seq.toArray
By on 12/29/2009 2:46 AM ()

Hello, Chern:
Thank you very much for your code.
It works!
However, it is not easy to know there are so many built-in convert functions for Seq.
Thanks again and Happy New Year to you!

By on 12/29/2009 10:41 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper