-
-
Notifications
You must be signed in to change notification settings - Fork 385
MySqlBatchRunner #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySqlBatchRunner #51
Conversation
|
Why has this not been merged? Does loresoft have some issue with it? |
|
Hi all, one thing looks missing in this PR. The MySqlBatchRunner is not registered in the IoC But this adds a new problem: supporting different dialects (so we will end up with an |
|
The way it was designed implies this kind of implementation. One implementatoin per dialect. There are any problem in this contribuition that makes it unusefull? |
Update base project from lotesoft/master
|
@quantumtunneling looks like loresoft is not much active on this project anymore 😢 |
|
yes, i did email him and he did merge a bunch of tickets across, not the one i was hoping for unfortunately... |
Update base project
MySQL Batch pull
|
@rcdmk looks your PR has compilation problems. I have tried to fix them according to EF.E structure (async methods and #if statements). Not sure whether to PR to your fork or to the official (at least AppVeyor will check and test code). Maybe to both |
Fixed MySQLBatchRunner
|
Ok, the runner seems to be implemented. But now we must tell EF.E how to tell between SqlServer batch runner and MySql batch runner. Currently BatchExtensions.cs (https://github.com/loresoft/EntityFramework.Extended/blob/97806210a1014d0240d4740835b7e2c6e45b9438/Source/EntityFramework.Extended/Extensions/BatchExtensions.cs#L400) resolves the proper This approach must be changed but I would like to ask for advice. The method must take a Now the advice I ask: if testing with I am preparing a code modification on my branch that does not use Another activity is to write MySQL tests. They could derive from SQL Server (linked source) |
|
An alternative might be introducing a configuration parameter in the |
|
On application startup, call the following ... |
|
What about auto detection? Applications, like mine, that need to switch between both DBs with simple Web.config transformations will benefit a lot |
|
Returning to @rcdmk's work, I have another finding (as already reported by @shadowzcw): Replacing Surely if schema is null (which is correct in Mysql) we fixed it all. Maybe @shadowzcw comes, like me, from a database-first model? |
|
I'm with @pwelter34 on this, but register the correct runner based on your inspection of the connection string. Related fun http://stackoverflow.com/questions/20912406/sql-schema-changed-to-be-dbo-dbo-after-altering-table-name |
|
Hi guys, I have successfully fixed the My solution was to store Currently my branch contains both this modification (already tested on the two DBs) and other modifications earlier proposed (e.g. auto detection of runner based on connection inspection). I would like to push at least commit 4da2cad, but I'd ask for your comments also. |
Added a
MySqlBatchRunnerto use batchUPDATEs andDELETEs withMySQL .Net Connector.Sorry for me being lazy and not creating a test project for this. I've made various local tests with a simple 5 line console app and it works as expected.
Hope someone have some time to give a little more attention to it and maybe I can follow-up with a better contribution.