SQLProvider


TypeProviderForNamespaces

Namespace: ProviderImplementation.ProvidedTypes

A base type providing default implementations of type provider functionality.

Constructors

ConstructorDescription
new(...)
Signature: (config:TypeProviderConfig * sourceAssemblies:Assembly list option * assemblyReplacementMap:(string * string) list option * addDefaultProbingLocation:bool option) -> TypeProviderForNamespaces

Initializes a type provider.

CompiledName: .ctor

new(...)
Signature: (config:TypeProviderConfig * namespaceName:string * types:ProvidedTypeDefinition list * sourceAssemblies:Assembly list option * assemblyReplacementMap:(string * string) list option * addDefaultProbingLocation:bool option) -> TypeProviderForNamespaces

Initializes a type provider to provide the types in the given namespace.

CompiledName: .ctor

Instance members

Instance memberDescription
x.add_Disposing(arg1)
Signature: EventHandler -> unit
Attributes:
[<CLIEvent>]
x.AddNamespace(namespaceName, types)
Signature: (namespaceName:string * types:ProvidedTypeDefinition list) -> unit

Invoked by the type provider to add a namespace of provided types in the specification of the type provider.

x.ApplyStaticArgumentsForMethod(...)
Signature: (MethodBase * string * obj []) -> MethodBase

Invoked by the host of the type provider to apply the static argumetns for a method.

x.Disposing
Signature: IEvent<EventHandler,EventArgs>
Attributes:
[<CLIEvent>]

CompiledName: get_Disposing

x.GetStaticParametersForMethod(arg1)
Signature: MethodBase -> ParameterInfo []

Invoked by the host of the type provider to get the static parameters for a method.

x.Invalidate()
Signature: unit -> unit

Invoked by the type provider to invalidate the information provided by the provider

x.Namespaces
Signature: IProvidedNamespace []

Invoked by the type provider to get all provided namespaces with their provided types.

CompiledName: get_Namespaces

x.RegisterGeneratedTargetAssembly(...)
Signature: fileName:string -> Assembly

Register that a given file is a provided generated target assembly, e.g. an assembly produced by an external code generation tool. This assembly should be a target assembly, i.e. use the same asssembly references as given by TargetContext.ReferencedAssemblyPaths

x.RegisterProbingFolder(folder)
Signature: folder:string -> unit

Registers custom probing path that can be used for probing assemblies

x.RegisterRuntimeAssemblyLocationAsProbingFolder(...)
Signature: config:TypeProviderConfig -> unit

Registers location of RuntimeAssembly (from TypeProviderConfig) as probing folder

x.remove_Disposing(arg1)
Signature: EventHandler -> unit
Attributes:
[<CLIEvent>]
x.ResolveAssembly(arg1)
Signature: ResolveEventArgs -> Assembly
Modifiers: abstract

AssemblyResolve handler. Default implementation searches .dll file in registered folders

x.TargetContext
Signature: ProvidedTypesContext

The context for which code is eventually to be generated. You should not normally need to use this property directly, as translation from the compiler-hosted context to the design-time context will normally be performed automatically.

CompiledName: get_TargetContext

Fork me on GitHub