VistaDB 5
Members 






VistaDB.Entity Namespace : VistaDBConnectionFactory Class
VistaDBConnectionFactory Class
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 
public class VistaDBConnectionFactory sealed; 
public sealed class VistaDBConnectionFactory 
public __gc __sealed class VistaDBConnectionFactory 
public ref class VistaDBConnectionFactory sealed 
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