VistaDB 6
VistaDB.Entity Namespace / VistaDBConnectionFactory Class
Members


In This Topic
    VistaDBConnectionFactory Class
    In This Topic
    Instances of this class are used to create DbConnection objects for SQL Server based on a given database name or connection string. By default, the connection is made to '.\SQLEXPRESS'. This can be changed by changing the base connection string when constructing a factory instance.
    Syntax
    'Declaration
     
    
    Public NotInheritable Class VistaDBConnectionFactory 
    'Usage
     
    
    Dim instance As VistaDBConnectionFactory
    public sealed class VistaDBConnectionFactory 
    Remarks
    An instance of this class can be set on the System.Data.Entity.Database class to cause all DbContexts created with no connection information or just a database name or connection string to use SQL Server by default. This class is immutable since multiple threads may access instances simultaneously when creating connections.
    Inheritance Hierarchy

    System.Object
       VistaDB.Entity.VistaDBConnectionFactory

    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