private static IObjectContainer ConnectEmbedded() { if (CustomConfig) { EmbeddedConfig = ManageCustomConfig.ConfigureEmbeddedCustomConfig(); } if (EmbeddedConfig == null) { EmbeddedConfig = Db4oEmbedded.NewConfiguration(); } ConfigureCommon(EmbeddedConfig.Common); EmbeddedConfig.File.ReadOnly = CurrentConnParams.ConnectionReadOnly; return(Db4oEmbedded.OpenFile(EmbeddedConfig, CurrentConnParams.Connection)); }
private static IObjectContainer ConnectClient() { IClientConfiguration config = null; if (CustomConfig) { config = ManageCustomConfig.ConfigureClientCustomConfig(); } if (config == null) { config = Db4oClientServer.NewClientConfiguration(); } ConfigureCommon(config.Common); return(Db4oClientServer.OpenClient(config, CurrentConnParams.Host, CurrentConnParams.Port, CurrentConnParams.UserName, CurrentConnParams.PassWord)); }