//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// bfung
// spather
//------------------------------------------------------------------------------
using System.Data.Common;
namespace System.Data
{
///
/// The IEntityAdapter interface allows adapters to support updates of entities stored in an IEntityCache.
///
internal interface IEntityAdapter
{
///
/// Gets or sets the connection used by this adapter.
///
DbConnection Connection { get; set; }
///
/// Gets or sets whether the IEntityCache.AcceptChanges should be called during a call to IEntityAdapter.Update.
///
bool AcceptChangesDuringUpdate { get; set; }
///
/// Gets of sets the command timeout for update operations. If null, indicates that the default timeout
/// for the provider should be used.
///
Int32? CommandTimeout { get; set; }
///
/// Persists the changes made in the entity cache to the store.
///
Int32 Update(IEntityStateManager cache);
}
}