From 52e1f956e9066c215f2f1b1538ffbf1cf255a9c3 Mon Sep 17 00:00:00 2001 From: jacentino Date: Tue, 31 Aug 2021 22:51:38 +0200 Subject: [PATCH] Fixing doc comments of result transformations --- SqlFun/Transforms.fs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/SqlFun/Transforms.fs b/SqlFun/Transforms.fs index 6cf74e8..816e580 100644 --- a/SqlFun/Transforms.fs +++ b/SqlFun/Transforms.fs @@ -108,7 +108,7 @@ module Transforms = /// /// Function performing first transformation. /// - /// + /// /// Function performing second transformation. /// /// @@ -429,7 +429,7 @@ module Transforms = /// /// Provides result transformation functions based on conventions. - /// + /// module Conventions = /// @@ -437,8 +437,8 @@ module Transforms = /// /// /// Join can be used when: - /// - parent record's key has one of id, Id or _id names, - /// - key in child record has Id or _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. /// /// @@ -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