23 lines
480 B
C#
23 lines
480 B
C#
using DapperExtensions.Mapper;
|
|||
|
|
using JY.Model;
|
||
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace JY.DAL.Mapper
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// ProdModel表映射,实体名和表名不一样实现映射
|
||
|
|
/// </summary>
|
||
|
|
public class AlarmDataMapping : ClassMapper<AlarmData>
|
||
|
|
{
|
||
|
|
public AlarmDataMapping()
|
||
|
|
{
|
||
|
|
Table("tb_alarm");
|
||
|
|
AutoMap();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|