Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / Internal / PocoEntityKeyStrategy.cs / 1305376 / PocoEntityKeyStrategy.cs
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.Objects.DataClasses; using System.Diagnostics; namespace System.Data.Objects.Internal { ////// Implementor of IEntityKeyStrategy for getting and setting a key on an entity that does not /// implement IEntityWithKey. The key is stored in the strategy object. /// internal sealed class PocoEntityKeyStrategy : IEntityKeyStrategy { private EntityKey _key; ////// Creates a new strategy object; no reference to the actual entity is required. /// public PocoEntityKeyStrategy() { } // See IEntityKeyStrategy public EntityKey GetEntityKey() { return _key; } // See IEntityKeyStrategy public void SetEntityKey(EntityKey key) { _key = key; } // See IEntityKeyStrategy public EntityKey GetEntityKeyFromEntity() { return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.Objects.DataClasses; using System.Diagnostics; namespace System.Data.Objects.Internal { ////// Implementor of IEntityKeyStrategy for getting and setting a key on an entity that does not /// implement IEntityWithKey. The key is stored in the strategy object. /// internal sealed class PocoEntityKeyStrategy : IEntityKeyStrategy { private EntityKey _key; ////// Creates a new strategy object; no reference to the actual entity is required. /// public PocoEntityKeyStrategy() { } // See IEntityKeyStrategy public EntityKey GetEntityKey() { return _key; } // See IEntityKeyStrategy public void SetEntityKey(EntityKey key) { _key = key; } // See IEntityKeyStrategy public EntityKey GetEntityKeyFromEntity() { return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebBrowserDesigner.cs
- MetadataItemEmitter.cs
- Converter.cs
- HtmlShimManager.cs
- HttpModuleAction.cs
- PermissionSetEnumerator.cs
- TextParagraphView.cs
- XmlAnyElementAttributes.cs
- UnsafeNativeMethods.cs
- Button.cs
- SelectionGlyphBase.cs
- Base64Encoding.cs
- FontFamily.cs
- Hash.cs
- DataGridViewRowEventArgs.cs
- ActiveXMessageFormatter.cs
- TemplateLookupAction.cs
- Condition.cs
- IPEndPoint.cs
- CursorEditor.cs
- OSFeature.cs
- LocalizationComments.cs
- PackagingUtilities.cs
- ArrayWithOffset.cs
- MultipleViewProviderWrapper.cs
- DataGridViewRowHeaderCell.cs
- WindowsAltTab.cs
- SurrogateEncoder.cs
- _RequestCacheProtocol.cs
- Timer.cs
- DataSourceHelper.cs
- RectConverter.cs
- TextEditorCharacters.cs
- MethodBody.cs
- UniformGrid.cs
- CodeMethodMap.cs
- BaseResourcesBuildProvider.cs
- StreamHelper.cs
- StatusStrip.cs
- Odbc32.cs
- RegexWriter.cs
- FixedSOMPageElement.cs
- LineVisual.cs
- WebScriptServiceHost.cs
- SQLMoney.cs
- OdbcConnectionFactory.cs
- ScrollChrome.cs
- ItemContainerProviderWrapper.cs
- FormatException.cs
- TextCompositionManager.cs
- odbcmetadatafactory.cs
- EventSetter.cs
- ScriptMethodAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- DataGridViewDataErrorEventArgs.cs
- RequestQueue.cs
- OdbcCommandBuilder.cs
- ClientSettings.cs
- CodeSnippetStatement.cs
- MsmqChannelListenerBase.cs
- ObfuscateAssemblyAttribute.cs
- BrowserCapabilitiesFactory35.cs
- DataPagerFieldItem.cs
- ListMarkerSourceInfo.cs
- MethodSignatureGenerator.cs
- IntSecurity.cs
- OleDbParameter.cs
- DataGridAutoFormatDialog.cs
- MethodAccessException.cs
- TextChange.cs
- FrameworkContentElementAutomationPeer.cs
- NavigationWindowAutomationPeer.cs
- Button.cs
- OperationContractAttribute.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ArraySegment.cs
- WebPartTransformer.cs
- MenuItem.cs
- InputLanguage.cs
- SymmetricAlgorithm.cs
- RadioButtonRenderer.cs
- _ConnectionGroup.cs
- PackageDigitalSignatureManager.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ScriptComponentDescriptor.cs
- RawStylusActions.cs
- DPCustomTypeDescriptor.cs
- httpstaticobjectscollection.cs
- TypeUtil.cs
- RegexBoyerMoore.cs
- XmlnsCache.cs
- MetadataArtifactLoader.cs
- SoapDocumentMethodAttribute.cs
- OracleEncoding.cs
- EntityClientCacheKey.cs
- PrinterUnitConvert.cs
- ProgressBar.cs
- versioninfo.cs
- AuthenticationModuleElement.cs
- TraceUtils.cs