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
- DataGridCell.cs
- NaturalLanguageHyphenator.cs
- IndentedTextWriter.cs
- FontInfo.cs
- FixedDocumentSequencePaginator.cs
- ComboBox.cs
- PingOptions.cs
- SettingsProviderCollection.cs
- HttpProfileBase.cs
- CancellationHandler.cs
- __Filters.cs
- SQLInt16.cs
- ModulesEntry.cs
- URIFormatException.cs
- ObjectDataSourceStatusEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- ApplicationInfo.cs
- CqlParserHelpers.cs
- ThaiBuddhistCalendar.cs
- SQLInt32Storage.cs
- CompilationRelaxations.cs
- AutoResetEvent.cs
- WebServiceErrorEvent.cs
- HtmlWindow.cs
- Transform.cs
- OracleParameter.cs
- InputScope.cs
- SspiSafeHandles.cs
- PrintDialog.cs
- Emitter.cs
- FaultPropagationRecord.cs
- DrawingAttributesDefaultValueFactory.cs
- FileSystemInfo.cs
- documentsequencetextcontainer.cs
- ContentIterators.cs
- ButtonChrome.cs
- DataGridViewComboBoxCell.cs
- ResourceProperty.cs
- DSACryptoServiceProvider.cs
- LinqDataSourceDisposeEventArgs.cs
- DiscoveryDocument.cs
- NetStream.cs
- UnicodeEncoding.cs
- PerformanceCounterLib.cs
- XmlSchemaParticle.cs
- IdentitySection.cs
- WebException.cs
- HintTextConverter.cs
- ConfigurationException.cs
- ParserStreamGeometryContext.cs
- TimelineGroup.cs
- FontFamilyValueSerializer.cs
- odbcmetadatacolumnnames.cs
- DataTemplateSelector.cs
- CompilationRelaxations.cs
- StrongNameKeyPair.cs
- DefaultTextStore.cs
- HijriCalendar.cs
- IISUnsafeMethods.cs
- XmlnsCompatibleWithAttribute.cs
- BaseAddressElementCollection.cs
- BindableAttribute.cs
- BevelBitmapEffect.cs
- MissingFieldException.cs
- X509InitiatorCertificateClientElement.cs
- ImageSource.cs
- DBCommand.cs
- PropertyDescriptor.cs
- DataAdapter.cs
- DrawingServices.cs
- RtfToXamlLexer.cs
- Drawing.cs
- OperationFormatStyle.cs
- EdmMember.cs
- Socket.cs
- PropertyPushdownHelper.cs
- FixedDocumentPaginator.cs
- Fonts.cs
- SQLInt16.cs
- AppAction.cs
- ExceptionWrapper.cs
- SchemaEntity.cs
- ColumnProvider.cs
- SqlUtil.cs
- TableStyle.cs
- BufferBuilder.cs
- SQLMembershipProvider.cs
- SecurityException.cs
- GrammarBuilder.cs
- AssemblyGen.cs
- HandleExceptionArgs.cs
- InvokeCompletedEventArgs.cs
- WebPartMenuStyle.cs
- XmlUtil.cs
- ImageList.cs
- AnonymousIdentificationModule.cs
- XmlSchemaObject.cs
- CompressStream.cs
- KnownColorTable.cs
- BrushMappingModeValidation.cs