Skip to content

1.2.0 to 2.0.0 Migration

Yakiv Yusin edited this page May 23, 2018 · 1 revision

Release 2.0.0 has breaking change: TableDisplayName, TableMemberOrder and TableDefaultValue attributes are merged to one TableMember attribute.

This page contains examples of code migrations.

TableDisplayName -> TableMember(DisplayName = )

1.2.0

[TableDisplayName("My Property")]
public int A { get; }

2.0.0

[TableMember(DisplayName = "My Property")]
public int A { get; }

TableMemberOrder -> TableMember(Order = )

1.2.0

[TableMemberOrder(1)]
public int A { get; }

2.0.0

[TableMember(Order = 1)]
public int A { get; }

TableDefaultValue -> TableMember(DefaultValue = )

1.2.0

[TableDefaultValue("Value")]
public int A { get; }

2.0.0

[TableMember(DefaultValue = "Value")]
public int A { get; }

Few Attributes

1.2.0

[TableDefaultValue("Value")]
[TableMemberOrder(1)]
public int A { get; }

2.0.0

[TableMember(DefaultValue = "Value", Order = 1)]
public int A { get; }