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
- LayoutInformation.cs
- IPHostEntry.cs
- AlternateViewCollection.cs
- PrintDialog.cs
- WebCategoryAttribute.cs
- SQLUtility.cs
- EndpointConfigContainer.cs
- Int32Storage.cs
- DataGridBoundColumn.cs
- _ConnectionGroup.cs
- DataColumnPropertyDescriptor.cs
- Point.cs
- MailWriter.cs
- ValidatedControlConverter.cs
- ProfilePropertySettings.cs
- TextDecorationCollectionConverter.cs
- XmlNamespaceManager.cs
- SimpleRecyclingCache.cs
- TypeDependencyAttribute.cs
- EnumerableWrapperWeakToStrong.cs
- ReflectionHelper.cs
- Hashtable.cs
- QueueProcessor.cs
- StructuralObject.cs
- SubpageParagraph.cs
- DispatchChannelSink.cs
- XPathParser.cs
- FormView.cs
- DirectoryNotFoundException.cs
- TableLayoutColumnStyleCollection.cs
- URLMembershipCondition.cs
- DictionaryGlobals.cs
- ScaleTransform3D.cs
- _StreamFramer.cs
- TextTrailingCharacterEllipsis.cs
- DynamicResourceExtensionConverter.cs
- SpecularMaterial.cs
- DataContext.cs
- Predicate.cs
- FontTypeConverter.cs
- Operand.cs
- SystemIcmpV6Statistics.cs
- ReflectionTypeLoadException.cs
- ConfigXmlDocument.cs
- ManualWorkflowSchedulerService.cs
- XmlSerializer.cs
- NotSupportedException.cs
- RuleSettingsCollection.cs
- ButtonBaseAdapter.cs
- TransformedBitmap.cs
- ContentOperations.cs
- nulltextcontainer.cs
- RowUpdatedEventArgs.cs
- RelatedPropertyManager.cs
- StatusBar.cs
- GridToolTip.cs
- InOutArgument.cs
- NameValuePair.cs
- RegexStringValidator.cs
- SqlNode.cs
- FrameworkContentElement.cs
- DebugView.cs
- UnionCodeGroup.cs
- TypeConstant.cs
- HtmlImage.cs
- XmlSerializerFactory.cs
- BindingEntityInfo.cs
- OutputCacheSettingsSection.cs
- EdmToObjectNamespaceMap.cs
- ToolStripDropDownItem.cs
- GraphicsState.cs
- NotImplementedException.cs
- SqlStream.cs
- TableRowGroup.cs
- EntityContainerEmitter.cs
- DecimalAnimationUsingKeyFrames.cs
- PolyLineSegment.cs
- UnitControl.cs
- RectValueSerializer.cs
- ResourceDescriptionAttribute.cs
- FieldDescriptor.cs
- MsmqHostedTransportConfiguration.cs
- StatusBarItemAutomationPeer.cs
- ToolStripScrollButton.cs
- SqlInfoMessageEvent.cs
- DashStyles.cs
- SqlBuilder.cs
- ContextProperty.cs
- WebControlToolBoxItem.cs
- TemplateXamlTreeBuilder.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- odbcmetadatafactory.cs
- CqlParser.cs
- HyperLinkField.cs
- StringFormat.cs
- DeferredTextReference.cs
- XmlElementList.cs
- BindingCompleteEventArgs.cs
- ReferenceEqualityComparer.cs
- SpeechRecognizer.cs