System.PlatformNotSupportedException: System.Data.SqlClient is not supported on this platform.
- 0
- Self Hosted
- Functions

I use the the SqlClient in my c# function but I get this exception... What do I need to do so it works?

Could you give more context on what you're trying to achieve?

I have a trigger so when create/update/delete is executed on the appwrite database I want to "sync" this to an other MSSQL database

I also used the cli to create the function so the deloyment works just fine 🙂

I also changed to the package Microsoft.Data.SqlClient but it didn't help... here is the csproj File that I use:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<OutputType>Exe</OutputType>
<!-- <RuntimeIdentifier>ubuntu.22.04-x64</RuntimeIdentifier> -->
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Appwrite" Version="0.8.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
</ItemGroup>
</Project>
Recommended threads
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
- unable to modify attribute
please help: when I try to modify attribute size or key or anything, I am getting this errors: ``` Deprecated: strtolower(): Passing null to parameter #1 ($str...
- Error 1.7.4 console team no found
In console when i go to auth, select user, select a membership the url not work. Only work searching the team. It is by the region. project-default- and i get ...
