C# Class ZocBuild.Database.Util.DatabaseObjectExtensions

Exibir arquivo Open project: Zocdoc/ZocBuild.Database

Public Methods

Method Description
SetDatabaseIfNotSpecified ( this dbObject, string serverName, string databaseName ) : DatabaseObject

Creates a new database object that corresponds to the given one, but with the specified server name and database name if they aren't already provided.

Method Details

SetDatabaseIfNotSpecified() public static method

Creates a new database object that corresponds to the given one, but with the specified server name and database name if they aren't already provided.
public static SetDatabaseIfNotSpecified ( this dbObject, string serverName, string databaseName ) : DatabaseObject
dbObject this The database object to clone.
serverName string The default server name to use.
databaseName string The default database name to use.
return DatabaseObject