DevForce Help Reference
IIdGenerator Interface
Members 


Interface for generation of unique IDs for new IEntity objects.
Object Model
IIdGenerator InterfaceUniqueIdCollection Class
Syntax
'Declaration
 
<InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.IIdGenerator)>
Public Interface IIdGenerator 
'Usage
 
Dim instance As IIdGenerator
[InterfaceExport(ContractName="", ContractType=IdeaBlade.EntityModel.IIdGenerator)]
public interface IIdGenerator 
Remarks
The IIdGenerator interface defines methods to generate both temporary and real IDs for IEntity objects, and to map the temporary IDs to real IDs when objects are persisted to a backend data source. Temporary IDs are created via a call to EntityManager.GenerateId, and allow entities to be created and uniquely identified while the EntityManager is disconnected from a backend database. Temporary IDs are mapped to real IDs during EntityManager.SaveChanges processing.

Sample code in both VB.NET and C# showing an implementation for numeric ID values is provided with the DevForce installation.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IIdGenerator Members
IdeaBlade.EntityModel Namespace

Send Feedback