C# Class Xrm.Sdk.Entity

Inheritance: INotifyPropertyChanged
显示文件 Open project: scottdurow/SparkleXrm

Public Properties

Property Type Description
EntityState EntityStates
FormattedValues string>.Dictionary
Id string
LogicalName string
RelatedEntities EntityCollection>.Dictionary

Protected Properties

Property Type Description
_metaData System.Collections.Dictionary

Public Methods

Method Description
DeSerialise ( XmlNode entityNode ) : void

Set the attribute values from SDK Webservice response on a business entity

Entity ( string entityName ) : System
GetAttributeValue ( string attributeName ) : object
GetAttributeValueEntityReference ( string attributeName ) : Xrm.Sdk.EntityReference
GetAttributeValueFloat ( string attributeName ) : float?
GetAttributeValueGuid ( string attributeName ) : Guid
GetAttributeValueInt ( string attributeName ) : int?
GetAttributeValueOptionSet ( string attributeName ) : Xrm.Sdk.OptionSetValue
GetAttributeValueString ( string attributeName ) : string
RaisePropertyChanged ( string propertyName ) : void
Serialise ( bool ommitRoot ) : string

Serialises the entity to xml to pass to the SDK webservices

SetAttributeValue ( string name, object value ) : void
SortDelegate ( string attributeName, Entity a, Entity b ) : int
ToEntityReference ( ) : Xrm.Sdk.EntityReference

Private Methods

Method Description
SetDictionaryValue ( string key, object value ) : void

Method Details

DeSerialise() public method

Set the attribute values from SDK Webservice response on a business entity
public DeSerialise ( XmlNode entityNode ) : void
entityNode System.Xml.XmlNode
return void

Entity() public method

public Entity ( string entityName ) : System
entityName string
return System

GetAttributeValue() public method

public GetAttributeValue ( string attributeName ) : object
attributeName string
return object

GetAttributeValueEntityReference() public method

public GetAttributeValueEntityReference ( string attributeName ) : Xrm.Sdk.EntityReference
attributeName string
return Xrm.Sdk.EntityReference

GetAttributeValueFloat() public method

public GetAttributeValueFloat ( string attributeName ) : float?
attributeName string
return float?

GetAttributeValueGuid() public method

public GetAttributeValueGuid ( string attributeName ) : Guid
attributeName string
return Guid

GetAttributeValueInt() public method

public GetAttributeValueInt ( string attributeName ) : int?
attributeName string
return int?

GetAttributeValueOptionSet() public method

public GetAttributeValueOptionSet ( string attributeName ) : Xrm.Sdk.OptionSetValue
attributeName string
return Xrm.Sdk.OptionSetValue

GetAttributeValueString() public method

public GetAttributeValueString ( string attributeName ) : string
attributeName string
return string

RaisePropertyChanged() public method

public RaisePropertyChanged ( string propertyName ) : void
propertyName string
return void

Serialise() public method

Serialises the entity to xml to pass to the SDK webservices
public Serialise ( bool ommitRoot ) : string
ommitRoot bool
return string

SetAttributeValue() public method

public SetAttributeValue ( string name, object value ) : void
name string
value object
return void

SortDelegate() public static method

public static SortDelegate ( string attributeName, Entity a, Entity b ) : int
attributeName string
a Entity
b Entity
return int

ToEntityReference() public method

public ToEntityReference ( ) : Xrm.Sdk.EntityReference
return Xrm.Sdk.EntityReference

Property Details

EntityState public_oe property

public EntityStates EntityState
return EntityStates

FormattedValues public_oe property

public Dictionary FormattedValues
return string>.Dictionary

Id public_oe property

public string Id
return string

LogicalName public_oe property

public string LogicalName
return string

RelatedEntities public_oe property

public Dictionary RelatedEntities
return EntityCollection>.Dictionary

_metaData protected_oe property

protected Dictionary,System.Collections _metaData
return System.Collections.Dictionary