DevForce Help Reference
StoreGeneratedIdGenerator Class
Members 


IIdGenerator providing intrinsic framework support for store-generated IDs.
Object Model
StoreGeneratedIdGenerator ClassIIdGenerator InterfaceUniqueIdCollection Class
Syntax
'Declaration
 
<DataContractAttribute()>
<DefaultExportAttribute(IsDefault=True, 
   ContractName="", 
   ContractType=IdeaBlade.EntityModel.IIdGenerator)>
<ExportMetadataAttribute(Name="IsFake", IsMultiple=False)>
Public Class StoreGeneratedIdGenerator 
   Implements IIdentityIdGenerator, IIdGenerator 
'Usage
 
Dim instance As StoreGeneratedIdGenerator
[DataContract()]
[DefaultExport(IsDefault=true, 
   ContractName="", 
   ContractType=IdeaBlade.EntityModel.IIdGenerator)]
[ExportMetadata(Name="IsFake", IsMultiple=false)]
public class StoreGeneratedIdGenerator : IIdentityIdGenerator, IIdGenerator  
Remarks
This IdGenerator will automatically be used to provide a temporary property value for any new entities whose primary key is marked with the StoreGeneratedPattern="Identity" attribute in its entity model. You do not need to call EntityManager.GenerateId for these properties, as this key generation is done for you.

If you do not wish to use this generator for your Identity properties you will need to provide a stub or custom implementation of IIdentityIdGenerator.

The Entity Framework uses the StoreGeneratedPattern attribute to indicate properties whose value is provided by the data source after the row has been saved. The StoreGeneratedIdGenerator allows you to assign temporary values to these key fields, and will automatically map these temporary IDs to the real IDs assigned by the data source.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.StoreGeneratedIdGenerator

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

StoreGeneratedIdGenerator Members
IdeaBlade.EntityModel Namespace

Send Feedback