Table of Contents

Class ModelHelper

Namespace
The.Model
Assembly
Instagile.Model.dll
public static class ModelHelper
Inheritance
ModelHelper
Inherited Members

Methods

GetEntityPluralCaption(string, string?, string?, string?)

public static string GetEntityPluralCaption(string name, string? pluralOverride, string? captionOverride, string? pluralCaptionOverride)

Parameters

name string
pluralOverride string
captionOverride string
pluralCaptionOverride string

Returns

string

GetRelationshipCaption(string?, string?, bool, string?, string?, bool, string, string)

public static string GetRelationshipCaption(string? displayLabel, string? nameOverride, bool hasParallelRelationships, string? otherSideDisplayLabel, string? otherSideNameOverride, bool isCollection, string relatedEntityCaption, string relatedEntityPluralCaption)

Parameters

displayLabel string
nameOverride string
hasParallelRelationships bool
otherSideDisplayLabel string
otherSideNameOverride string
isCollection bool
relatedEntityCaption string
relatedEntityPluralCaption string

Returns

string

GetRelationshipName(string?, bool, string?, bool, string, string)

public static string GetRelationshipName(string? nameOverride, bool hasParallelRelationships, string? otherSideNameOverride, bool isCollection, string relatedEntityName, string relatedEntityPluralName)

Parameters

nameOverride string
hasParallelRelationships bool
otherSideNameOverride string
isCollection bool
relatedEntityName string
relatedEntityPluralName string

Returns

string