-
Notifications
You must be signed in to change notification settings - Fork 145
Mapping Results to Objects
Insight analyzes each result set and creates a mapping between the result set and the desired return types.
By default, Insight will map the name of each column to individual fields or properties.
- Analyze the schema of the result set to determine the fields that have been returned.
- Determine the available fields and properties that can be set.
- Build a mapping between database fields and object properties.
- Cache the deserializer for the result set so it can be reused for any mapping that matches the signature. The signature of the result set is a hash of the column names and the data types.
Insight calculates a SchemaIdentity for each result set. This is a hash of the columns and data types and is expected to be distinct for any practical sets of recordsets.
Insight uses reflection to determine the fields and properties on the desired return types. Any public, internal, or private field or property can be used as a binding target.
This information is cached for subsequent mapping operations.
Insight maps the database fields to object members using a case-insensitive exact match.
The mapper can also handle special types (see Xml Parameters and Results) as well as object graphs (see Specifying Result Structures).
Query Parameter Mapping - BACK || NEXT- Customizing Object Mapping
- Home
- About
- Getting Started
- Connections
- Execute
- Getting Results
- Advanced Results & Mapping
- Insert/Update Considerations
- Data Types
- Write Even Less Code
- Performance & Speed
- Other Topics
- Supported Databases
- Working with the Code