I am using F # support for LINQ to SQL when working on fssnip.net . This is normal when you need to load, edit, paste objects, and it is normal for writing simple queries. It has some nice aspects, for example. You can use splicing to compose parts of a request.
However, the current implementation of the F # to LINQ translator does not handle complex queries (nested function calls, extended groupings, and joins), so I wrote several stored procedures. They can be nicely called by generated LINQ objects, but you need to write some SQL.
Alternatively, if you want to use the old-fashioned SqlClient , you can do it better using a dynamic ( ? ) Operator. I wrote about this in this blog post . For simple scenarios, this can be a good method, because it is very simple.
Tomas petricek
source share