Comments (6)
To allow MySQL to use AutoDetect and a hardcoded version via overload, you can refer to the commit mentioned in the question. This commit introduces changes that enable the use of an overload for specifying the MySQL version explicitly or allowing the system to auto-detect it.
The commit comment linked in the question provides a discussion around this feature, where the contributors to the Elsa project discuss the implementation details. You can view the changes made in the commit to understand how to implement this in your own project.
Please note that you should always ensure that you are using compatible versions of the packages and that your project's dependencies are correctly configured to avoid any conflicts or issues.
If you need further clarification or assistance, please provide more context or specific questions regarding the implementation.
This comment was generated by Glime.
from elsa-core.
Hi. What do you think about adding method with ServerVersion
parameter and use old method with autodetect?
public static DbContextOptionsBuilder UseElsaMySql(this DbContextOptionsBuilder builder, Assembly migrationsAssembly, string connectionString, ElsaDbContextOptions? options = default, Action<MySqlDbContextOptionsBuilder>? configure = default) =>
UseElsaMySql(builder, migrationsAssembly, connectionString, ServerVersion.AutoDetect(connectionString), options, configure);
public static DbContextOptionsBuilder UseElsaMySql(this DbContextOptionsBuilder builder, Assembly migrationsAssembly, string connectionString, ServerVersion serverVersion, ElsaDbContextOptions? options = default, Action<MySqlDbContextOptionsBuilder>? configure = default) =>
builder
.UseElsaDbContextOptions(options)
.UseMySql(connectionString, serverVersion, db =>
{
db
.MigrationsAssembly(options.GetMigrationsAssemblyName(migrationsAssembly))
.MigrationsHistoryTable(options.GetMigrationsHistoryTableName(), options.GetSchemaName())
.SchemaBehavior(MySqlSchemaBehavior.Ignore);
configure?.Invoke(db);
});
If it's appropriate solution I can open PR today.
from elsa-core.
There is already PR to reverse changes about autodetect (#5621). May be author can add overload that I suggested.
from elsa-core.
@4lexKislitsyn Makes sense. @raymonddenhaan do you want to update your PR, or shall we ask @4lexKislitsyn to open a new one?
from elsa-core.
@4lexKislitsyn, @sfmskywalker I Updated the PR with the overload
from elsa-core.
Perfect, thanks @raymonddenhaan & @4lexKislitsyn !
from elsa-core.
Related Issues (20)
- [ENH] HOT 1
- [BUG]when publish workflow RouteExtensions path is null throw exception System.NullReferenceException:“Object reference not set to an instance of an object.”
- [BUG] System.NullReferenceException: 'Object reference not set to an instance of an object.'
- [BUG] Can´t save CodeActivity from example. Error "..must bind to an object property or field on deserialization." HOT 1
- [BUG] `Array.Sort()` Not Working as Expected on `ExpandoObject` Fields
- [BUG] Exception when saving workflow execution logs after running alterations when using MongoDb storage HOT 3
- [BUG] `Variable` and `Input` Do Not Work for Custom `IWorkflowProvider` Implementation HOT 3
- [FEAT] Add JS Functions and Activities for Encoding/Decoding Bytes and Base64
- [BUG] workflow die when i use activity Elsa.Delay in elsa 3
- [BUG] Error when Set Variable from Json data HOT 2
- [BUG] Remote Login default from elsa 3 and add custom login page
- [BUG] Revert Variable Accessors Returning Copy Instead of Reference
- [DOC] <Parallel execution of activities>how to use this feature?
- [FEAT] Bookmarks- Custom Payload Comparison
- Garbage Elsa, you haven't helped solve so many problems for so long. What else are you doing with open source? HOT 2
- MongoDB: Bulk Write Operation Error with '$type' Field in Elsa Workflows HOT 1
- [BUG] Collection serialization 3.2.0rc5
- [BUG]Memory usage cannot be reduced
- [BUG] Disappear Activity Elsa V3
- [BUG] NullReferenceException When Parsing a HttpResponse without content-type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.