Table of Contents

Class MigrationAttribute

Namespace
eQuantic.Core.Data.Migration
Assembly
eQuantic.Core.Data.dll

Marks a class as a data migration and records its title and timestamp.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class MigrationAttribute : Attribute
Inheritance
MigrationAttribute
Inherited Members

Constructors

MigrationAttribute(string, int, int, int, int, int, int)

Initializes a new instance of the MigrationAttribute class.

public MigrationAttribute(string title, int year, int month, int day, int hour, int minute, int second)

Parameters

title string

The migration title.

year int

The year component of the migration timestamp.

month int

The month component of the migration timestamp.

day int

The day component of the migration timestamp.

hour int

The hour component of the migration timestamp.

minute int

The minute component of the migration timestamp.

second int

The second component of the migration timestamp.

Properties

Date

Gets the migration timestamp.

public DateTime Date { get; }

Property Value

DateTime

Id

Gets the stable, ordered identifier of the migration — the timestamp (for ordering and uniqueness) joined with the title. This is what the migration history records.

public string Id { get; }

Property Value

string

Title

Gets the migration title.

public string Title { get; }

Property Value

string