title: Can you use v3 Azure Functions with Entity Framework Core 3.0?
body: <p>I am trying to use EF Core 3 in the latest (preview) version of Azure functions, but I am getting the following error when I try interacting with the database:</p>
  
  <blockquote>
    <p>System.Private.CoreLib: Exception while executing function: DemoFunction. Microsoft.Data.SqlClient: Microsoft.Data.SqlClient is not supported on this platform.</p>
  </blockquote>
  
  <p>I have a web app in the same solution that works just fine with the same setup, and there is nothing special about my "platform". This is the output from <code>dotnet --info</code>:</p>
  
  <blockquote>
    <p>.NET Core SDK (reflecting any global.json):  Version:<br>
    3.1.100-preview2-014569  Commit:    4bd5d24d87</p>
    
    <p>Runtime Environment:  OS Name:     Windows  OS Version:  10.0.18362 
    OS Platform: Windows  RID:         win10-x64  Base Path:   C:\Program
    Files\dotnet\sdk\3.1.100-preview2-014569\</p>
    
    <p>Host (useful for support):   Version: 3.1.0-preview2.19525.6   Commit:
    5672978d91</p>
    
    <p>.NET Core SDKs installed:
      2.1.801 [C:\Program Files\dotnet\sdk]
      2.1.802 [C:\Program Files\dotnet\sdk]
      3.0.100 [C:\Program Files\dotnet\sdk]
      3.1.100-preview2-014569 [C:\Program Files\dotnet\sdk]</p>
    
    <p>.NET Core runtimes installed:   Microsoft.AspNetCore.All 2.1.12
    [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]<br>
    Microsoft.AspNetCore.All 2.1.13 [C:\Program
    Files\dotnet\shared\Microsoft.AspNetCore.All]<br>
    Microsoft.AspNetCore.App 2.1.12 [C:\Program
    Files\dotnet\shared\Microsoft.AspNetCore.App]<br>
    Microsoft.AspNetCore.App 2.1.13 [C:\Program
    Files\dotnet\shared\Microsoft.AspNetCore.App]<br>
    Microsoft.AspNetCore.App 3.0.0 [C:\Program
    Files\dotnet\shared\Microsoft.AspNetCore.App]<br>
    Microsoft.AspNetCore.App 3.1.0-preview2.19528.8 [C:\Program
    Files\dotnet\shared\Microsoft.AspNetCore.App]   Microsoft.NETCore.App
    2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App 2.1.13 [C:\Program
    Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App
    3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App 3.1.0-preview2.19525.6 [C:\Program
    Files\dotnet\shared\Microsoft.NETCore.App]<br>
    Microsoft.WindowsDesktop.App 3.0.0 [C:\Program
    Files\dotnet\shared\Microsoft.WindowsDesktop.App]<br>
    Microsoft.WindowsDesktop.App 3.1.0-preview2.19525.6 [C:\Program
    Files\dotnet\shared\Microsoft.WindowsDesktop.App]</p>
  </blockquote>
  
  <p>I have created a minimal reproduction of the issue <a href="https://github.com/benm-eras/SqlClientNotSupportedDemo" rel="nofollow noreferrer">here</a>, just start up the functions project and send it an HTTP request (same with the web app). </p>
  
  <p>Is it currently possible to use EF Core 3 with v3 Azure Functions? (FYI I have a v2 Functions app running with EF Core 2.1)</p>