TigerEmu/Game/Rooms/RoomPrivateCategoryMap.cs

17 lines
562 B
C#
Raw Normal View History

using FluentNHibernate.Mapping;
2023-10-14 20:32:12 +00:00
namespace Tiger.Game.Rooms;
public class RoomPrivateCategoryMap : ClassMap<RoomPrivateCategory>
2023-10-14 20:32:12 +00:00
{
public RoomPrivateCategoryMap()
{
Table("room_private_categories");
LazyLoad();
Id(rpc => rpc.Id).Column("id").GeneratedBy.Identity();
Map(rpc => rpc.MinRank).Column("min_rank").Not.Nullable();
Map(rpc => rpc.Code).Column("code").Not.Nullable();
Map(rpc => rpc.Name).Column("name").Not.Nullable();
Map(rpc => rpc.CanTrade).Column("can_trade").Not.Nullable();
}
2023-10-14 20:32:12 +00:00
}