public static DataContext Create(String serverName, String databaseName, String databaseUserName, String databasePassword) { var sqlConnectionString = DatabaseConfiguration.GetSqlConnectionString(serverName, databaseName, databaseUserName, databasePassword); var databaseContext = new DataContext(sqlConnectionString); return(databaseContext); }
public static String GetConnectionString(String serverName, String databaseName) { return(DatabaseConfiguration.GetSqlConnectionString(serverName, databaseName)); }