Coder Social home page Coder Social logo

nhibernate.mysqlconnector's People

Contributors

bgrainger avatar dennis-gr avatar eahagbuje avatar fredericdelaporte avatar hazzik avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nhibernate.mysqlconnector's Issues

SchemaUpdate doesn't work

FluentNHibernate 3.1.9
NH 5.3.9
MySqlConnector 1.3.11
NHibernate.Driver.MySqlConnector 2.0.0

Executing the following code doesn't work:

  var config = Fluently.Configure()
                .Database(MySQLConfiguration.Standard
                    .ConnectionString("User Id=aaa;Password=bbb;Host=localhost;Port=3306;Database=test;Default Command Timeout=120;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0;Character Set=utf8;")
                    .Dialect<MySQLDialect>()
                    .Driver<MySqlConnectorDriver>()
                    .ShowSql()
                    .FormatSql())
                .Mappings(x => x.FluentMappings.AddFromAssemblyOf<User>())
                .BuildConfiguration();

            //var updater = new SchemaExport(config);
            //updater.Create(true, true);

            var updater = new SchemaUpdate(config);
            updater.Execute(true, true);

Note: create does work (but update doesn't)

TestNHMySqlSchemaUpdate.zip

Could not create the driver from NHibernate.Driver.MySqlConnectorDriver,NHibernate.Driver.MySqlConnector.

Hi,
I'm using .net core 2.2 with NHibernate 5.1.3. I forked MySqlConnector and made a version that works with NHibernate but every time I must follow the updates, so I tried your version but I get an error "Could not create the driver from NHibernate.Driver.MySqlConnectorDriver,NHibernate.Driver.MySqlConnector." . the hibernate.cfg.xml is

 <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  <session-factory>
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
    <property name="cache.use_query_cache" >false</property>       
    <property name="connection.driver_class">NHibernate.Driver.MySqlConnectorDriver,NHibernate.Driver.MySqlConnector</property>
    <property name="connection.connection_string">Server=localhost;Port=3307;Database=gsicore;Userid=root;Password=******;Pooling=true;MinPoolSize=5;MaxPoolSize=20;;UseCompression=True;default command timeout=120;Connection Timeout=30;</property>
    <mapping assembly="gsiFrameworkNetCore"/>
  </session-factory>
</hibernate-configuration> 

Can you help and point what I'm doing wrong?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/pack.yml
  • actions/checkout v4
  • actions/setup-dotnet v4
nuget
Directory.Build.props
  • Microsoft.NETFramework.ReferenceAssemblies 1.0.3
  • GitVersion.MsBuild 5.12.0
global.json
  • dotnet-sdk 8.0.203
src/NHibernate.Driver.MySqlConnector/NHibernate.Driver.MySqlConnector.csproj
  • NHibernate 5.1.0
  • MySqlConnector 1.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.