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