Re: How to do non dependence on database vendor?

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Brett" wrote...
> "Bjorn Abelli" wrote...

> What is this part of the reflection loading exactly?
> Assembly a = Assembly.Load( assemblyName );

It simply loads the assembly with the provider... ;-)

When it's loaded into memory, you can access it's classes, without the need
to include it beforehand, when compiling your application.

Depending on which ADO.NET-provider you want to load, this way you can load
it dynamically on the fly, e.g. "MySql.Data.dll" for MySQL, etc.

> You mentioned INI files but I assume the above is a DLL
> or EXE, which all assemblies are.

With ini-file, I just mean some kind of configuration file, containing plain
text strings with information about assembly names, names for the connection
classes, connection strings etc, in short the strings needed for the
reflection, to be able to load the right assemblies, instantiate the
classes, etc. Personally, I'm going for some XML-formatted configuration
file in my adhoc-query-machine... ;-)

// Bjorn A


.



Relevant Pages

  • Re: Make a DLL in C# for FoxPro
    ... Interop from managed -> COM is a different story, here we are talking about new developments, and here you have probably accepted the larger memory footprint :-) ... The first is handled by the DLL/C++ code I posted which loads the .NET runtime and allows loading of assemblies and types. ... If you're not adverse to registering components you can completely skip this step and just use the .NET wrapper component from FoxPro with CreateObject. ... *** Load Static Method ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to do non dependence on database vendor?
    ... > Depending on which ADO.NET-provider you want to load, ... >> or EXE, which all assemblies are. ... > plain text strings with information about assembly names, ... > connection classes, connection strings etc, in short the strings needed ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: bizarre asp.net app loading failure
    ... I gave it a try but unfortunately the fusion logs didn't show ... I see a bunch of assembly load logs for application 3e70de80 ... (presumably the name for the app pool). ... of assemblies that reference it, even though they are not used by all the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Force Load DLL From Different Dir?
    ... try load the version MyAddIn bound to at compile time. ... Actually this is NOT version related, but context related: Assemblies can ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • RE: some other problems
    ... | What you said is reasonable, but how can IE load the assembly ... you try to load the same page in your customized browser the assembly is ... First off the only browser that should be able to load assemblies is ... | mscorlib.resources twice, one is successful, the other is not. ...
    (microsoft.public.dotnet.vjsharp)