diff --git a/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj b/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj index 040ed850..92b71414 100644 --- a/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj +++ b/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj @@ -11,9 +11,9 @@ - + - + diff --git a/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj b/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj index b511be3d..5257d8f6 100644 --- a/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj +++ b/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj @@ -11,15 +11,15 @@ - - + + - + diff --git a/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs b/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs index 6ffec01a..ec7a8820 100644 --- a/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs +++ b/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs @@ -1,50 +1,20 @@ using PetaPoco; using System; -using System.Reflection; namespace Bootstrap.DataAccess { - internal class BootstrapDataAccessConventionMapper : IMapper + internal class BootstrapDataAccessConventionMapper : ConventionMapper { - private readonly IMapper _mapper; - - public BootstrapDataAccessConventionMapper() - { - _mapper = new ConventionMapper(); - } - - /// - /// - /// - /// - /// - public ColumnInfo GetColumnInfo(PropertyInfo pocoProperty) => _mapper.GetColumnInfo(pocoProperty); - - /// - /// - /// - /// - /// - /// - public Func GetFromDbConverter(PropertyInfo targetProperty, Type sourceType) => _mapper.GetFromDbConverter(targetProperty, sourceType); - /// /// /// /// /// - public TableInfo GetTableInfo(Type pocoType) + public override TableInfo GetTableInfo(Type pocoType) { - var ti = _mapper.GetTableInfo(pocoType); + var ti = base.GetTableInfo(pocoType); ti.AutoIncrement = true; return ti; } - - /// - /// - /// - /// - /// - public Func GetToDbConverter(PropertyInfo sourceProperty) => _mapper.GetToDbConverter(sourceProperty); } }