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
- EntitySqlQueryCacheKey.cs
- EventListener.cs
- TextDpi.cs
- DataBindEngine.cs
- PropertySet.cs
- DependencyObjectType.cs
- FontSizeConverter.cs
- DataGridLinkButton.cs
- WorkflowMarkupSerializationProvider.cs
- CodePageEncoding.cs
- StylusCollection.cs
- RuleCache.cs
- ClaimTypes.cs
- LocalizableResourceBuilder.cs
- XmlIlTypeHelper.cs
- RowsCopiedEventArgs.cs
- FormatterServices.cs
- UnrecognizedAssertionsBindingElement.cs
- Encoder.cs
- RootProjectionNode.cs
- OledbConnectionStringbuilder.cs
- Camera.cs
- BrowserCapabilitiesFactory.cs
- SymbolType.cs
- EastAsianLunisolarCalendar.cs
- SmtpMail.cs
- HtmlContainerControl.cs
- GridView.cs
- PermissionToken.cs
- elementinformation.cs
- TokenBasedSetEnumerator.cs
- TemplateDefinition.cs
- ContentValidator.cs
- SafeCryptoHandles.cs
- XslUrlEditor.cs
- HoistedLocals.cs
- BitmapVisualManager.cs
- InteropExecutor.cs
- LineSegment.cs
- EdmMember.cs
- DataGridViewComboBoxColumn.cs
- RadioButtonPopupAdapter.cs
- AsymmetricSecurityProtocol.cs
- TextTreeNode.cs
- DataGridViewIntLinkedList.cs
- AppDomainAttributes.cs
- HitTestWithPointDrawingContextWalker.cs
- BaseTemplateBuildProvider.cs
- KeyInfo.cs
- LassoSelectionBehavior.cs
- RelationshipFixer.cs
- XmlSerializerSection.cs
- PropertyEmitterBase.cs
- DecimalAnimation.cs
- ContentDisposition.cs
- EncodingNLS.cs
- Marshal.cs
- Int64KeyFrameCollection.cs
- DataProtection.cs
- JournalEntry.cs
- HttpHeaderCollection.cs
- CreateParams.cs
- ImageAttributes.cs
- TrackBar.cs
- CheckBox.cs
- X500Name.cs
- SecurityException.cs
- EntityModelBuildProvider.cs
- CodeBinaryOperatorExpression.cs
- DataFormats.cs
- SoapMessage.cs
- DoubleLinkList.cs
- MobileSysDescriptionAttribute.cs
- ControlPropertyNameConverter.cs
- SimpleBitVector32.cs
- templategroup.cs
- FormViewInsertEventArgs.cs
- RemoteArgument.cs
- SerializableAttribute.cs
- TextBlock.cs
- RijndaelManagedTransform.cs
- AssemblyName.cs
- CollectionViewSource.cs
- EdmItemCollection.OcAssemblyCache.cs
- MultiView.cs
- RightsManagementProvider.cs
- OdbcConnectionPoolProviderInfo.cs
- ClientUtils.cs
- MailWebEventProvider.cs
- MetadataConversionError.cs
- SvcMapFileSerializer.cs
- BindingExpressionUncommonField.cs
- BrowserTree.cs
- InputLanguageSource.cs
- Parser.cs
- CompositeControl.cs
- CodeIdentifier.cs
- SerializableTypeCodeDomSerializer.cs
- ScriptReferenceBase.cs
- QueueProcessor.cs