@@ -454,6 +454,11 @@ <h3><a name="What-to-do-if-your-creation-fails-systematically-every-time" class=
454454< span onmouseout ="hideTip(event, 'fs17', 308) " onmouseover ="showTip(event, 'fs17', 308) " class ="id "> ctx</ span > < span class ="pn "> .</ span > < span onmouseout ="hideTip(event, 'fs48', 309) " onmouseover ="showTip(event, 'fs48', 309) " class ="id "> SubmitUpdates</ span > < span class ="pn "> (</ span > < span class ="pn "> )</ span >
455455</ code > </ pre >
456456< p > SetColumn takes an object, giving you more control over the type serialization.</ p >
457+ < h3 > < a name ="Identifying-columns-dynamically " class ="anchor " href ="#Identifying-columns-dynamically "> Identifying columns dynamically</ a > </ h3 >
458+ < pre class ="fssnip highlighted "> < code lang ="fsharp "> < span class ="k "> let</ span > < span onmouseout ="hideTip(event, 'fs122', 310) " onmouseover ="showTip(event, 'fs122', 310) " class ="fn "> setIfExists</ span > < span class ="pn "> (</ span > < span onmouseout ="hideTip(event, 'fs123', 311) " onmouseover ="showTip(event, 'fs123', 311) " class ="fn "> columnName</ span > < span class ="pn "> )</ span > < span class ="o "> =</ span >
459+ < span class ="k "> if</ span > < span onmouseout ="hideTip(event, 'fs49', 312) " onmouseover ="showTip(event, 'fs49', 312) " class ="id "> emp</ span > < span class ="pn "> .</ span > < span onmouseout ="hideTip(event, 'fs124', 313) " onmouseover ="showTip(event, 'fs124', 313) " class ="id "> HasColumn</ span > < span class ="pn "> (</ span > < span onmouseout ="hideTip(event, 'fs123', 314) " onmouseover ="showTip(event, 'fs123', 314) " class ="fn "> columnName</ span > < span class ="pn "> ,</ span > < span onmouseout ="hideTip(event, 'fs125', 315) " onmouseover ="showTip(event, 'fs125', 315) " class ="en "> StringComparison</ span > < span class ="pn "> .</ span > < span onmouseout ="hideTip(event, 'fs126', 316) " onmouseover ="showTip(event, 'fs126', 316) " class ="id "> InvariantCultureIgnoreCase</ span > < span class ="pn "> )</ span > < span class ="k "> then</ span >
460+ < span onmouseout ="hideTip(event, 'fs49', 317) " onmouseover ="showTip(event, 'fs49', 317) " class ="id "> emp</ span > < span class ="pn "> .</ span > < span onmouseout ="hideTip(event, 'fs121', 318) " onmouseover ="showTip(event, 'fs121', 318) " class ="id "> SetColumn</ span > < span class ="pn "> (</ span > < span onmouseout ="hideTip(event, 'fs123', 319) " onmouseover ="showTip(event, 'fs123', 319) " class ="fn "> columnName</ span > < span class ="pn "> ,</ span > < span class ="s "> "testValue"</ span > < span class ="pn "> )</ span >
461+ </ code > </ pre >
457462
458463 < div class ="fsdocs-tip " id ="fs1 "> Multiple items< br /> type LiteralAttribute =
459464 inherit Attribute
@@ -693,6 +698,18 @@ <h3><a name="What-to-do-if-your-creation-fails-systematically-every-time" class=
693698< div class ="fsdocs-tip " id ="fs119 "> val append: source1: 'T seq -> source2: 'T seq -> 'T seq</ div >
694699< div class ="fsdocs-tip " id ="fs120 "> property SqlDataProvider<...>.dataContext.main.EmployeesEntity.BirthDate: DateTime with get, set< br /> < em > <summary>BirthDate: datetime</summary></ em > </ div >
695700< div class ="fsdocs-tip " id ="fs121 "> member Common.SqlEntity.SetColumn: key: string * value: 't -> unit</ div >
701+ < div class ="fsdocs-tip " id ="fs122 "> val setIfExists: columnName: string -> unit</ div >
702+ < div class ="fsdocs-tip " id ="fs123 "> val columnName: string</ div >
703+ < div class ="fsdocs-tip " id ="fs124 "> member Common.SqlEntity.HasColumn: key: string * ?comparison: StringComparison -> bool</ div >
704+ < div class ="fsdocs-tip " id ="fs125 "> [<Struct>]
705+ type StringComparison =
706+ | CurrentCulture = 0
707+ | CurrentCultureIgnoreCase = 1
708+ | InvariantCulture = 2
709+ | InvariantCultureIgnoreCase = 3
710+ | Ordinal = 4
711+ | OrdinalIgnoreCase = 5< br /> < em > <summary>Specifies the culture, case, and sort rules to be used by certain overloads of the <see cref="M:System.String.Compare(System.String,System.String)" /> and <see cref="M:System.String.Equals(System.Object)" /> methods.</summary></ em > </ div >
712+ < div class ="fsdocs-tip " id ="fs126 "> field StringComparison.InvariantCultureIgnoreCase: StringComparison = 3</ div >
696713
697714 </ div >
698715</ main >
@@ -724,6 +741,11 @@ <h3><a name="What-to-do-if-your-creation-fails-systematically-every-time" class=
724741 What to do if your creation fails systematically every time
725742 </ a >
726743 </ li >
744+ < li class ="level-3 ">
745+ < a href ="#Identifying-columns-dynamically ">
746+ Identifying columns dynamically
747+ </ a >
748+ </ li >
727749</ ul >
728750</ aside >
729751< dialog >
0 commit comments