Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmScalarPropertyAttribute.cs / 2 / 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
- MenuScrollingVisibilityConverter.cs
- Inflater.cs
- OletxResourceManager.cs
- DesignerProperties.cs
- CheckableControlBaseAdapter.cs
- _HelperAsyncResults.cs
- SoapReflectionImporter.cs
- FixedSchema.cs
- WebPartsPersonalizationAuthorization.cs
- TypeUtil.cs
- KeyboardDevice.cs
- ServerIdentity.cs
- WindowsTreeView.cs
- WpfXamlMember.cs
- mediaeventshelper.cs
- RuntimeResourceSet.cs
- BuildDependencySet.cs
- StaticFileHandler.cs
- TripleDES.cs
- PenThreadPool.cs
- Query.cs
- ConnectionPointCookie.cs
- DesignTimeSiteMapProvider.cs
- DataBoundControl.cs
- MultitargetUtil.cs
- X509PeerCertificateElement.cs
- ObjectMemberMapping.cs
- Canvas.cs
- UserControlParser.cs
- FlowDocument.cs
- Configuration.cs
- TrackingValidationObjectDictionary.cs
- MouseOverProperty.cs
- TdsRecordBufferSetter.cs
- ResourceFallbackManager.cs
- DefaultValidator.cs
- CompositeFontFamily.cs
- XmlResolver.cs
- FontDriver.cs
- TTSVoice.cs
- PathFigure.cs
- Cursor.cs
- SelectionRangeConverter.cs
- PlacementWorkspace.cs
- DocumentScope.cs
- CompilerGlobalScopeAttribute.cs
- XmlReflectionMember.cs
- CheckBoxFlatAdapter.cs
- util.cs
- IsolatedStorageFile.cs
- ConsoleKeyInfo.cs
- ProxyWebPartManager.cs
- Parser.cs
- QilPatternVisitor.cs
- TextEvent.cs
- ExpressionConverter.cs
- Operand.cs
- TextContainerChangeEventArgs.cs
- RequiredAttributeAttribute.cs
- CodeDirectiveCollection.cs
- RootBrowserWindow.cs
- ListViewGroupItemCollection.cs
- XmlDataSource.cs
- AsyncCompletedEventArgs.cs
- Crc32.cs
- ToolStripContainerDesigner.cs
- XmlNodeComparer.cs
- CalendarDay.cs
- XmlSequenceWriter.cs
- SQLDouble.cs
- ContainsRowNumberChecker.cs
- BasicHttpBindingCollectionElement.cs
- Win32.cs
- RtfFormatStack.cs
- Touch.cs
- QilGeneratorEnv.cs
- SignerInfo.cs
- FacetChecker.cs
- QilXmlWriter.cs
- CorrelationTokenInvalidatedHandler.cs
- ConfigXmlSignificantWhitespace.cs
- Quaternion.cs
- CodeExporter.cs
- HttpModulesSection.cs
- WebBrowserNavigatedEventHandler.cs
- ToolStripStatusLabel.cs
- StateMachineSubscriptionManager.cs
- PartialArray.cs
- JsonServiceDocumentSerializer.cs
- InteropBitmapSource.cs
- DataTableNewRowEvent.cs
- LoadMessageLogger.cs
- PolicyLevel.cs
- PerfCounterSection.cs
- OracleTimeSpan.cs
- Trace.cs
- HtmlShim.cs
- WindowProviderWrapper.cs
- DomNameTable.cs
- dataobject.cs