Try our conversational search powered by Generative AI!

Interface IUpdateQueryable<TStore>

When implemented, should handles updates on a queryable, to make batch updates in DDS.

Namespace: EPiServer.Data.Dynamic
Assembly: EPiServer.Data.dll
Version: 11.20.7
Syntax
public interface IUpdateQueryable<TStore>
Type Parameters
Name Description
TStore

The type of DDS store.

Methods

Execute()

Executes the batch update.

Declaration
int Execute()
Returns
Type Description
System.Int32

The number of rows that has been updated.

Set<TUpdate>(Expression<Func<TStore, TUpdate>>, TUpdate)

Updates a property to a specific value.

Declaration
IUpdateQueryable<TStore> Set<TUpdate>(Expression<Func<TStore, TUpdate>> property, TUpdate value)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TStore, TUpdate>> property

The property to update.

TUpdate value

The value to set on the property.

Returns
Type Description
IUpdateQueryable<TStore>

The same instance.

Type Parameters
Name Description
TUpdate

The generic type.

Set<TUpdate>(Expression<Func<TStore, TUpdate>>, Expression<Func<TStore, TUpdate>>)

Updates a property to a specific value.

Declaration
IUpdateQueryable<TStore> Set<TUpdate>(Expression<Func<TStore, TUpdate>> property, Expression<Func<TStore, TUpdate>> value)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TStore, TUpdate>> property

The property to update.

System.Linq.Expressions.Expression<System.Func<TStore, TUpdate>> value

The value to set on the property.

Returns
Type Description
IUpdateQueryable<TStore>

The same instance.

Type Parameters
Name Description
TUpdate

The generic type.

Where(Expression<Func<TStore, Boolean>>)

Condition, that specifies which rows that should be updated.

Declaration
IUpdateQueryable<TStore> Where(Expression<Func<TStore, bool>> predicate)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TStore, System.Boolean>> predicate

The condition.

Returns
Type Description
IUpdateQueryable<TStore>

The same instance.

Extension Methods