Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Schema.cs
- GenerateTemporaryTargetAssembly.cs
- PrintDialog.cs
- ListViewItemEventArgs.cs
- HwndHost.cs
- InstancePersistenceCommandException.cs
- NodeFunctions.cs
- ResizeGrip.cs
- ServiceHttpModule.cs
- UserControlParser.cs
- DesignTimeVisibleAttribute.cs
- PageCatalogPart.cs
- StorageModelBuildProvider.cs
- MessageQueueKey.cs
- CapacityStreamGeometryContext.cs
- ComponentConverter.cs
- HttpValueCollection.cs
- MouseActionValueSerializer.cs
- CodeGeneratorAttribute.cs
- DirectoryRedirect.cs
- BaseDataBoundControl.cs
- Vector3DAnimationBase.cs
- Int32.cs
- Table.cs
- XmlWriter.cs
- CompileXomlTask.cs
- FixedFindEngine.cs
- MenuAutomationPeer.cs
- TreeViewHitTestInfo.cs
- HttpModuleCollection.cs
- Size.cs
- WebBaseEventKeyComparer.cs
- BufferedReadStream.cs
- RawStylusInputCustomDataList.cs
- _NestedMultipleAsyncResult.cs
- SerializationObjectManager.cs
- ConfigurationProperty.cs
- MouseGestureConverter.cs
- ExtensibleClassFactory.cs
- XmlTextReader.cs
- NativeWindow.cs
- RuntimeArgumentHandle.cs
- DockingAttribute.cs
- M3DUtil.cs
- XmlSchemaExternal.cs
- PanningMessageFilter.cs
- Column.cs
- ListSortDescriptionCollection.cs
- CompositeCollectionView.cs
- OleDbParameter.cs
- DataSourceListEditor.cs
- IWorkflowDebuggerService.cs
- StringUtil.cs
- EdmTypeAttribute.cs
- System.Data_BID.cs
- UIElementAutomationPeer.cs
- TableFieldsEditor.cs
- EventLogPropertySelector.cs
- QueryContinueDragEventArgs.cs
- StringUtil.cs
- PerformanceCounterCategory.cs
- RankException.cs
- Brush.cs
- MergeLocalizationDirectives.cs
- EdmItemCollection.cs
- FixedSOMTableRow.cs
- SqlConnectionHelper.cs
- NumericExpr.cs
- KeyNotFoundException.cs
- ProxyFragment.cs
- ColumnResizeUndoUnit.cs
- NumericUpDownAcceleration.cs
- DetailsViewCommandEventArgs.cs
- BooleanConverter.cs
- CounterCreationDataConverter.cs
- CellCreator.cs
- ListViewGroup.cs
- UInt32Storage.cs
- XmlSerializerObjectSerializer.cs
- TableRow.cs
- COM2ComponentEditor.cs
- WebBrowserEvent.cs
- CompilerErrorCollection.cs
- SwitchElementsCollection.cs
- XmlName.cs
- KeyFrames.cs
- ValidatorCompatibilityHelper.cs
- PageHandlerFactory.cs
- DataPagerField.cs
- UnsafePeerToPeerMethods.cs
- XmlAnyAttributeAttribute.cs
- SetIterators.cs
- SimpleWorkerRequest.cs
- MulticastDelegate.cs
- CapabilitiesUse.cs
- CommandValueSerializer.cs
- MessageQueueCriteria.cs
- CodeTypeDelegate.cs
- CodeTypeConstructor.cs
- Rfc2898DeriveBytes.cs