fsprojects / SQLProvider

A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides.
https://fsprojects.github.io/SQLProvider
Other
564 stars 144 forks source link

Access statically typed row from C# #740

Closed easysoft2k15 closed 2 years ago

easysoft2k15 commented 2 years ago

I have a function in F# that is selecting a row from a SQL table. If I use that function from F# the row is statically type and I can access all columns via the dot notation. Is it possible calling the same function from C# to achieve the same result? Right now the only way I was able to access the data from C# was using the ColumnValues property. Thank You

Thorium commented 2 years ago

No, sorry, this is F# erasing type-provider, the F# compiler will compile the database types away.

I guess the LINQ expression trees could be transferable.

easysoft2k15 commented 2 years ago

OK. Thank You anyway