DevForce Help Reference
DbKey Class
Members 


Represents the connection information to a database for a CodeFirst model.
Syntax
'Declaration
 
<SerializableAttribute()>
Public Class DbKey 
   Inherits EdmKey
   Implements IdeaBlade.EntityModel.IDataSourceKey 
'Usage
 
Dim instance As DbKey
Remarks
By default a DbKey is created from the connection information for a matching element in the ConnectionStrings section of your configuration file. You can override this default by specifying an EdmKey in the IdeaBlade section of the configuration file. You can also create an EdmKey at run-time by implementing a custom IdeaBlade.EntityModel.IDataSourceKeyResolver.

An DbKey differs from an EdmKey in that its connection string does not contain EDMX metadata information because a design-time model is not used. As with the EdmKey, the DbKey is used on only the server; your client application should use a ClientEdmKey when working with data source keys.

If the database does not exist or has changed it will be created when the DbKey is constructed, depending on the IDatabaseInitializer strategy in effect.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.ClientEdmKey
      IdeaBlade.EntityModel.Edm.EdmKey
         IdeaBlade.EntityModel.Edm.DbKey

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

DbKey Members
IdeaBlade.EntityModel.Edm Namespace

Send Feedback