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
- EntityTypeEmitter.cs
- EdmProviderManifest.cs
- HandleScope.cs
- ReliableRequestSessionChannel.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OleDbConnectionInternal.cs
- BrowserDefinitionCollection.cs
- InternalMappingException.cs
- HttpVersion.cs
- SqlReferenceCollection.cs
- RepeaterItemCollection.cs
- FixedHyperLink.cs
- ProtocolsSection.cs
- CodeNamespaceImport.cs
- AutoResetEvent.cs
- DataObject.cs
- ServiceDescriptionImporter.cs
- TokenizerHelper.cs
- ManagementBaseObject.cs
- DataGridViewButtonCell.cs
- BindingContext.cs
- TargetFrameworkAttribute.cs
- StatusBarAutomationPeer.cs
- RoleManagerModule.cs
- SemaphoreFullException.cs
- HuffModule.cs
- COM2PropertyDescriptor.cs
- GeneralTransform3DTo2D.cs
- DesignerActionTextItem.cs
- StoreItemCollection.cs
- QuaternionRotation3D.cs
- MinMaxParagraphWidth.cs
- ContextMenuAutomationPeer.cs
- AllMembershipCondition.cs
- FixUpCollection.cs
- HelpEvent.cs
- Parameter.cs
- SimpleHandlerFactory.cs
- entitydatasourceentitysetnameconverter.cs
- AutoScrollExpandMessageFilter.cs
- EventlogProvider.cs
- XmlLanguage.cs
- AppSettings.cs
- XPathDocumentBuilder.cs
- FlowSwitchDesigner.xaml.cs
- TokenBasedSetEnumerator.cs
- SafeUserTokenHandle.cs
- EnumValAlphaComparer.cs
- InputLangChangeEvent.cs
- MenuEventArgs.cs
- QfeChecker.cs
- ToolTip.cs
- WorkItem.cs
- InputMethod.cs
- OracleTransaction.cs
- DetailsViewDeletedEventArgs.cs
- BitmapFrame.cs
- BamlBinaryWriter.cs
- DirectoryRootQuery.cs
- CodeValidator.cs
- ResourcesBuildProvider.cs
- BasicCellRelation.cs
- JoinGraph.cs
- ObjectPersistData.cs
- QilInvokeLateBound.cs
- Compiler.cs
- NumericUpDownAcceleration.cs
- AdvancedBindingEditor.cs
- RuntimeUtils.cs
- DataGridViewTextBoxColumn.cs
- DesignerOptionService.cs
- UIServiceHelper.cs
- ObjectItemAttributeAssemblyLoader.cs
- MemoryMappedFile.cs
- CacheAxisQuery.cs
- DecoderFallback.cs
- SerialErrors.cs
- FontFamily.cs
- ControlBuilderAttribute.cs
- MessageQueueTransaction.cs
- ConfigurationValues.cs
- ArrayWithOffset.cs
- SqlPersonalizationProvider.cs
- DataFieldCollectionEditor.cs
- SequentialActivityDesigner.cs
- PenThread.cs
- BamlLocalizabilityResolver.cs
- StrokeIntersection.cs
- Models.cs
- ProcessHost.cs
- Certificate.cs
- MarkupExtensionParser.cs
- WindowsGraphicsCacheManager.cs
- DocumentCollection.cs
- OperationAbortedException.cs
- GradientStop.cs
- HtmlShim.cs
- WithStatement.cs
- DetailsViewUpdatedEventArgs.cs
- EditorBrowsableAttribute.cs