TypeORM is a TypeScript-based ORM framework that uses decorators to define the mapping between entity classes and database tables. Core concepts include:
- Entity: A class marked with @Entity() decorator, corresponding to a table in the database
- Column: Class properties marked with @Column() decorator, corresponding to columns in the table
- PrimaryGeneratedColumn: Auto-generated primary key column
- Repository: Data access layer for executing database operations
- DataSource: Core class that manages database connections and configuration
TypeORM supports both Active Record and Data Mapper patterns, allowing developers to choose the appropriate pattern based on project requirements. It also provides powerful query builders and relationship mapping features, making database operations more type-safe and convenient.