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.
Zero/ZeroLevel.MsSql/SqlDbMapper.cs

29 lines
629 B

using System;
using System.Data;
namespace ZeroLevel.MsSql
{
public class SqlDbMapper : BaseSqlDbMapper
{
protected readonly IDbMapper _mapper;
protected override IDbMapper Mapper
{
get
{
return _mapper;
}
}
5 years ago
public SqlDbMapper(Type entityType, bool mapOnlyMarkedMembers = true) : base(entityType.Name)
{
5 years ago
_mapper = DbMapperFactory.Create(entityType, mapOnlyMarkedMembers);
}
public object Deserialize(DataRow row)
{
return _mapper.Deserialize(row);
}
}
}

Powered by TurnKey Linux.