Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- UpdatePanelTriggerCollection.cs
- KeysConverter.cs
- DBCSCodePageEncoding.cs
- CachedPathData.cs
- OutputWindow.cs
- ListSourceHelper.cs
- StructuredCompositeActivityDesigner.cs
- EventWaitHandleSecurity.cs
- BitmapCacheBrush.cs
- WebRequestModuleElementCollection.cs
- TrustSection.cs
- KeyValuePair.cs
- OperatingSystem.cs
- DbSource.cs
- PersonalizationStateInfoCollection.cs
- DynamicValidatorEventArgs.cs
- DmlSqlGenerator.cs
- AssemblyHash.cs
- CodeAttributeArgumentCollection.cs
- ObjectDataSourceView.cs
- ExpressionTable.cs
- CompModHelpers.cs
- ContentFileHelper.cs
- DataGridViewIntLinkedList.cs
- StateMachineTimers.cs
- RegexParser.cs
- CollaborationHelperFunctions.cs
- VisemeEventArgs.cs
- CriticalExceptions.cs
- ValidationHelper.cs
- dataSvcMapFileLoader.cs
- AbsoluteQuery.cs
- ResourceDisplayNameAttribute.cs
- ConnectionsZone.cs
- GeometryHitTestParameters.cs
- CodeConditionStatement.cs
- PolyQuadraticBezierSegment.cs
- ActivityXamlServices.cs
- HttpCacheParams.cs
- DesignerActionUIStateChangeEventArgs.cs
- GenericTypeParameterBuilder.cs
- Graph.cs
- DesignTimeParseData.cs
- TableItemProviderWrapper.cs
- ProcessRequestArgs.cs
- MobileContainerDesigner.cs
- SHA384.cs
- UIElement.cs
- AllMembershipCondition.cs
- MatrixKeyFrameCollection.cs
- WinInet.cs
- QueryCacheKey.cs
- ByteStream.cs
- TextRangeSerialization.cs
- AttachedAnnotation.cs
- SupportsEventValidationAttribute.cs
- IncrementalReadDecoders.cs
- VirtualDirectoryMapping.cs
- oledbmetadatacollectionnames.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CacheHelper.cs
- ObjectDataProvider.cs
- MenuItemStyleCollection.cs
- HostAdapter.cs
- BitmapEffectInput.cs
- Span.cs
- LineServices.cs
- DeferredSelectedIndexReference.cs
- Models.cs
- TextParentUndoUnit.cs
- UnionExpr.cs
- Deflater.cs
- ActivityDesignerAccessibleObject.cs
- SessionViewState.cs
- ComponentEditorPage.cs
- ExtenderProviderService.cs
- EventLogEntry.cs
- DataGridLinkButton.cs
- OptimalTextSource.cs
- XamlReader.cs
- XmlUtil.cs
- OdbcHandle.cs
- CapabilitiesPattern.cs
- DrawingBrush.cs
- ImageMap.cs
- DataGridViewDataErrorEventArgs.cs
- HttpWriter.cs
- GeometryModel3D.cs
- TiffBitmapDecoder.cs
- SafeRegistryHandle.cs
- PointValueSerializer.cs
- EntityCommandDefinition.cs
- OpacityConverter.cs
- BooleanAnimationUsingKeyFrames.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SafePEFileHandle.cs
- UniqueIdentifierService.cs
- DbParameterCollection.cs
- ProcessHostConfigUtils.cs
- InvalidOperationException.cs