[<Literal>]
let LocalConnStr = "Server=.\\SQLEXPRESS; initial catalog=somedb;Integrated Security=true"
type HR = SqlDataProvider<ConnectionString = LocalConnStr, DatabaseVendor = Common.DatabaseProviderTypes.MSSQLSERVER, UseOptionTypes = true>
let ctx = HR.GetDataContext LocalConnStr
let row = ctx.Dbo.Sometable.Create()
Expected behavior
A new row :-)
Actual behavior
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: GetMethodImpl. not support overloads, name = 'get_Somecolumn', methods - '[|Method get_Somecolumn; Method get_Somecolumn|]', callstack = '"
Description
Hello,
if you have a mssql table with evil weirdo column names creating a table row fails (my company likes to use "_$" notation for computed fields)
Repro steps
1.
2.
Expected behavior
A new row :-)
Actual behavior
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: GetMethodImpl. not support overloads, name = 'get_Somecolumn', methods - '[|Method get_Somecolumn; Method get_Somecolumn|]', callstack = '"
Known workarounds
Create an SP for this insert?
Related information