private void Configure(bool doIndex) { com.db4o.diagnostic.DiagnosticToConsole listener = new com.db4o.diagnostic.DiagnosticToConsole(); com.db4o.config.Configuration db4oConfiguration = com.db4o.Db4o.Configure(); //db4oConfiguration.Diagnostic().AddListener(listener); if (doIndex) { com.db4o.config.ObjectClass lf = db4oConfiguration.ObjectClass(typeof(LanguageForm)); lf.ObjectField("_form").Indexed(true); //these next two don't seem to help, & don't turn off the warning message com.db4o.config.ObjectClass mt = db4oConfiguration.ObjectClass(typeof(MultiText)); mt.ObjectField("_singleForm").Indexed(true); com.db4o.config.ObjectClass e = db4oConfiguration.ObjectClass(typeof(Entry)); e.ObjectField("_name").Indexed(true); } }
private void Configure(bool doIndex) { com.db4o.diagnostic.DiagnosticToConsole listener = new com.db4o.diagnostic.DiagnosticToConsole(); com.db4o.config.Configuration db4oConfiguration = com.db4o.Db4o.Configure(); //db4oConfiguration.Diagnostic().AddListener(listener); if (doIndex) { com.db4o.config.ObjectClass lf = db4oConfiguration.ObjectClass(typeof(LanguageForm)); lf.ObjectField("_form").Indexed(true); //these next two don't seem to help, & don't turn off the warning message com.db4o.config.ObjectClass mt = db4oConfiguration.ObjectClass(typeof(MultiText)); mt.ObjectField("_singleForm").Indexed(true); com.db4o.config.ObjectClass e = db4oConfiguration.ObjectClass(typeof(Entry)); e.ObjectField("_name").Indexed(true); } }