Xtensive.Orm.BulkOperations
7.2.0
dotnet add package Xtensive.Orm.BulkOperations --version 7.2.0
NuGet\Install-Package Xtensive.Orm.BulkOperations -Version 7.2.0
<PackageReference Include="Xtensive.Orm.BulkOperations" Version="7.2.0" />
<PackageVersion Include="Xtensive.Orm.BulkOperations" Version="7.2.0" />
<PackageReference Include="Xtensive.Orm.BulkOperations" />
paket add Xtensive.Orm.BulkOperations --version 7.2.0
#r "nuget: Xtensive.Orm.BulkOperations, 7.2.0"
#:package Xtensive.Orm.BulkOperations@7.2.0
#addin nuget:?package=Xtensive.Orm.BulkOperations&version=7.2.0
#tool nuget:?package=Xtensive.Orm.BulkOperations&version=7.2.0
Xtensive.Orm.BulkOperations
Summary
The extension provides a set of IQueryable extension methods that are translated to server-side UPDATE or DELETE commands.
Prerequisites
DataObjects.Net 7.1.x (http://dataobjects.net)
Examples of usage
Example #1. Update primitive property with a constant value:
session.Query.All<Bar>()
.Where(a => a.Id == 1)
.Set(a => a.Count, 2)
Update();
Example #2 Updating persistent property with expression, computed on server:
session.Query.All<Bar>()
.Where(a => a.Id==1)
.Set(a => a.Count, a => a.Description.Length)
.Update();
Example #3. Setting a reference to an entity that is already loaded into current Session
// Emulating entity loading
var bar = session.Query.Single<Bar>(1);
session.Query.All<Foo>()
.Where(a => a.Id == 2)
.Set(a => a.Bar, bar)
.Update();
Example #4. Setting a reference to an entity that is not loaded into Session, 1st way
session.Query.All<Foo>()
.Where(a => a.Id == 1)
.Set(a => a.Bar, a => Query.Single<Bar>(1))
.Update();
Example #5. Setting a reference to an entity that is not loaded into Session, 2nd way
session.Query.All<Foo>()
.Where(a => a.Id == 1)
.Set(a => a.Bar, a => Query.All<Bar>().Single(b => b.Name == "test"))
.Update();
Example #6. Constructing update expressions of the fly
bool condition = CheckCondition();
var query = session.Query.All()<Bar>
.Where(a => a.Id == 1)
.Set(a => a.Count, 2);
if(condition)
query = query.Set(a => a.Name, a => a.Name + "test");
query.Update();
Example #7. Updating lots of properties at once
session.Query.All<Bar>()
.Where(a => a.Id == 1)
Update(
a => new Bar(null) { Count = 2, Name = a.Name + "test", /*dozens of other properties...*/ });
Example #8. Deleting entities
session.Query.All<Foo>()
.Where(a => a.Id == 1)
.Delete();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net6.0
- Xtensive.Orm (>= 7.2.0)
-
net7.0
- Xtensive.Orm (>= 7.2.0)
-
net8.0
- Xtensive.Orm (>= 7.2.0)
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 |
|---|---|---|
| 7.2.0 | 4,298 | 11/16/2025 |
| 7.2.0-RC | 154 | 11/1/2025 |
| 7.2.0-Beta-2 | 263 | 4/27/2025 |
| 7.2.0-Beta-1 | 205 | 12/28/2023 |
| 7.1.6 | 263 | 10/29/2025 |
| 7.1.5 | 682 | 4/10/2025 |
| 7.1.4 | 12,766 | 1/27/2025 |
| 7.1.2 | 408 | 10/18/2024 |
| 7.1.1 | 18,650 | 11/14/2023 |
| 7.1.0 | 582 | 4/12/2023 |
| 7.1.0-RC | 298 | 3/9/2023 |
| 7.0.7 | 222 | 10/28/2025 |
| 7.0.6 | 215 | 12/19/2024 |
| 7.0.5 | 236 | 6/3/2024 |
| 7.0.4 | 247 | 11/12/2023 |
| 6.0.15 | 3,644 | 10/27/2025 |
| 6.0.14 | 223 | 12/17/2024 |
| 6.0.13 | 292 | 4/4/2024 |
| 6.0.12 | 34,871 | 11/10/2023 |