Table of Contents

Class Entity

Namespace
Sage.CRM.Data
Assembly
SageCRMNet.dll

A more intelligent version of the Record class, this is used to update CRM Entities. FindEntity(string, string, string) CreateEntity(string)

public class Entity : Record, IDisposable
Inheritance
Entity
Implements
Derived
Inherited Members

Constructors

Entity(string)

Initializes a new instance of Entity.

public Entity(string entityName)

Parameters

entityName string

Entity Name.

Methods

~Entity()

Destructor - releases the references to Entity COM objects.

protected ~Entity()

GetSubCollection(string)

Returns an EntityCollection object that is a list of the related records for this entity. E.g. a Company entity will have a sub collection of Email records.

[Obsolete("Deprecate. It will be improved in later version.")]
public EntityCollection GetSubCollection(string EntityName)

Parameters

EntityName string

Name of the sub entity.

Returns

EntityCollection

EntityCollection.

SaveChanges()

Saves changes to the record specified in the entity and all it's collections. If the object is new then a new record will be inserted.

public void SaveChanges()