Scry.Client 0.5.0

dotnet add package Scry.Client --version 0.5.0
                    
NuGet\Install-Package Scry.Client -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scry.Client" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scry.Client" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Scry.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Scry.Client --version 0.5.0
                    
#r "nuget: Scry.Client, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Scry.Client@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Scry.Client&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Scry.Client&version=0.5.0
                    
Install as a Cake Tool

Scry.Client

Client-side LINQ provider for Scry. Write ordinary LINQ against the source-generated query models; Scry captures it, serializes it to the query AST, and sends it to the server. The package has no EF dependency, so it stays small in a trimmed Blazor WebAssembly app and light in a WPF, Windows Forms, or console client.

This package also contains the Scry source generator, so a client project needs only a <ScryModelDll> path to the server model's built DLL, never a reference to it.

<a id='snippet-clientModelPath'></a>


<ScryModelDll>$(MSBuildThisFileDirectory)..\Sample.Model\bin\$(Configuration)\net11.0\Sample.Model.dll</ScryModelDll>

<sup><a href='/samples/Sample.WebClient/Sample.WebClient.csproj#L7-L10' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientModelPath' title='Start of snippet'>anchor</a></sup>

If the model ships as a NuGet package, <ScryModelDll> points at the DLL inside the package. The package is downloaded but never referenced. See The model as a package.

Register the client over a named HttpClient, so that its base address, and any handlers later added to its pipeline, stay separate from every other call the application makes:

<a id='snippet-clientRegistration'></a>

var services = builder.Services;
services.AddHttpClient(
    "scry",
    _ => _.BaseAddress = new(builder.HostEnvironment.BaseAddress));
services.AddScryClient(
    "/api/query",
    _ => _.GetRequiredService<IHttpClientFactory>().CreateClient("scry"));
services.AddScoped<ScryQuery>();

<sup><a href='/samples/Sample.WebClient/Program.cs#L14-L23' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientRegistration' title='Start of snippet'>anchor</a></sup>

Blazor WebAssembly is the exception. It has a single HttpClient, which the browser backs and which already points at the app's own origin, so there is nothing to keep separate. The shorter overload also avoids pulling Microsoft.Extensions.Http into the app's download.

<a id='snippet-clientWasmRegistration'></a>

services.AddScoped(
    _ => new HttpClient
    {
        BaseAddress = new("https://localhost")
    });
services.AddScryClient("/api/query");
services.AddScoped<ScryQuery>();

<sup><a href='/samples/Sample.Tests/ClientRegistrationTests.cs#L19-L27' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientWasmRegistration' title='Start of snippet'>anchor</a></sup>

<a id='snippet-clientQuery'></a>

employees = await Query
    .Employee
    .Where(_ => _.Active)
    .OrderBy(_ => _.Name)
    .Select(_ => new EmployeeRow(_.Name, _.Status, _.Manager!.Name, _.Department!.Name))
    .ToListAsync();

<sup><a href='/samples/Sample.WebClient/Pages/Index.razor.cs#L82-L89' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientQuery' title='Start of snippet'>anchor</a></sup>

Docs: Getting started · Writing queries · Source generator · The model as a package

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Scry.Client:

Package Downloads
Scry.Client.SignalR

Sends Scry queries, streams and live queries over a SignalR hub connection, so many live queries share one connection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 50 12/3/2026
0.4.0 120 11/20/2026
0.3.0 109 11/16/2026
0.2.0 113 11/7/2026
0.1.0 104 11/3/2026
0.1.0-beta.15 73 10/28/2026
0.1.0-beta.14 68 10/21/2026
0.1.0-beta.13 70 10/7/2026
0.1.0-beta.12 81 10/1/2026
0.1.0-beta.11 68 9/30/2026
0.1.0-beta.10 75 9/24/2026
0.1.0-beta.9 92 9/8/2026
0.1.0-beta.7 83 9/4/2026
0.1.0-beta.6 78 9/4/2026
0.1.0-beta.5 94 8/30/2026
0.1.0-beta.4 92 8/15/2026
0.1.0-beta.3 93 8/2/2026
0.1.0-beta.2 86 7/31/2026
0.1.0-beta.1 84 7/26/2026