Skip to content

Commit

Permalink
Fixing doc comments of result transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
jacentino committed Aug 31, 2021
1 parent a2dcd95 commit 52e1f95
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions SqlFun/Transforms.fs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module Transforms =
/// <param name="transform1">
/// Function performing first transformation.
/// </param>
/// <param name="transformation2">
/// <param name="transform2">
/// Function performing second transformation.
/// </param>
/// <param name="l1">
Expand Down Expand Up @@ -429,16 +429,16 @@ module Transforms =

/// <summary>
/// Provides result transformation functions based on conventions.
/// <summary>
/// </summary>
module Conventions =

/// <summary>
/// Joins collections of parent and child records by key.
/// </summary>
/// <remarks>
/// Join can be used when:
/// - parent record's key has one of id, <parent-name>Id or <parent-name>_id names,
/// - key in child record has <parent-name>Id or <parent-name>_id name,
/// - parent record's key has one of id, {parent-name}Id or {parent-name}_id names,
/// - key in child record has {parent-name}Id or {parent-name}_id name,
/// - parent has a property of child list type.
///</remarks>
/// <param name="p">
Expand Down Expand Up @@ -476,7 +476,6 @@ module Transforms =
let fieldTypes = FSharpType.GetRecordFields typeof<'Target> |> Array.map (fun p -> p.PropertyType)
let construct = typeof<'Target>.GetConstructor(fieldTypes)
let source = Expression.Parameter(typeof<'Source>)
let target = Expression.Parameter(typeof<'Target>)
let srcFields = FSharpType.GetRecordFields typeof<'Source>
|> Seq.map (fun p -> (p.Name, p.PropertyType.FullName), p)
|> Map.ofSeq
Expand Down

0 comments on commit 52e1f95

Please sign in to comment.