SerializationExtensionMethods.SetNamespaceAlias Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.