Define two nodes
Nodes remain ordinary domain types.
public sealed class PersonNode : Node
{
public string Name { get; set; } = string.Empty;
}
public sealed class ProjectNode : Node
{
public string Name { get; set; } = string.Empty;
}GORM is a strongly typed graph ORM for .NET and SQL Server Graph. Start with ordinary CLR types, express relationship direction explicitly, inspect generated SQL and use the same graph model for temporal inspection and fast tests.
Nodes, edges, direction, identity, navigations, topology change tracking and provider boundaries.
Learn the model → QUERYINGLINQ roots, predicates, outgoing/incoming traversal, chained paths, Include, paging and temporal queries.
Explore queries → GUIDESDependencies, dependents, historical topology, testing and graph-oriented application recipes.
Browse recipes → EXAMPLESOpen focused traversal, paging, temporal and relationship-loading examples directly in the playground.
Run examples → ADVANCEDGraph Intelligence, Digital Twin, GraphRAG, Helix and ChangeSet — with publication status kept explicit.
Explore capabilities → COMPATIBILITYLive SQL Server tests, public NuGet recipes and the outstanding verification backlog.
Review evidence → REFERENCECore types, GraphSet, traversal operators, temporal operations, execution and provider behavior.
Open reference → GRAPH EXPLORERClick nodes and typed edges, follow outgoing or incoming relationships and generate the equivalent GORM query and SQL shape.
Explore the model → PLAYGROUNDEdit GORM LINQ and see root nodes, parameters, translation stages, graph hops and SQL Server Graph shape.
Open playground →Nodes remain ordinary domain types.
public sealed class PersonNode : Node
{
public string Name { get; set; } = string.Empty;
}
public sealed class ProjectNode : Node
{
public string Name { get; set; } = string.Empty;
}The edge is typed and may carry its own data.
public sealed class WorksOnEdge : Edge
{
public bool IsPrimary { get; set; }
}The direction and edge type become visible in application code.
var projects = await context.Set<PersonNode>()
.Where(x => x.Id == personId)
.Outgoing<WorksOnEdge, ProjectNode>()
.ToListAsync();Where / Select / OrderByAsk questions about scalar data on a node set.Outgoing / IncomingAsk which nodes are connected through a typed directed relationship.Include / ThenIncludeMaterialize related graph state as an object graph.AsOf / CurrentMove graph inspection through time.Graph IntelligenceDerive impact, routing, components or other graph insight.ChangeSetMake graph persistence work inspectable before execution.GORM 3.1.0-preview.1 is publicly available on NuGet.org. Create a console application, install GORM, and follow the working, package-only tutorial:
dotnet new console --framework net10.0 -n MyFirstGraph
cd MyFirstGraph
dotnet add package GORM --version 3.1.0-preview.1
Copy the verified Program.cs into your new project, then run dotnet run. The example uses an in-memory store and prints SQL generated by GORM's real translator.
The NuGet-based console example runs actual GORM code. The website's interactive LINQ Playground still approximates SQL in JavaScript; it is not the compiled translator. Real SQL Server persistence requires a database-first schema.