Class DiscardChangesCommand
Base implementation of a IDiscardChangesCommand.
Inheritance
System.Object
DiscardChangesCommand
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Commands
Assembly: Kephas.Data.dll
Syntax
[DataContextType(typeof(DataContextBase))]
public class DiscardChangesCommand : SyncDataCommandBase<IDiscardChangesContext, IDataCommandResult>, ILoggable, IDiscardChangesCommand, IDataCommand<IDiscardChangesContext, IDataCommandResult>, IDataCommand, IAsyncOperation, ISyncDataCommand<IDiscardChangesContext, IDataCommandResult>, ISyncDataCommand
Methods
| Improve this Doc View SourceDetectModifiedEntries(IDiscardChangesContext)
Detects the modified entries.
Declaration
protected virtual IList<IEntityEntry> DetectModifiedEntries(IDiscardChangesContext operationContext)
Parameters
Type | Name | Description |
---|---|---|
IDiscardChangesContext | operationContext | The operation context. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IEntityEntry> | A list of entity entry objects. |
Execute(IDiscardChangesContext)
Removes all the changed entity infos from the cache.
Declaration
public override IDataCommandResult Execute(IDiscardChangesContext operationContext)
Parameters
Type | Name | Description |
---|---|---|
IDiscardChangesContext | operationContext | The operation context. |
Returns
Type | Description |
---|---|
IDataCommandResult |
Overrides
Kephas.Data.Commands.SyncDataCommandBase<Kephas.Data.Commands.IDiscardChangesContext, Kephas.Data.Commands.IDataCommandResult>.Execute(Kephas.Data.Commands.IDiscardChangesContext)