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
- SafeReversePInvokeHandle.cs
- SamlEvidence.cs
- XmlAnyElementAttributes.cs
- SqlErrorCollection.cs
- LogSwitch.cs
- ColumnMapTranslator.cs
- ControlSerializer.cs
- SerializationHelper.cs
- UntrustedRecipientException.cs
- EncodingTable.cs
- WebServiceClientProxyGenerator.cs
- AddressHeaderCollectionElement.cs
- FormatConvertedBitmap.cs
- SingleAnimationBase.cs
- QueryIntervalOp.cs
- ConfigurationValue.cs
- HandlerBase.cs
- DecoderExceptionFallback.cs
- PrtTicket_Public.cs
- CommandBindingCollection.cs
- SqlDataAdapter.cs
- JobPageOrder.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TransactionTable.cs
- PolicyAssertionCollection.cs
- TrackBarRenderer.cs
- UnsafeNativeMethods.cs
- XPathEmptyIterator.cs
- ClockController.cs
- ItemsControl.cs
- PackUriHelper.cs
- CodeTypeConstructor.cs
- FormatConvertedBitmap.cs
- ClientFactory.cs
- WebPartEditorOkVerb.cs
- DataObject.cs
- Axis.cs
- KnownBoxes.cs
- thaishape.cs
- TreeNodeBindingCollection.cs
- ToolStripContextMenu.cs
- FontFamilyValueSerializer.cs
- DbDataSourceEnumerator.cs
- Function.cs
- DelegatedStream.cs
- BooleanSwitch.cs
- DbTransaction.cs
- EventBuilder.cs
- XPathNodeIterator.cs
- DataAdapter.cs
- LoadedOrUnloadedOperation.cs
- Point4DValueSerializer.cs
- NativeMethods.cs
- SR.cs
- ListView.cs
- DesignConnection.cs
- SafeEventLogReadHandle.cs
- CellPartitioner.cs
- TypeDelegator.cs
- CrossSiteScriptingValidation.cs
- SettingsProviderCollection.cs
- ZipIOExtraFieldZip64Element.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- namescope.cs
- LicFileLicenseProvider.cs
- PeerNameRecordCollection.cs
- DeviceSpecificChoice.cs
- ValidatingPropertiesEventArgs.cs
- KeyEventArgs.cs
- FormViewCommandEventArgs.cs
- EdmComplexPropertyAttribute.cs
- AsynchronousChannel.cs
- HtmlSelect.cs
- OneOf.cs
- Utility.cs
- RegexGroup.cs
- Fault.cs
- Brush.cs
- ObjectComplexPropertyMapping.cs
- CodeAttributeDeclarationCollection.cs
- DocumentSchemaValidator.cs
- ObjectDataSourceMethodEventArgs.cs
- MouseActionConverter.cs
- Vars.cs
- EndPoint.cs
- XhtmlTextWriter.cs
- CharEntityEncoderFallback.cs
- XmlSchemaExporter.cs
- MsmqIntegrationReceiveParameters.cs
- DesignSurface.cs
- PersonalizablePropertyEntry.cs
- Int16.cs
- BitmapPalette.cs
- GridViewUpdateEventArgs.cs
- ObjectItemAssemblyLoader.cs
- SQLConvert.cs
- _LoggingObject.cs
- SqlBulkCopyColumnMappingCollection.cs
- OleDbException.cs
- PolyQuadraticBezierSegment.cs