Closed arnesahlberg closed 2 years ago
That sounds weird.
1) how about if you create them with a long .``Create(col1, ...)``("test")
?
2) could this be that your transactions block the visibility somehow?
You can monitor the query creation like this: http://fsprojects.github.io/SQLProvider/core/querying.html
That sounds weird.
- how about if you create them with a long
.
Create(col1, ...)("test")
?- could this be that your transactions block the visibility somehow?
It does sound like a connection or a transaction is not being closed or disposed.
Thank you for your comments.
I've figured out the problem. It turns out it wasn't an SQLProvider issue, but an issue with the application content not being reloaded as it should.
Closing issue.
Description
I’m using SQLProvider to communicate with an MSSQL Server in an application written in F#. I do have a problem, though.
When I run the application I can use the DataContext to add new entries to the Database and submit them. This works and I can see the entries in the SQL server. However, if I then use the same F# application to browse the entries in the database, I do not find them in the DataContext, unless I restart the application.
There must be some way to update the DataContext to see all entries without restarting the application, but I haven’t been able to figure out how this is done. Any tips?
Repro steps
let row = ctx.Dbo.TableName.Create()
and adding entries to each column by callingrow.columnName <- "value"
).ctx.SubmitUpdates()
Expected behaviour
I'd expect the updates to be available in the DataContext when they are submitted.
Actual behaviour
I cannot find them until I restart the program
Related information