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
- MimeTypeMapper.cs
- Crc32Helper.cs
- SerialErrors.cs
- SiteMapHierarchicalDataSourceView.cs
- X509SecurityToken.cs
- StrongNameUtility.cs
- OuterGlowBitmapEffect.cs
- ProfileInfo.cs
- RandomDelaySendsAsyncResult.cs
- arclist.cs
- AnnotationObservableCollection.cs
- UIElement3DAutomationPeer.cs
- ListBox.cs
- SpotLight.cs
- SplashScreenNativeMethods.cs
- CatalogPartCollection.cs
- NetworkInformationPermission.cs
- OrderedDictionary.cs
- Serializer.cs
- SqlConnectionPoolProviderInfo.cs
- NameSpaceEvent.cs
- HttpPostedFileWrapper.cs
- CdpEqualityComparer.cs
- DecoderBestFitFallback.cs
- RegexTree.cs
- WindowsTooltip.cs
- DelimitedListTraceListener.cs
- SupportingTokenProviderSpecification.cs
- PropertyValueUIItem.cs
- RelationshipConverter.cs
- ZipIOLocalFileBlock.cs
- TraceContext.cs
- MSG.cs
- FlowDocumentPaginator.cs
- MimeWriter.cs
- Site.cs
- DynamicMetaObject.cs
- BypassElementCollection.cs
- GridViewRowEventArgs.cs
- ResourceExpressionBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- MaterializeFromAtom.cs
- ObjectStateEntryDbDataRecord.cs
- InternalMappingException.cs
- DataServiceQueryOfT.cs
- DataBindingExpressionBuilder.cs
- SkewTransform.cs
- XmlSignificantWhitespace.cs
- mediaclock.cs
- DictionaryBase.cs
- HotSpotCollection.cs
- FileClassifier.cs
- smtpconnection.cs
- QilLiteral.cs
- EncoderParameter.cs
- CultureNotFoundException.cs
- WSSecureConversationFeb2005.cs
- ellipse.cs
- ProviderConnectionPoint.cs
- VectorAnimation.cs
- InternalResources.cs
- AppDomainProtocolHandler.cs
- ScriptControlManager.cs
- DbParameterHelper.cs
- ObjectContextServiceProvider.cs
- VerbConverter.cs
- TypeDescriptor.cs
- EditorAttribute.cs
- ScriptingWebServicesSectionGroup.cs
- ImageAttributes.cs
- AsynchronousChannel.cs
- CompilerWrapper.cs
- FrameworkTextComposition.cs
- DataGridColumnDropSeparator.cs
- ToolstripProfessionalRenderer.cs
- ValidationEventArgs.cs
- DynamicMethod.cs
- DataProviderNameConverter.cs
- X509Certificate2Collection.cs
- WindowsNonControl.cs
- DataGridViewTextBoxCell.cs
- SqlServer2KCompatibilityAnnotation.cs
- TextRange.cs
- PropertyInfoSet.cs
- SmtpNtlmAuthenticationModule.cs
- HierarchicalDataBoundControlAdapter.cs
- WCFBuildProvider.cs
- InkCanvasSelectionAdorner.cs
- RawMouseInputReport.cs
- GeometryConverter.cs
- XmlQueryOutput.cs
- DeriveBytes.cs
- DataFormats.cs
- FileVersionInfo.cs
- PathFigureCollection.cs
- ServiceDebugBehavior.cs
- iisPickupDirectory.cs
- XmlSchemaFacet.cs
- XmlArrayItemAttribute.cs
- StatusBarItemAutomationPeer.cs