Table of Contents

Class ModelMetadataSourceInfo

Inheritance
ModelMetadataSourceInfo
Implements
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll

Provides additional metadata about a model, including its source and type.

public record ModelMetadataSourceInfo : IEquatable<ModelMetadataSourceInfo>
Extension Methods

Constructors

ModelMetadataSourceInfo(ModelMetadataSourceInfo)

protected ModelMetadataSourceInfo(ModelMetadataSourceInfo original)

Parameters

Type Name Description
ModelMetadataSourceInfo original

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type Description
Type

Pbip

If the model metadata is loaded from a PBIP folder structure, this object will hold additional information parsed from the .platform file in that folder

public PbipInfo Pbip { get; }

Property Value

Type Description
PbipInfo

Source

A string representing the file path of the model metadata source (if loaded from disk), or the connection string (if loaded through the XMLA endpoint)

public string Source { get; }

Property Value

Type Description
string

SourceType

Specifies which format the model metadata source is using (TMSL, TMDL, etc.) or if the model metadata was loaded through an XMLA endpoint

public ModelSourceType SourceType { get; }

Property Value

Type Description
ModelSourceType

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(ModelMetadataSourceInfo?)

public virtual bool Equals(ModelMetadataSourceInfo? other)

Parameters

Type Name Description
ModelMetadataSourceInfo other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

<Clone>$()

public virtual ModelMetadataSourceInfo <Clone>$()

Returns

Type Description
ModelMetadataSourceInfo

Operators

operator ==(ModelMetadataSourceInfo?, ModelMetadataSourceInfo?)

public static bool operator ==(ModelMetadataSourceInfo? left, ModelMetadataSourceInfo? right)

Parameters

Type Name Description
ModelMetadataSourceInfo left
ModelMetadataSourceInfo right

Returns

Type Description
bool

operator !=(ModelMetadataSourceInfo?, ModelMetadataSourceInfo?)

public static bool operator !=(ModelMetadataSourceInfo? left, ModelMetadataSourceInfo? right)

Parameters

Type Name Description
ModelMetadataSourceInfo left
ModelMetadataSourceInfo right

Returns

Type Description
bool