BootstrapAdmin/Bootstrap.DataAccess/BootstrapDataAccessConventi...

21 lines
481 B
C#
Raw Normal View History

using PetaPoco;
using System;
namespace Bootstrap.DataAccess
{
2019-05-19 12:41:53 +08:00
internal class BootstrapDataAccessConventionMapper : ConventionMapper
{
/// <summary>
///
/// </summary>
/// <param name="pocoType"></param>
/// <returns></returns>
2019-05-19 12:41:53 +08:00
public override TableInfo GetTableInfo(Type pocoType)
{
2019-05-19 12:41:53 +08:00
var ti = base.GetTableInfo(pocoType);
ti.AutoIncrement = true;
return ti;
}
}
}