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
- Transform.cs
- StateValidator.cs
- SwitchLevelAttribute.cs
- Crc32Helper.cs
- ListViewGroupCollectionEditor.cs
- PropertyConverter.cs
- TrustSection.cs
- UserControlCodeDomTreeGenerator.cs
- CompilerTypeWithParams.cs
- DbConvert.cs
- SystemGatewayIPAddressInformation.cs
- WebCategoryAttribute.cs
- DataGridViewUtilities.cs
- XmlMemberMapping.cs
- Int64Storage.cs
- CodeGroup.cs
- DetailsViewRowCollection.cs
- XmlIncludeAttribute.cs
- Pair.cs
- RotateTransform.cs
- FreezableDefaultValueFactory.cs
- RefreshEventArgs.cs
- GridViewSortEventArgs.cs
- ObjRef.cs
- SequentialActivityDesigner.cs
- PathData.cs
- Encoder.cs
- EventDescriptor.cs
- SoapObjectInfo.cs
- FtpWebResponse.cs
- PointHitTestParameters.cs
- InternalReceiveMessage.cs
- Ipv6Element.cs
- IconBitmapDecoder.cs
- ButtonColumn.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LicenseProviderAttribute.cs
- BamlRecordReader.cs
- AppDomainInfo.cs
- ProtocolsConfigurationEntry.cs
- DataGrid.cs
- RegexRunner.cs
- OletxCommittableTransaction.cs
- VirtualDirectoryMappingCollection.cs
- EventDriven.cs
- XmlDataSource.cs
- NativeMethods.cs
- ValidateNames.cs
- TdsParserHelperClasses.cs
- BypassElementCollection.cs
- ButtonBase.cs
- DynamicResourceExtensionConverter.cs
- HtmlImage.cs
- _LocalDataStoreMgr.cs
- EntityDataSourceMemberPath.cs
- TypeListConverter.cs
- AggregateException.cs
- QilCloneVisitor.cs
- FacetChecker.cs
- ServiceMetadataExtension.cs
- ByteStack.cs
- RowParagraph.cs
- SamlAuthorityBinding.cs
- DbExpressionRules.cs
- CfgArc.cs
- ComAwareEventInfo.cs
- DependencyPropertyKind.cs
- CodeObject.cs
- Types.cs
- UnsafeNativeMethods.cs
- Vector3DAnimationBase.cs
- DropDownButton.cs
- COM2ColorConverter.cs
- ObfuscationAttribute.cs
- CombinedGeometry.cs
- InteropAutomationProvider.cs
- ReferenceConverter.cs
- TextSelectionProcessor.cs
- HexParser.cs
- SettingsPropertyValue.cs
- SqlAliaser.cs
- HtmlButton.cs
- GZipDecoder.cs
- metadatamappinghashervisitor.cs
- ShapingEngine.cs
- DataServiceProcessingPipelineEventArgs.cs
- InputQueue.cs
- GeneralTransform2DTo3DTo2D.cs
- ChineseLunisolarCalendar.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- ObjectViewEntityCollectionData.cs
- MimeTypePropertyAttribute.cs
- ModulesEntry.cs
- GradientStop.cs
- Environment.cs
- SettingsBindableAttribute.cs
- WasAdminWrapper.cs
- ComponentSerializationService.cs
- _NetRes.cs