Getting Started with Transactional Entity Framework
This guide illustrates how to connect a database.
- Create an ODBC data source:
- Add the following statements to the data model:
DataModel.h
- Modify the transaction as follows:
HelloWorld.cpp
- Fix the project's properties:
- On the Project menu, select Properties
- In the Configuration
Properties > Linker > Input > Additional
Dependencies, add
tentity_odbc.lib
- Compile (F6) and run the project (F5).
|