18 lines
502 B
C#
Raw Normal View History

2025-04-15 17:57:47 +08:00
using Cassandra.Mapping;
2025-04-21 09:54:34 +08:00
using JiShe.CollectBus.IotSystems.Devices;
2025-04-15 17:57:47 +08:00
using JiShe.CollectBus.IotSystems.MessageIssueds;
2025-04-21 09:54:34 +08:00
namespace JiShe.CollectBus.Mappers
2025-04-15 17:57:47 +08:00
{
public class CollectBusMapping: Mappings
{
public CollectBusMapping()
{
For<MessageIssued>()
.Column(e => e.Type, cm => cm.WithName("type").WithDbType<int>());
2025-04-21 09:54:34 +08:00
For<Device>()
.Column(e => e.Status, cm => cm.WithName("status").WithDbType<int>());
2025-04-15 17:57:47 +08:00
}
}
}