Search Results for

    Show / Hide Table of Contents
    View Source

    Class AddRelationTypeForMembers

    Migration to add an automatic relation type for members if it doesn't already exist.

    Inheritance
    System.Object
    MigrationBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_15_4_0
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class AddRelationTypeForMembers : MigrationBase, IDiscoverable

    Constructors

    View Source

    AddRelationTypeForMembers(IMigrationContext, IRelationService)

    Initializes a new instance of the AddRelationTypeForMembers class.

    Declaration
    public AddRelationTypeForMembers(IMigrationContext context, IRelationService relationService)
    Parameters
    Type Name Description
    IMigrationContext context
    IRelationService relationService

    Methods

    View Source

    Migrate()

    Executes the migration.

    Declaration
    protected override void Migrate()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AddRelationTypeForMembers(IMigrationContext, IRelationService)
    • Methods
      • Migrate()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX