-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Environment:
OS: Ubuntu 22.04 (QEMU)
Arch: ARM64
.NET SDK version: 8.0
Build
I had build at x86_64 Windows Machine by below command line.
dotnet publish -c Release -r linux-arm64
Libraries
Example Code:
public T QuerySomething<T>(string sql, object param)
{
return dbConnection.Query<T>(sql, param);
}
...
SqlMapper.AddTypeHandler(new CustomTypeHandler()); // Implemented all interface.
...
QuerySomething<Model>("SELECT * FROM Model WHERE CustomTypeValue=@CustomTypeValue", new { CustomTypeValue = customTypeValue }
System.Data.SQLite.Core
I already installed libsqlite3-dev package. but it requires SQLite.Interop.dll
.
Exception:
Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
System.Data.SQLite.Core with x64 Linux/Windows
No Exceptions.
Microsoft.Data.Sqlite.Core
Exception:
No mapping exists from object type CustomType to a known managed provider native type.
Doesn't work SqlMapper.AddTypeHandler()
.
Is there a way recommended usage in Linux ARM64?