src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Constructs a proposed EntitySet name given an EntityType name
/// </summary>
Constructs a proposed EntitySet name given an EntityType name
Constructs a proposed EntitySet name given an EntityType name
internal static string ConstructProposedEntitySetName(EFArtifact artifact, string entityTypeName)
        {
            IPluralizationService pluralizationService = null;
            var pluralize = GetDesignerPropertyValueFromArtifactAsBool(
                OptionsDesignerInfo.ElementName,
                OptionsDesignerInfo.AttributeEnablePluralization, OptionsDesignerInfo.EnablePluralizationDefault, artifact);
            if (pluralize)
            {
                pluralizationService = DependencyResolver.GetService<IPluralizationService>();
            }
            return ConstructProposedEntitySetName(pluralizationService, entityTypeName);
        }
internal static string ConstructProposedEntitySetName ( EFArtifact artifact , string entityTypeName ) { IPluralizationService pluralizationService = null ; var pluralize = GetDesignerPropertyValueFromArtifactAsBool ( OptionsDesignerInfo . ElementName , OptionsDesignerInfo . AttributeEnablePluralization , OptionsDesignerInfo . EnablePluralizationDefault , artifact ) ; if ( pluralize ) { pluralizationService = DependencyResolver . GetService < IPluralizationService > ( ) ; } return ConstructProposedEntitySetName ( pluralizationService , entityTypeName ) ; }
Constructs a proposed EntitySet name given an EntityType name
Constructs a proposed EntitySet name given an EntityType name
artifact
EFArtifact
entityTypeName
string