In a console application, you don't have the hook. You need to have a workspace, and connect to the dataset use the workspace. You probably won't have an GxDataset, instead you will use IDataset interface.
If I see more code of yours, I can tell what type of workspace or dataset to use.