Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

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);
}
}