Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectDataSourceSelectingEventArgs.cs
- SqlProviderUtilities.cs
- ToolStripAdornerWindowService.cs
- RightsManagementInformation.cs
- WebScriptEnablingElement.cs
- GeneralTransform.cs
- XsdBuilder.cs
- Bits.cs
- OleServicesContext.cs
- SerializationInfo.cs
- DefaultEvaluationContext.cs
- AcceleratedTokenAuthenticator.cs
- ByteStorage.cs
- RuleSetDialog.cs
- PeerCredential.cs
- SqlFunctions.cs
- _ConnectOverlappedAsyncResult.cs
- CodeDOMProvider.cs
- WebPartTransformerCollection.cs
- Object.cs
- _PooledStream.cs
- InheritanceContextHelper.cs
- ComNativeDescriptor.cs
- XmlBinaryReader.cs
- SafeLibraryHandle.cs
- RuntimeWrappedException.cs
- ChineseLunisolarCalendar.cs
- PropertyGroupDescription.cs
- ToolStripSeparatorRenderEventArgs.cs
- GradientStop.cs
- TemplateBamlTreeBuilder.cs
- StatusStrip.cs
- SubpageParaClient.cs
- SchemaImporterExtensionsSection.cs
- RectValueSerializer.cs
- HttpApplicationFactory.cs
- SubMenuStyle.cs
- CreateUserWizardAutoFormat.cs
- ExpressionBuilderContext.cs
- InertiaRotationBehavior.cs
- InteropEnvironment.cs
- CollectionBuilder.cs
- mongolianshape.cs
- NativeStructs.cs
- LineServicesRun.cs
- MouseBinding.cs
- PropertiesTab.cs
- BinaryKeyIdentifierClause.cs
- ThreadAbortException.cs
- Keyboard.cs
- ScriptManager.cs
- RegexCompilationInfo.cs
- UIPermission.cs
- OdbcError.cs
- CurrentChangingEventArgs.cs
- SqlBulkCopy.cs
- InnerItemCollectionView.cs
- PassportAuthenticationModule.cs
- IndexerNameAttribute.cs
- iisPickupDirectory.cs
- StructuredType.cs
- UIElementParagraph.cs
- ContentTypeSettingClientMessageFormatter.cs
- SchemaElement.cs
- ExpandCollapsePattern.cs
- PageCatalogPartDesigner.cs
- IndexedEnumerable.cs
- OleDbRowUpdatingEvent.cs
- TemplateInstanceAttribute.cs
- InstanceView.cs
- RowToParametersTransformer.cs
- XAMLParseException.cs
- SystemIPInterfaceStatistics.cs
- GlyphRunDrawing.cs
- ConstrainedDataObject.cs
- MatrixConverter.cs
- XmlTextAttribute.cs
- PersonalizationStateInfoCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SSmlParser.cs
- EntityDataSourceValidationException.cs
- SqlDataSourceStatusEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- PathGeometry.cs
- Util.cs
- WindowsGraphicsCacheManager.cs
- serverconfig.cs
- QilList.cs
- AssociatedControlConverter.cs
- AnnotationDocumentPaginator.cs
- IfJoinedCondition.cs
- LocationReferenceValue.cs
- PathFigureCollectionConverter.cs
- AndMessageFilterTable.cs
- ProcessModuleCollection.cs
- TemplateControl.cs
- BackStopAuthenticationModule.cs
- JumpTask.cs
- OracleDateTime.cs
- LiteralTextContainerControlBuilder.cs