Scry.Client 0.1.0-beta.1

This is a prerelease version of Scry.Client.
dotnet add package Scry.Client --version 0.1.0-beta.1
                    
NuGet\Install-Package Scry.Client -Version 0.1.0-beta.1
                    
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.1.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scry.Client" Version="0.1.0-beta.1" />
                    
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.1.0-beta.1
                    
#r "nuget: Scry.Client, 0.1.0-beta.1"
                    
#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.1.0-beta.1
                    
#: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.1.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Scry.Client&version=0.1.0-beta.1&prerelease
                    
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. No EF dependency, so it stays small in a trimmed Blazor WebAssembly app.

This package also ships 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)\net10.0\Sample.Model.dll</ScryModelDll>

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

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

builder.Services.AddScoped(
    _ => new HttpClient
    {
        BaseAddress = new(builder.HostEnvironment.BaseAddress)
    });
builder.Services.AddScryClient("/api/query");
builder.Services.AddScoped<ScryQuery>();

<sup><a href='/samples/Sample.Client/Program.cs#L13-L21' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientRegistration' 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.Client/Pages/Index.razor.cs#L28-L34' 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

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-beta.1 38 7/26/2026