mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
633 B
29 lines
633 B
using System;
|
|
using System.Data;
|
|
|
|
namespace ZeroLevel.SqlServer
|
|
{
|
|
public class SqlDbMapper : BaseSqlDbMapper
|
|
{
|
|
protected readonly IDbMapper _mapper;
|
|
|
|
protected override IDbMapper Mapper
|
|
{
|
|
get
|
|
{
|
|
return _mapper;
|
|
}
|
|
}
|
|
|
|
public SqlDbMapper(Type entityType, bool mapOnlyMarkedMembers = true) : base(entityType.Name)
|
|
{
|
|
_mapper = DbMapperFactory.Create(entityType, mapOnlyMarkedMembers);
|
|
}
|
|
|
|
public object Deserialize(DataRow row)
|
|
{
|
|
return _mapper.Deserialize(row);
|
|
}
|
|
}
|
|
}
|