Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
DataMapper 1.6
-
None
-
Documentation
Description
Currently documentation:
3.5.2.4. groupBy
The optional groupBy attribute specifies a list of .NET properties names of the result object build by the
resultMap. Thera are used to identify unique rows in the returned result set. Rows with equal values for the
specified properties will only generate one result object. Use groupBy in combination with nested resultMaps to
solve the N+1 query problem. Exemple : "Id" or "Desciption, Date".(see paragraph 3.5.13).
Corrected documentation:
3.5.2.4. groupBy
The optional groupBy attribute specifies a list of .NET property names of the result object built by the
resultMap. They are used to identify unique rows in the returned result set. Rows with equal values for the
specified properties will only generate one result object. Use groupBy in combination with nested resultMaps to
solve the N+1 query problem. Exemple : "Id" or "Desciption, Date".(see paragraph 3.5.13).