Share via


LinqToEntitiesDomainService<TContext>.ResolveConflicts Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Resolves the conflicts when the submit fails due to optimistic concurrency conflicts.

Namespace:  System.ServiceModel.DomainServices.EntityFramework
Assembly:  System.ServiceModel.DomainServices.EntityFramework (in System.ServiceModel.DomainServices.EntityFramework.dll)

Syntax

'Declaration
Protected Overridable Function ResolveConflicts ( _
    conflicts As IEnumerable(Of ObjectStateEntry) _
) As Boolean
'Usage
Dim conflicts As IEnumerable(Of ObjectStateEntry)
Dim returnValue As Boolean

returnValue = Me.ResolveConflicts(conflicts)
protected virtual bool ResolveConflicts(
    IEnumerable<ObjectStateEntry> conflicts
)
protected:
virtual bool ResolveConflicts(
    IEnumerable<ObjectStateEntry^>^ conflicts
)
abstract ResolveConflicts : 
        conflicts:IEnumerable<ObjectStateEntry> -> bool 
override ResolveConflicts : 
        conflicts:IEnumerable<ObjectStateEntry> -> bool 
protected function ResolveConflicts(
    conflicts : IEnumerable<ObjectStateEntry>
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the conflicts were successfully resolved; otherwise, false.

Remarks

If the submit fails due to concurrency conflicts, the ResolveConflicts method is called. If ResolveConflicts returns true, a single resubmit will be attempted.

See Also

Reference

LinqToEntitiesDomainService<TContext> Class

System.ServiceModel.DomainServices.EntityFramework Namespace