Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmScalarPropertyAttribute.cs / 1 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeDependencyAttribute.cs
- ListBox.cs
- sortedlist.cs
- _BaseOverlappedAsyncResult.cs
- ExtendedPropertyInfo.cs
- StickyNoteAnnotations.cs
- MenuItemStyleCollection.cs
- SendReply.cs
- Point.cs
- WebConfigurationHostFileChange.cs
- UIElementAutomationPeer.cs
- SoapExtensionReflector.cs
- NgenServicingAttributes.cs
- Baml2006ReaderFrame.cs
- HttpCookiesSection.cs
- SessionStateContainer.cs
- PolicyException.cs
- InternalConfigSettingsFactory.cs
- FontInfo.cs
- ObjectStateEntry.cs
- InvalidPropValue.cs
- DeclaredTypeValidatorAttribute.cs
- OrCondition.cs
- StackSpiller.Generated.cs
- RegexCompiler.cs
- CompModSwitches.cs
- SqlNotificationEventArgs.cs
- ResumeStoryboard.cs
- InvokeCompletedEventArgs.cs
- PermissionRequestEvidence.cs
- CanonicalFontFamilyReference.cs
- CorrelationTokenInvalidatedHandler.cs
- AsyncOperation.cs
- MailWriter.cs
- TreeViewImageIndexConverter.cs
- FontInfo.cs
- TextDecorationLocationValidation.cs
- TogglePatternIdentifiers.cs
- XmlElementList.cs
- ValueUnavailableException.cs
- SEHException.cs
- ECDiffieHellmanCngPublicKey.cs
- ObjectHandle.cs
- ProgressChangedEventArgs.cs
- EncryptedXml.cs
- RectangleF.cs
- GraphicsContext.cs
- IOException.cs
- ObjectStorage.cs
- ObjectViewQueryResultData.cs
- PageAdapter.cs
- HtmlTable.cs
- DynamicFilter.cs
- SecurityAccessDeniedException.cs
- CompilationSection.cs
- GlyphingCache.cs
- SystemIPv4InterfaceProperties.cs
- GridViewRowEventArgs.cs
- DesignerTransaction.cs
- ImmutablePropertyDescriptorGridEntry.cs
- DataGridViewTopRowAccessibleObject.cs
- DBDataPermissionAttribute.cs
- InfoCardArgumentException.cs
- Int32Rect.cs
- PlaceHolder.cs
- UnsafeCollabNativeMethods.cs
- SelectionProviderWrapper.cs
- HtmlEmptyTagControlBuilder.cs
- ICspAsymmetricAlgorithm.cs
- HtmlInputFile.cs
- StatusStrip.cs
- ObjectListSelectEventArgs.cs
- DataBoundControlHelper.cs
- exports.cs
- FontCollection.cs
- Assembly.cs
- ColorConverter.cs
- TextEvent.cs
- ChannelManagerBase.cs
- TransactionProtocolConverter.cs
- Drawing.cs
- XamlInt32CollectionSerializer.cs
- ColumnMapTranslator.cs
- MailSettingsSection.cs
- SeekableReadStream.cs
- Enlistment.cs
- BitmapEncoder.cs
- Speller.cs
- IgnoreFlushAndCloseStream.cs
- DataGridViewButtonCell.cs
- SourceSwitch.cs
- DictionaryEntry.cs
- SqlProviderServices.cs
- VisualStyleRenderer.cs
- ConfigurationPropertyCollection.cs
- InstanceCreationEditor.cs
- NewExpression.cs
- IgnoreDataMemberAttribute.cs
- Screen.cs
- SessionEndingEventArgs.cs