As it seems to create your own dll and compile it as a resource and then load it from memory isn`t hard one.
Hard is when you have to load others created dll from memory as a resource from your exe cause they use some locks maby.
and then load it correctly as it.
If anyone ever found a solution around the issue of mysql connector dll that needs to be sitting in the executables file folder i would be glad to know.
All i need is to avoid having it as a file sitting near my exe and load it from memory or at least to be able to extract it and created during runtime and when the application closes to be deleted too as file from the executables folder.