Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncryptedKey.cs
- HtmlForm.cs
- StdValidatorsAndConverters.cs
- ChannelDispatcherCollection.cs
- WebPartActionVerb.cs
- ReversePositionQuery.cs
- OuterGlowBitmapEffect.cs
- FixUp.cs
- CodeAttributeDeclaration.cs
- Descriptor.cs
- XmlSchemaCollection.cs
- ModelUIElement3D.cs
- SimpleWorkerRequest.cs
- WmlPageAdapter.cs
- CompilerResults.cs
- SelectionProcessor.cs
- EditorAttribute.cs
- ApplicationHost.cs
- DBNull.cs
- CSharpCodeProvider.cs
- MultilineStringEditor.cs
- ImageSourceValueSerializer.cs
- PersonalizableTypeEntry.cs
- QueryStringHandler.cs
- Queue.cs
- DbXmlEnabledProviderManifest.cs
- DependencyObjectType.cs
- XmlEventCache.cs
- TypeUtil.cs
- SourceInterpreter.cs
- DrawingState.cs
- InvokeGenerator.cs
- ProxyGenerator.cs
- Operator.cs
- Expression.cs
- ByteStream.cs
- TextTreeRootTextBlock.cs
- FlowNode.cs
- SessionStateItemCollection.cs
- BamlCollectionHolder.cs
- BitmapSourceSafeMILHandle.cs
- XmlObjectSerializerReadContext.cs
- GenericAuthenticationEventArgs.cs
- CategoryAttribute.cs
- AxHost.cs
- FillErrorEventArgs.cs
- DocumentPageView.cs
- SponsorHelper.cs
- ServiceDiscoveryBehavior.cs
- ConvertTextFrag.cs
- CanExecuteRoutedEventArgs.cs
- Encoding.cs
- ValueQuery.cs
- InheritanceAttribute.cs
- UpDownBase.cs
- Region.cs
- DataKeyCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EdmFunctions.cs
- PersonalizableAttribute.cs
- LinkUtilities.cs
- Inflater.cs
- QuerySubExprEliminator.cs
- SoundPlayer.cs
- X509Chain.cs
- HyperLinkStyle.cs
- MultiAsyncResult.cs
- XmlRootAttribute.cs
- SecurityContextSecurityToken.cs
- DrawingCollection.cs
- TextParagraphCache.cs
- ConfigXmlElement.cs
- CompensatableSequenceActivity.cs
- StrokeRenderer.cs
- PathFigure.cs
- SystemResourceKey.cs
- ReliableSession.cs
- ParameterInfo.cs
- DependencyPropertyAttribute.cs
- PersonalizableTypeEntry.cs
- NamespaceCollection.cs
- LockRecursionException.cs
- UpdateException.cs
- PartialCachingControl.cs
- WebBrowserNavigatingEventHandler.cs
- EnumValAlphaComparer.cs
- NominalTypeEliminator.cs
- CustomLineCap.cs
- DataRow.cs
- TableColumn.cs
- Size.cs
- ProviderCommandInfoUtils.cs
- DBSqlParser.cs
- TemplateInstanceAttribute.cs
- TraceListeners.cs
- Publisher.cs
- ClickablePoint.cs
- QuaternionAnimationUsingKeyFrames.cs
- MasterPage.cs
- NoneExcludedImageIndexConverter.cs