-
Notifications
You must be signed in to change notification settings - Fork 145
What is New in 4.0
Jon Wagner edited this page Oct 2, 2014
·
3 revisions
In v4.0, there was one major goal:
Making it easy to return arbitrary trees of objects from SQL results.
Before v4.0, you could return:
- Single Records
- Lists of Records
- Multiple Lists of Records
Each record could be:
- A single object.
- A single object with one-to-one mappings to additional records.
The big thing missing was:
- An object with a list of children (one-to-many).
And of course:
- An object with a list of children with a list of children.
- An object with a list of children with other one-to-one mappings.
- etc.
Now you can do all of this.
See Specifying Result Structures to learn how.
If you have existing code that you want to upgrade to v4.x:
- Update Insight.Database to 4.x.
- Everything should just compile, unless you used
DefaultGraph
orGraph<T>
. - Convert
DefaultGraph
toRecordsetAttribute
. - Convert
Graph<T>
toQuery.Returns
.
If you don't have time to update your code, but still want to use v4.x, you can try:
- Install Insight.Database.Compatibility3x.
This will let you use some of the missing classes / extensions.
- DefaultGraph with more than one graph. This means you won't be able to tag an interface method that returns
Results
and has more than one one-to-one mapping. You will need to convert these to useRecordsetAttribute
. - Interface generation will no longer accept
withGraph
orwithGraphs
as parameters. I doubt anyone used this feature.
- 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