refactor: remove some unused code

This commit is contained in:
spiral
2021-11-26 21:14:09 -05:00
parent 1918c56937
commit 04d78e3348
8 changed files with 17 additions and 204 deletions

View File

@@ -75,12 +75,4 @@ public static class PartialExt
public static Partial<TOut> Map<TIn, TOut>(this Partial<TIn> pt, Func<TIn, TOut> fn) =>
pt.IsPresent ? Partial<TOut>.Present(fn.Invoke(pt.Value)) : Partial<TOut>.Absent;
public static void Apply<T>(this Partial<T> pt, DynamicParameters bag, QueryBuilder qb, string fieldName)
{
if (!pt.IsPresent) return;
bag.Add(fieldName, pt.Value);
qb.Variable(fieldName, $"@{fieldName}");
}
}