Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4610396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:07:31+00:00 2026-05-22T01:07:31+00:00

We have built the MySql connector from source and changed the assembly name to

  • 0

We have built the MySql connector from source and changed the assembly name to OurCompany.MySql.Data.

Also, I am exploring ORM’s for the first time and came across NHibernate. After configuring everything and mapping my first test class I am at a point where our renamed MySql connector is now a problem. Is there a way I can point NHibernate to our renamed assembly?

** edit heres my config **

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
        <property name="dialect">
            NHibernate.Dialect.MySQLDialect
        </property>
        <property name="connection.provider">
            NHibernate.Connection.DriverConnectionProvider
        </property>
        <property name="connection.driver_class">
            NHibernate.Driver.MySqlDataDriver
        </property>
        <property name="connection.connection_string">
           Server=192.168.2.5;Database=TomTest;User ID=webuser;Password=webuser
        </property>
        <property name="show_sql">true</property>
        <property name="proxyfactory.factory_class">
           NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
        </property>
        <!-- HBM Mapping Files -->
        <mapping assembly="MyAssembly"/>
    </session-factory>
</hibernate-configuration>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:07:31+00:00Added an answer on May 22, 2026 at 1:07 am

    Take a look at the code of MySqlDataDriver. It’s trivial to write a ReflectionBasedDriver that is exactly like the MySqlDataDriver but only differs in the assembly name (the second parameter in the constructor). Then plug your driver in the connection.driver_class property (use its fully qualified type name)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been attempting to install MySQL 5.1.59 from source for the last couple
This SELECT finds Kelly as expected: select [First Name], [Last Name], Phone from [Data$]
I am trying to build MySQL's Connector/C from source in cygwin and there are
Reason why: http://bugs.mysql.com/bug.php?id=61933 I recompiled the connector from source, incremented tit a version to
Is it Oracle or MySQL or something they have built themselves?
Why you may ask? Because i have built the app on mysql and need
Suppose you have a messaging system built in PHP with a MySQL database backend,
Now I have my website built on PHP & Mysql. Consider this like a
i have built (locally) a silverlight website. It uses a mysql database (had to
I have an application built in Delphi and it accesses MySQL database using MyDAC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.