Hi -
I get an exception trying to open a mobile geodatabase.
Is there a snippet for this somewhere?
Thanks, Kirk
public static void Test3()
{
var mgdbPath = @"D:\nhd_data\Mobile2.geodatabase";
if (!File.Exists(mgdbPath))
throw new FileNotFoundException(mgdbPath);
var cn = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLite)
{
Database = mgdbPath //anything else to set??
};
using (var gdb = new Geodatabase(cn)) //exception here
{
var c = gdb.GetDefinitions<FeatureClassDefinition>().Count();
Debug.Print($"count {c}");
}
}