Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / Binding / EntityChangedParams.cs / 1305376 / EntityChangedParams.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// EntityChangedParams class
//
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
/// Encapsulates the arguments of EntityChanged delegate
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704", Justification = "Name gets too long with Parameters")]
public sealed class EntityChangedParams
{
#region Fields
/// Context associated with the BindingObserver.
private readonly DataServiceContext context;
/// The entity object that has changed.
private readonly object entity;
/// The property of the entity that has changed.
private readonly string propertyName;
/// The current value of the target property.
private readonly object propertyValue;
/// Entity set to which the entity object belongs
private readonly string sourceEntitySet;
/// Entity set to which the target propertyValue entity belongs
private readonly string targetEntitySet;
#endregion
#region Constructor
///
/// Construct an EntityChangedParams object.
///
/// Context to which the entity and propertyValue belong.
/// The entity object that has changed.
/// The property of the target entity object that has changed.
/// The current value of the entity property.
/// Entity set to which the entity object belongs
/// Entity set to which the target propertyValue entity belongs
internal EntityChangedParams(
DataServiceContext context,
object entity,
string propertyName,
object propertyValue,
string sourceEntitySet,
string targetEntitySet)
{
this.context = context;
this.entity = entity;
this.propertyName = propertyName;
this.propertyValue = propertyValue;
this.sourceEntitySet = sourceEntitySet;
this.targetEntitySet = targetEntitySet;
}
#endregion
#region Properties
/// Context associated with the BindingObserver.
public DataServiceContext Context
{
get { return this.context; }
}
/// The entity object that has changed.
public object Entity
{
get { return this.entity; }
}
/// The property of the target entity object that has changed.
public string PropertyName
{
get { return this.propertyName; }
}
/// The current value of the entity property.
public object PropertyValue
{
get { return this.propertyValue; }
}
/// Entity set to which the entity object belongs
public string SourceEntitySet
{
get { return this.sourceEntitySet; }
}
/// Entity set to which the target propertyValue entity belongs
public string TargetEntitySet
{
get { return this.targetEntitySet; }
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// EntityChangedParams class
//
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
/// Encapsulates the arguments of EntityChanged delegate
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704", Justification = "Name gets too long with Parameters")]
public sealed class EntityChangedParams
{
#region Fields
/// Context associated with the BindingObserver.
private readonly DataServiceContext context;
/// The entity object that has changed.
private readonly object entity;
/// The property of the entity that has changed.
private readonly string propertyName;
/// The current value of the target property.
private readonly object propertyValue;
/// Entity set to which the entity object belongs
private readonly string sourceEntitySet;
/// Entity set to which the target propertyValue entity belongs
private readonly string targetEntitySet;
#endregion
#region Constructor
///
/// Construct an EntityChangedParams object.
///
/// Context to which the entity and propertyValue belong.
/// The entity object that has changed.
/// The property of the target entity object that has changed.
/// The current value of the entity property.
/// Entity set to which the entity object belongs
/// Entity set to which the target propertyValue entity belongs
internal EntityChangedParams(
DataServiceContext context,
object entity,
string propertyName,
object propertyValue,
string sourceEntitySet,
string targetEntitySet)
{
this.context = context;
this.entity = entity;
this.propertyName = propertyName;
this.propertyValue = propertyValue;
this.sourceEntitySet = sourceEntitySet;
this.targetEntitySet = targetEntitySet;
}
#endregion
#region Properties
/// Context associated with the BindingObserver.
public DataServiceContext Context
{
get { return this.context; }
}
/// The entity object that has changed.
public object Entity
{
get { return this.entity; }
}
/// The property of the target entity object that has changed.
public string PropertyName
{
get { return this.propertyName; }
}
/// The current value of the entity property.
public object PropertyValue
{
get { return this.propertyValue; }
}
/// Entity set to which the entity object belongs
public string SourceEntitySet
{
get { return this.sourceEntitySet; }
}
/// Entity set to which the target propertyValue entity belongs
public string TargetEntitySet
{
get { return this.targetEntitySet; }
}
#endregion
}
}
// 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
- CryptoStream.cs
- ObjectIDGenerator.cs
- TimeIntervalCollection.cs
- SettingsPropertyCollection.cs
- CompatibleComparer.cs
- StorageEntityTypeMapping.cs
- ComContractElement.cs
- TagPrefixInfo.cs
- OperandQuery.cs
- UseManagedPresentationBindingElement.cs
- VectorCollectionValueSerializer.cs
- TraceListeners.cs
- DataGridViewCellFormattingEventArgs.cs
- Material.cs
- RtfToXamlReader.cs
- MsdtcWrapper.cs
- RouteParser.cs
- PrimitiveType.cs
- TableAutomationPeer.cs
- NamespaceInfo.cs
- Psha1DerivedKeyGeneratorHelper.cs
- ElementsClipboardData.cs
- HotCommands.cs
- SHA384Managed.cs
- ManualResetEvent.cs
- Stroke2.cs
- DataGridViewImageColumn.cs
- CellIdBoolean.cs
- ItemCollection.cs
- TreeNode.cs
- DocumentEventArgs.cs
- TraceProvider.cs
- PageWrapper.cs
- MatrixTransform3D.cs
- Byte.cs
- WebDisplayNameAttribute.cs
- recordstate.cs
- ControllableStoryboardAction.cs
- UnmanagedMarshal.cs
- dbdatarecord.cs
- NameScopePropertyAttribute.cs
- SafeCryptoHandles.cs
- BaseCodeDomTreeGenerator.cs
- SettingsSavedEventArgs.cs
- RepeatButtonAutomationPeer.cs
- MenuItem.cs
- CompileLiteralTextParser.cs
- DefaultAsyncDataDispatcher.cs
- Storyboard.cs
- DataGridTextBox.cs
- ReachUIElementCollectionSerializer.cs
- ProfileService.cs
- filewebresponse.cs
- RichTextBoxConstants.cs
- XmlLanguageConverter.cs
- ThreadInterruptedException.cs
- TextElement.cs
- DbTypeMap.cs
- Mappings.cs
- SchemaNotation.cs
- xamlnodes.cs
- EventSetter.cs
- ScrollPatternIdentifiers.cs
- SizeLimitedCache.cs
- Models.cs
- BufferBuilder.cs
- CmsInterop.cs
- Keywords.cs
- AnchoredBlock.cs
- ToolStripControlHost.cs
- RegistrationServices.cs
- PasswordPropertyTextAttribute.cs
- Win32Interop.cs
- DBSqlParser.cs
- Clause.cs
- CalendarDesigner.cs
- SamlDelegatingWriter.cs
- DrawingAttributes.cs
- CompilationUnit.cs
- Parsers.cs
- _AuthenticationState.cs
- unsafenativemethodstextservices.cs
- ListItemConverter.cs
- CoreChannel.cs
- HelpProvider.cs
- EventProviderWriter.cs
- ObjectDisposedException.cs
- ComponentCache.cs
- DesignerAttribute.cs
- DesignerValidatorAdapter.cs
- RemotingSurrogateSelector.cs
- TreeNodeSelectionProcessor.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Converter.cs
- MetadataPropertyAttribute.cs
- InvalidateEvent.cs
- HyperLinkDataBindingHandler.cs
- HintTextConverter.cs
- CodeObject.cs
- OwnerDrawPropertyBag.cs