C# 클래스 Xrm.Sdk.OrganizationServiceProxy

The OrganizationServiceProxy is a static class for ease of use We might need to make an instance class as well to aid sharing code between client and server
파일 보기 프로젝트 열기: scottdurow/SparkleXrm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ExecuteMessageResponseTypes Type>.Dictionary
OrganizationSettings Xrm.Sdk.OrganizationSettings
UserSettings Xrm.Sdk.UserSettings
WithCredentials bool

공개 메소드들

메소드 설명
Associate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : void

Associate one or more related entites to a target entity.

BeginAssociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities, Action callBack ) : void
BeginCreate ( Entity entity, Action callBack ) : void
BeginDelete ( string entityName, Guid id, Action callBack ) : void
BeginDisassociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities, Action callBack ) : void
BeginExecute ( OrganizationRequest request, Action callBack ) : void
BeginRetrieve ( string entityName, string entityId, string attributesList, Action callBack ) : void
BeginRetrieveMultiple ( string fetchXml, Action callBack ) : void
BeginSetState ( Guid id, string entityName, int stateCode, int statusCode, Action callBack ) : void
BeginUpdate ( Entity entity, Action callBack ) : void
Create ( Entity entity ) : Guid

Creates a new entity record using the supplied Entity object

Delete_ ( string entityName, Guid id ) : string
Disassociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : void
DoesNNAssociationExist ( Xrm.Sdk.Relationship relationship, Xrm.Sdk.EntityReference Entity1, Xrm.Sdk.EntityReference Entity2 ) : bool

Checks for an existing N:N relationship between two records by executing a fetch against the relationship association table.

EndAssociate ( object asyncState ) : void
EndCreate ( object asyncState ) : Guid
EndDelete ( object asyncState ) : void
EndDisassociate ( object asyncState ) : void
EndExecute ( object asyncState ) : OrganizationResponse
EndRetrieve ( object asyncState, Type entityType ) : Entity
EndRetrieveMultiple ( object asyncState, Type entityType ) : Xrm.Sdk.EntityCollection
EndSetState ( object asyncState ) : void
EndUpdate ( object asyncState ) : void
Execute ( OrganizationRequest request ) : OrganizationResponse
GetUserSettings ( ) : Xrm.Sdk.UserSettings
RegisterExecuteMessageResponseType ( string responseTypeName, Type organizationResponseType ) : void
Retrieve ( string entityName, string entityId, string attributesList ) : Entity
RetrieveMultiple ( string fetchXml ) : Xrm.Sdk.EntityCollection
SetState ( Guid id, string entityName, int stateCode, int statusCode ) : void
Update ( Entity entity ) : void

비공개 메소드들

메소드 설명
GetAssociateRequest ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : string
GetCreateRequest ( Entity entity ) : string
GetDeleteRequest ( string entityName, Guid id ) : string
GetDisassociateRequest ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : string
GetEntityCollectionResults ( XmlDocument resultXml, Type entityType ) : Xrm.Sdk.EntityCollection
GetExecuteRequest ( OrganizationRequest request ) : string
GetResponse ( string soapXmlPacket, string action, Action asyncCallback ) : XmlDocument
GetRetrieveMultipleRequest ( string fetchXml ) : string
GetRetrieveRequest ( string entityName, string entityId, string attributesList ) : string
GetServerUrl ( ) : string
GetSetStateRequest ( Guid id, string entityName, int stateCode, int statusCode ) : string
GetSoapFault ( XmlDocument response ) : Exception
getSoapEnvelope ( string payLoadXml ) : string

Gets the SOAP Xml to send to the server

메소드 상세

Associate() 공개 정적인 메소드

Associate one or more related entites to a target entity.
public static Associate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : void
entityName string The Logical Name of the target entity.
entityId Guid The GUID that uniquely defines the target entity.
relationship Xrm.Sdk.Relationship The Relationship to use for the association.
relatedEntities List A list of related EntityReference records to associate to the target.
리턴 void

BeginAssociate() 공개 정적인 메소드

public static BeginAssociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities, Action callBack ) : void
entityName string
entityId Guid
relationship Xrm.Sdk.Relationship
relatedEntities List
callBack Action
리턴 void

BeginCreate() 공개 정적인 메소드

public static BeginCreate ( Entity entity, Action callBack ) : void
entity Entity
callBack Action
리턴 void

BeginDelete() 공개 정적인 메소드

public static BeginDelete ( string entityName, Guid id, Action callBack ) : void
entityName string
id Guid
callBack Action
리턴 void

BeginDisassociate() 공개 정적인 메소드

public static BeginDisassociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities, Action callBack ) : void
entityName string
entityId Guid
relationship Xrm.Sdk.Relationship
relatedEntities List
callBack Action
리턴 void

BeginExecute() 공개 정적인 메소드

public static BeginExecute ( OrganizationRequest request, Action callBack ) : void
request OrganizationRequest
callBack Action
리턴 void

BeginRetrieve() 공개 정적인 메소드

public static BeginRetrieve ( string entityName, string entityId, string attributesList, Action callBack ) : void
entityName string
entityId string
attributesList string
callBack Action
리턴 void

BeginRetrieveMultiple() 공개 정적인 메소드

public static BeginRetrieveMultiple ( string fetchXml, Action callBack ) : void
fetchXml string
callBack Action
리턴 void

BeginSetState() 공개 정적인 메소드

public static BeginSetState ( Guid id, string entityName, int stateCode, int statusCode, Action callBack ) : void
id Guid
entityName string
stateCode int
statusCode int
callBack Action
리턴 void

BeginUpdate() 공개 정적인 메소드

public static BeginUpdate ( Entity entity, Action callBack ) : void
entity Entity
callBack Action
리턴 void

Create() 공개 정적인 메소드

Creates a new entity record using the supplied Entity object
public static Create ( Entity entity ) : Guid
entity Entity
리턴 Guid

Delete_() 공개 정적인 메소드

public static Delete_ ( string entityName, Guid id ) : string
entityName string
id Guid
리턴 string

Disassociate() 공개 정적인 메소드

public static Disassociate ( string entityName, Guid entityId, Xrm.Sdk.Relationship relationship, List relatedEntities ) : void
entityName string
entityId Guid
relationship Xrm.Sdk.Relationship
relatedEntities List
리턴 void

DoesNNAssociationExist() 공개 정적인 메소드

Checks for an existing N:N relationship between two records by executing a fetch against the relationship association table.
public static DoesNNAssociationExist ( Xrm.Sdk.Relationship relationship, Xrm.Sdk.EntityReference Entity1, Xrm.Sdk.EntityReference Entity2 ) : bool
relationship Xrm.Sdk.Relationship The Relationship to evaluate.
Entity1 Xrm.Sdk.EntityReference EntityReference for the one of the entities to test.
Entity2 Xrm.Sdk.EntityReference EntityReference for the second entity to test.
리턴 bool

EndAssociate() 공개 정적인 메소드

public static EndAssociate ( object asyncState ) : void
asyncState object
리턴 void

EndCreate() 공개 정적인 메소드

public static EndCreate ( object asyncState ) : Guid
asyncState object
리턴 Guid

EndDelete() 공개 정적인 메소드

public static EndDelete ( object asyncState ) : void
asyncState object
리턴 void

EndDisassociate() 공개 정적인 메소드

public static EndDisassociate ( object asyncState ) : void
asyncState object
리턴 void

EndExecute() 공개 정적인 메소드

public static EndExecute ( object asyncState ) : OrganizationResponse
asyncState object
리턴 OrganizationResponse

EndRetrieve() 공개 정적인 메소드

public static EndRetrieve ( object asyncState, Type entityType ) : Entity
asyncState object
entityType System.Type
리턴 Entity

EndRetrieveMultiple() 공개 정적인 메소드

public static EndRetrieveMultiple ( object asyncState, Type entityType ) : Xrm.Sdk.EntityCollection
asyncState object
entityType System.Type
리턴 Xrm.Sdk.EntityCollection

EndSetState() 공개 정적인 메소드

public static EndSetState ( object asyncState ) : void
asyncState object
리턴 void

EndUpdate() 공개 정적인 메소드

public static EndUpdate ( object asyncState ) : void
asyncState object
리턴 void

Execute() 공개 정적인 메소드

public static Execute ( OrganizationRequest request ) : OrganizationResponse
request OrganizationRequest
리턴 OrganizationResponse

GetUserSettings() 공개 정적인 메소드

public static GetUserSettings ( ) : Xrm.Sdk.UserSettings
리턴 Xrm.Sdk.UserSettings

RegisterExecuteMessageResponseType() 공개 정적인 메소드

public static RegisterExecuteMessageResponseType ( string responseTypeName, Type organizationResponseType ) : void
responseTypeName string
organizationResponseType System.Type
리턴 void

Retrieve() 공개 정적인 메소드

public static Retrieve ( string entityName, string entityId, string attributesList ) : Entity
entityName string
entityId string
attributesList string
리턴 Entity

RetrieveMultiple() 공개 정적인 메소드

public static RetrieveMultiple ( string fetchXml ) : Xrm.Sdk.EntityCollection
fetchXml string
리턴 Xrm.Sdk.EntityCollection

SetState() 공개 정적인 메소드

public static SetState ( Guid id, string entityName, int stateCode, int statusCode ) : void
id Guid
entityName string
stateCode int
statusCode int
리턴 void

Update() 공개 정적인 메소드

public static Update ( Entity entity ) : void
entity Entity
리턴 void

프로퍼티 상세

ExecuteMessageResponseTypes 공개적으로 정적으로 프로퍼티

public static Dictionary ExecuteMessageResponseTypes
리턴 Type>.Dictionary

OrganizationSettings 공개적으로 정적으로 프로퍼티

public static OrganizationSettings,Xrm.Sdk OrganizationSettings
리턴 Xrm.Sdk.OrganizationSettings

UserSettings 공개적으로 정적으로 프로퍼티

public static UserSettings,Xrm.Sdk UserSettings
리턴 Xrm.Sdk.UserSettings

WithCredentials 공개적으로 정적으로 프로퍼티

public static bool WithCredentials
리턴 bool