コード例 #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);
        }
コード例 #2
0
 public static String GetConnectionString(String serverName, String databaseName)
 {
     return(DatabaseConfiguration.GetSqlConnectionString(serverName, databaseName));
 }