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
- SecurityTokenAuthenticator.cs
- WebUtil.cs
- WmiInstallComponent.cs
- SamlAuthenticationStatement.cs
- ImageField.cs
- OptimisticConcurrencyException.cs
- CapabilitiesRule.cs
- Operator.cs
- BufferedGraphics.cs
- Vector3DAnimation.cs
- StringArrayConverter.cs
- RegionData.cs
- SqlBuilder.cs
- EnvelopedSignatureTransform.cs
- Matrix3DValueSerializer.cs
- DataGridViewControlCollection.cs
- TextSelectionHelper.cs
- List.cs
- EncodingInfo.cs
- CmsUtils.cs
- NetPipeSectionData.cs
- StorageMappingFragment.cs
- CheckBoxBaseAdapter.cs
- OverflowException.cs
- WebColorConverter.cs
- BooleanToVisibilityConverter.cs
- SqlMethods.cs
- SmiGettersStream.cs
- ProcessingInstructionAction.cs
- PipeSecurity.cs
- _DisconnectOverlappedAsyncResult.cs
- MultiViewDesigner.cs
- Type.cs
- BinaryObjectInfo.cs
- FormattedTextSymbols.cs
- SmtpMail.cs
- ConversionValidationRule.cs
- FontFamilyIdentifier.cs
- CalendarTable.cs
- ChangeNode.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- PolyBezierSegment.cs
- ContextProperty.cs
- CellIdBoolean.cs
- FormatStringEditor.cs
- BindingList.cs
- ThemeableAttribute.cs
- PageWrapper.cs
- EntityDataSourceWizardForm.cs
- FormatException.cs
- SoapSchemaExporter.cs
- BitmapPalettes.cs
- ToolStripMenuItemDesigner.cs
- ScriptModule.cs
- ExpandCollapsePatternIdentifiers.cs
- ToolStripScrollButton.cs
- XPathNavigatorReader.cs
- ToolbarAUtomationPeer.cs
- SafeThemeHandle.cs
- AnimationException.cs
- PageTheme.cs
- _StreamFramer.cs
- TypedDataSourceCodeGenerator.cs
- CompilerScopeManager.cs
- RSAPKCS1SignatureFormatter.cs
- _BasicClient.cs
- SynthesizerStateChangedEventArgs.cs
- ApplicationContext.cs
- Byte.cs
- MessageHeaderDescription.cs
- ConnectionStringsExpressionEditor.cs
- ChooseAction.cs
- InstanceData.cs
- RsaSecurityTokenAuthenticator.cs
- SqlInternalConnection.cs
- SetStoryboardSpeedRatio.cs
- SwitchDesigner.xaml.cs
- Inflater.cs
- _SpnDictionary.cs
- SizeFConverter.cs
- GetPageNumberCompletedEventArgs.cs
- NativeBuffer.cs
- SectionVisual.cs
- SafeCoTaskMem.cs
- GeometryCollection.cs
- XmlEncoding.cs
- InkCanvasSelectionAdorner.cs
- ApplicationSettingsBase.cs
- __TransparentProxy.cs
- FrameworkContentElement.cs
- BitmapMetadataBlob.cs
- InternalEnumValidator.cs
- CapabilitiesRule.cs
- XmlWriterSettings.cs
- BatchServiceHost.cs
- DocumentSchemaValidator.cs
- DataGridViewBand.cs
- HttpModuleCollection.cs
- NamespaceCollection.cs
- PersonalizationEntry.cs