//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Objects.DataClasses; namespace System.Data.Objects.Internal { /// /// A strategy interface that defines methods used for setting and getting EntityKey values on an entity. /// Implementors of this interface are used by the EntityWrapper class. /// internal interface IEntityKeyStrategy { /// /// Gets the entity key. /// /// The key EntityKey GetEntityKey(); /// /// Sets the entity key /// /// The key void SetEntityKey(EntityKey key); /// /// Returns the entity key directly from the entity /// /// the key EntityKey GetEntityKeyFromEntity(); } }