Creating a C# DLL for SQL interaction

Xamarin can be used to do the exactly same thing.
You can write .NET code in it and call it from C++ without worrying about marshaling .NET types.
Some people use it to create their own mobile engines for iOS/Android.