Esempio n. 1
0
		/// <summary>
		/// Creates an environment.
		/// </summary>
		/// <param name="config">The <see cref="EnvironmentConfig"/> to configures the new
		/// environment.</param>
		/// <returns>A new <see cref="Environment"/></returns>
		public static Environment Create(EnvironmentConfig config)
		{
			return ConcreteFactory.Create<EnvironmentConfig, Environment>(config);
		}
Esempio n. 2
0
		/// <summary>
		/// Creates an environment.
		/// </summary>
		/// <param name="dbHome">The home directory of the new environment.</param>
		/// <param name="flags">The <see cref="EnvOpenFlags"/> used to open the new
		/// environment.</param>
		/// <returns>A new <see cref="Environment"/></returns>
		public static Environment Create(string dbHome, EnvOpenFlags flags)
		{
			return ConcreteFactory.Create<string, EnvOpenFlags, Environment>(dbHome, flags);
		}
Esempio n. 3
0
 /// <summary>
 /// Creates a database.
 /// </summary>
 /// <param name="config">The <see cref="DatabaseConfig"/> of the database to create.</param>
 /// <returns>The new <see cref="Database"/>.</returns>
 /// <remarks><see cref="Environment"/> will be <see langword="null"/> for this instace.</remarks>
 public static Database Create(DatabaseConfig config)
 {
     return(ConcreteFactory.Create <DatabaseConfig, Database>(config));
 }