IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : StoreGeneratedIdGenerator Class |
'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
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.
System.Object
IdeaBlade.EntityModel.StoreGeneratedIdGenerator
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