IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : GenerateId Method |
'Declaration
Public Function GenerateId( _ ByVal entity As Object, _ ByVal entityProperty As DataEntityProperty _ ) As UniqueId
'Usage
Dim instance As EntityManager Dim entity As Object Dim entityProperty As DataEntityProperty Dim value As UniqueId value = instance.GenerateId(entity, entityProperty)
public UniqueId GenerateId( object entity, DataEntityProperty entityProperty )
Exception | Description |
---|---|
System.ArgumentException | Incorrect entity type/property |
IdeaBlade.Core.IdeaBladeException | IdGenerator not found |
If you are using a SQL Server Identity property you do not need to call GenerateId for the property.
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