@@ -78,7 +78,7 @@ type [<DataContract;CLIMutable>] Column = {
7878 if this.Nullable
7979 then typedefof<_ option>. MakeGenericType this.TypeInfo.ClrType
8080 else this.TypeInfo.ClrType
81-
81+ #if DESIGNTIME _ CODE _ ONLY
8282 member this.GetProvidedType ( unitsOfMeasurePerSchema : IDictionary < string , ProviderImplementation.ProvidedTypes.ProvidedTypeDefinition list >) =
8383 let typeConsideringUOM : Type =
8484 if this.TypeInfo.IsUnitOfMeasure
@@ -99,7 +99,7 @@ type [<DataContract;CLIMutable>] Column = {
9999 typedefof<_ option>. MakeGenericType typeConsideringUOM
100100 else
101101 typeConsideringUOM
102-
102+ #endif
103103 member this.HasDefaultConstraint = this.DefaultConstraint <> " "
104104 member this.NullableParameter = this.Nullable || this.HasDefaultConstraint
105105 member this.GetTypeInfoConsideringUDDT () =
@@ -175,15 +175,15 @@ type [<DataContract;CLIMutable>] Parameter = {
175175 match this.TypeInfo.SqlDbType with
176176 | SqlDbType.NChar | SqlDbType.NText | SqlDbType.NVarChar -> this.MaxLength / 2
177177 | _ -> this.MaxLength
178-
178+ #if DESIGNTIME _ CODE _ ONLY
179179 member this.GetProvidedType ( unitsOfMeasurePerSchema : IDictionary < string , ProviderImplementation.ProvidedTypes.ProvidedTypeDefinition list >) =
180180 if this.TypeInfo.IsUnitOfMeasure
181181 then
182182 let uomType = unitsOfMeasurePerSchema.[ this.TypeInfo.Schema] |> List.find ( fun x -> x.Name = this.TypeInfo.UnitOfMeasureName)
183183 ProviderImplementation.ProvidedTypes.ProvidedMeasureBuilder.AnnotateType( this.TypeInfo.ClrType, [ uomType ])
184184 else
185185 this.TypeInfo.ClrType
186-
186+ #endif
187187type TempTableLoader ( fieldCount , items : obj seq ) =
188188 let enumerator = items.GetEnumerator()
189189
0 commit comments