Class Unit
Namespace: Rebus
Assembly: Rebus.dll
Syntax
[Index(new string[]{"Commodity"})]
[Index(new string[]{"Name"}, IsUnique = true)]
[MessagePackObject(false)]
[Table("Unit")]
public class Unit : IEquatable<Unit>
Properties
Commodity
Declaration
[Key(3)]
public int Commodity { get; set; }
Property Value
Id
Declaration
[Key(0)]
public int Id { get; set; }
Property Value
Name
Declaration
[Key(1)]
public string Name { get; set; }
Property Value
Sanctuary
Declaration
[IgnoreMember]
public Zone Sanctuary { get; set; }
Property Value
SanctuaryLocation
Declaration
[Key(2)]
public HexPoint? SanctuaryLocation { get; }
Property Value
Zone
Declaration
[IgnoreMember]
[Required]
public Zone Zone { get; set; }
Property Value
Methods
Equals(Unit)
Declaration
public bool Equals(Unit other)
Parameters
Type |
Name |
Description |
Unit |
other |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Implements