Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static String GetConnectionString(String serverName, String databaseName)
 {
     return(DatabaseConfiguration.GetSqlConnectionString(serverName, databaseName));
 }