Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05: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);
}
}