Exemple #1
0
        public void TestCreateTableWithValidArguments_Test(string pgdbFileName)
        {
            string pgdbFile = System.IO.Path.Combine(_dataDirectory, pgdbFileName);

            if (File.Exists(pgdbFile))
            {
                File.Delete(pgdbFile);
            }
            GeodatabaseUtil.CreatePersonalGeodatabase(pgdbFile);

            IWorkspaceFactory pgdbWSFactory    = new AccessWorkspaceFactoryClass();
            IWorkspace        workspace        = pgdbWSFactory.OpenFromFile(pgdbFile, 0);
            IFeatureWorkspace featureWorkspace = workspace as IFeatureWorkspace;

            GeodatabaseUtil.CreateTable(featureWorkspace, "Test", null);
        }