public static IObjectContainer OpenFile(string databaseFileName) { return(Db4oFactory.OpenFile(CloneConfiguration(), databaseFileName)); }
public static IConfiguration CloneConfiguration() { return((Config4Impl)((IDeepClone)Db4oFactory.Configure()).DeepClone(null)); }
public static IObjectContainer OpenClient(string hostName, int port, string user, string password) { return(OpenClient(Db4oFactory.CloneConfiguration(), hostName, port, user, password )); }
/// <summary> /// Creates a fresh /// <see cref="Db4objects.Db4o.Config.IEmbeddedConfiguration">IEmbeddedConfiguration</see> /// instance. /// </summary> /// <returns> /// a fresh, independent configuration with all options set to their default values /// </returns> public static IEmbeddedConfiguration NewConfiguration() { return(new EmbeddedConfigurationImpl(Db4oFactory.NewConfiguration())); }