Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmScalarPropertyAttribute.cs / 1305376 / EdmScalarPropertyAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Objects.DataClasses { using System; ////// Attribute for scalar properties in an IEntity. /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False, /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [AttributeUsage(AttributeTargets.Property)] public sealed class EdmScalarPropertyAttribute : EdmPropertyAttribute { // Private variables corresponding to their properties. private bool _isNullable = true; private bool _entityKeyProperty; ////// Attribute for scalar properties. /// EdmScalarPropertyAttribute(EntityKeyProperty=[true|false], IsNullable=[true|false]) /// IsNullable and EntityKeyProperty cannot both be true. /// public EdmScalarPropertyAttribute() { } ////// The property is allowed to have a value of NULL. /// public bool IsNullable { get { return _isNullable; } set { _isNullable = value;} } ////// The property is a key. /// public bool EntityKeyProperty { get { return _entityKeyProperty; } set { _entityKeyProperty = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CaseInsensitiveComparer.cs
- InstanceStoreQueryResult.cs
- RijndaelManaged.cs
- DebuggerAttributes.cs
- BlurBitmapEffect.cs
- CodePrimitiveExpression.cs
- ConfigurationLocationCollection.cs
- CharacterMetrics.cs
- PrimitiveCodeDomSerializer.cs
- IPAddressCollection.cs
- RIPEMD160Managed.cs
- IdleTimeoutMonitor.cs
- NullableConverter.cs
- SettingsProperty.cs
- BufferCache.cs
- HMACMD5.cs
- MgmtConfigurationRecord.cs
- ComponentGuaranteesAttribute.cs
- XmlObjectSerializer.cs
- EntityContainerEmitter.cs
- Attributes.cs
- Route.cs
- ControlBuilder.cs
- HtmlHead.cs
- IItemContainerGenerator.cs
- ControlBuilder.cs
- FileVersionInfo.cs
- XmlSchemaParticle.cs
- ExpressionBindingCollection.cs
- WebPartsPersonalization.cs
- DragDrop.cs
- CodeGeneratorOptions.cs
- Operator.cs
- DocumentGridPage.cs
- DataTemplateKey.cs
- CacheChildrenQuery.cs
- QilLoop.cs
- Errors.cs
- BitmapEffectInput.cs
- thaishape.cs
- HttpContextServiceHost.cs
- Vector3DIndependentAnimationStorage.cs
- SecurityResources.cs
- ValidatorCollection.cs
- SystemGatewayIPAddressInformation.cs
- CheckBoxAutomationPeer.cs
- BaseContextMenu.cs
- OdbcException.cs
- ImageButton.cs
- ObjectComplexPropertyMapping.cs
- InvariantComparer.cs
- InternalBase.cs
- InputProcessorProfiles.cs
- BitConverter.cs
- PolyQuadraticBezierSegment.cs
- SizeAnimationBase.cs
- Token.cs
- Win32Native.cs
- TableCell.cs
- MultiSelectRootGridEntry.cs
- Int16KeyFrameCollection.cs
- arabicshape.cs
- XmlParser.cs
- ValidationPropertyAttribute.cs
- SignatureDescription.cs
- ContentPlaceHolder.cs
- panel.cs
- DiscoveryClientOutputChannel.cs
- TemplateContent.cs
- FontFamilyValueSerializer.cs
- HtmlTextArea.cs
- SafeArrayTypeMismatchException.cs
- FontStyleConverter.cs
- InvalidPrinterException.cs
- MLangCodePageEncoding.cs
- TwoPhaseCommit.cs
- ManifestSignatureInformation.cs
- ColorAnimationBase.cs
- MostlySingletonList.cs
- TextRangeSerialization.cs
- PathGeometry.cs
- XmlSerializerFormatAttribute.cs
- NamespaceCollection.cs
- RegisteredScript.cs
- HitTestDrawingContextWalker.cs
- FlowThrottle.cs
- VisualBrush.cs
- BitmapEffectDrawing.cs
- EncryptedData.cs
- ClaimTypeElement.cs
- ObjectCloneHelper.cs
- SqlDataRecord.cs
- DataGridViewRowCancelEventArgs.cs
- XmlSchemaObjectTable.cs
- RotateTransform3D.cs
- webproxy.cs
- BuilderPropertyEntry.cs
- COM2ExtendedUITypeEditor.cs
- TrailingSpaceComparer.cs
- VirtualizingStackPanel.cs