VistaDB 6
VistaDB.Entity Namespace / VistaDBProviderServices Class / CreateCommandDefinition Method / CreateCommandDefinition(DbCommand) Method
the prototype command


In This Topic
    CreateCommandDefinition(DbCommand) Method
    In This Topic
    Create the default DbCommandDefinition object based on the prototype command This method is intended for provider writers to build a default command definition from a command. Note: This will clone the prototype
    Syntax
    'Declaration
     
    
    Public Overloads Function CreateCommandDefinition( _
       ByVal prototype As System.Data.Common.DbCommand _
    ) As System.Data.Entity.Core.Common.DbCommandDefinition
    'Usage
     
    
    Dim instance As VistaDBProviderServices
    Dim prototype As System.Data.Common.DbCommand
    Dim value As System.Data.Entity.Core.Common.DbCommandDefinition
     
    value = instance.CreateCommandDefinition(prototype)
    public System.Data.Entity.Core.Common.DbCommandDefinition CreateCommandDefinition( 
       System.Data.Common.DbCommand prototype
    )

    Parameters

    prototype
    the prototype command

    Return Value

    an executable command definition object
    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