In a setup project, all you need is an Installer class custom action in the
Dll and VS will do the rest. But you're talking about tables, and that makes
me think you mean MSI tables that you want to edit to do the call. The short
answer is that you can't really do that because you cannot call a .NET Dll
directly. VS adds a shim, InstallUtilLib.Dll, that gets called, then that
uses reflection to instantiate your Installer class methods. There's a lot
going on in there.
The easiest way to call a .NET Dll is to write a .NET executable, call it as
a custom action passing any parameters in the command line, then have that
exe call the .NET assembly.