Show / Hide Table of Contents

Class TelegramUserId

A base class inherited by each EF Core migration.

Inheritance
object
Migration
TelegramUserId
Inherited Members
Migration.InitialDatabase
Migration.TargetModel
Migration.UpOperations
Migration.DownOperations
Migration.ActiveProvider
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NotifyHub.NotificationService.Persistence.Migrations
Assembly: NotifyHub.NotificationService.Persistence.dll
Syntax
[DbContext(typeof(ApplicationDbContext))]
[Migration("20250722112633_TelegramUserId")]
public class TelegramUserId : Migration
Remarks

See Database migrations for more information and examples.

Methods

| Edit this page View Source

BuildTargetModel(ModelBuilder)

Implemented to build the TargetModel.

Declaration
protected override void BuildTargetModel(ModelBuilder modelBuilder)
Parameters
Type Name Description
ModelBuilder modelBuilder

The ModelBuilder to use to build the model.

Overrides
Migration.BuildTargetModel(ModelBuilder)
Remarks

See Database migrations for more information and examples.

| Edit this page View Source

Down(MigrationBuilder)

Builds the operations that will migrate the database 'down'.

Declaration
protected override void Down(MigrationBuilder migrationBuilder)
Parameters
Type Name Description
MigrationBuilder migrationBuilder

The MigrationBuilder that will build the operations.

Overrides
Migration.Down(MigrationBuilder)
Remarks

That is, builds the operations that will take the database from the state left in by this migration so that it returns to the state that it was in before this migration was applied.

This method must be overridden in each class that inherits from Migration if both 'up' and 'down' migrations are to be supported. If it is not overridden, then calling it will throw and it will not be possible to migrate in the 'down' direction.

See Database migrations for more information and examples.

| Edit this page View Source

Up(MigrationBuilder)

Builds the operations that will migrate the database 'up'.

Declaration
protected override void Up(MigrationBuilder migrationBuilder)
Parameters
Type Name Description
MigrationBuilder migrationBuilder

The MigrationBuilder that will build the operations.

Overrides
Migration.Up(MigrationBuilder)
Remarks

That is, builds the operations that will take the database from the state left in by the previous migration so that it is up-to-date with regard to this migration.

This method must be overridden in each class that inherits from Migration.

See Database migrations for more information and examples.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX