Getting Started with Transactional Entity Framework
This guide illustrates how to connect a database.
  1. Create an ODBC data source:


  2. Add the following statements to the data model:

    DataModel.h

  3. Modify the transaction as follows:

    HelloWorld.cpp


  4. Fix the project's properties:
    1. On the Project menu, select Properties
    2. In the Configuration Properties > Linker > Input > Additional Dependencies, add tentity_odbc.lib
  5. Compile (F6) and run the project (F5).