Share via


SerializationExtensionMethods.SetNamespaceAlias Method

Definition

Sets the serialization alias for a given namespace(including current model's schemas namespace-alias, and referenced models' schemas namespace-alias) TODO: REF make sure no duplicated alias.

public static void SetNamespaceAlias (this Microsoft.OData.Edm.IEdmModel model, string namespaceName, string alias);
static member SetNamespaceAlias : Microsoft.OData.Edm.IEdmModel * string * string -> unit
<Extension()>
Public Sub SetNamespaceAlias (model As IEdmModel, namespaceName As String, alias As String)

Parameters

model
IEdmModel

Model that will be serialized.

namespaceName
String

The namespace to set the alias for.

alias
String

The alias for that namespace.

Applies to