23 lines
493 B
C#
23 lines
493 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 ProductModelMapping : ClassMapper<ProductModel>
|
||
|
|
{
|
||
|
|
public ProductModelMapping()
|
||
|
|
{
|
||
|
|
Table("tb_ProdModel");
|
||
|
|
AutoMap();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|