Ejemplo n.º 1
0
 public static IObjectContainer OpenFile(string databaseFileName)
 {
     return(Db4oFactory.OpenFile(CloneConfiguration(), databaseFileName));
 }
Ejemplo n.º 2
0
 public static IConfiguration CloneConfiguration()
 {
     return((Config4Impl)((IDeepClone)Db4oFactory.Configure()).DeepClone(null));
 }
Ejemplo n.º 3
0
 public static IObjectContainer OpenClient(string hostName, int port, string user,
                                           string password)
 {
     return(OpenClient(Db4oFactory.CloneConfiguration(), hostName, port, user, password
                       ));
 }
Ejemplo n.º 4
0
 /// <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()));
 }