e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
//---------------------------------------------------------------------
|
|
// <copyright file="IEntityStateManager.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//
|
|
// @owner dsimmons
|
|
// @backupOwner amirhmy
|
|
//---------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Data;
|
|
using System.Data.Objects;
|
|
using System.Data.Metadata.Edm;
|
|
using System.Collections.Generic;
|
|
|
|
namespace System.Data
|
|
{
|
|
/// <summary>
|
|
/// Interface allowing an IEntityAdapter to analyze state/change tracking information maintained
|
|
/// by a state manager in order to perform updates on a backing store (and push back the results
|
|
/// of those updates).
|
|
/// </summary>
|
|
internal interface IEntityStateManager {
|
|
IEnumerable<IEntityStateEntry> GetEntityStateEntries(EntityState state);
|
|
IEnumerable<IEntityStateEntry> FindRelationshipsByKey(EntityKey key);
|
|
IEntityStateEntry GetEntityStateEntry(EntityKey key);
|
|
bool TryGetEntityStateEntry(EntityKey key, out IEntityStateEntry stateEntry);
|
|
bool TryGetReferenceKey(EntityKey dependentKey, AssociationEndMember principalRole, out EntityKey principalKey);
|
|
}
|
|
}
|