mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-24 09:44:33 +08:00
21 lines
544 B
C#
21 lines
544 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace Dapper
|
|
{
|
|
internal sealed class SqlDataRecordHandler<T> : SqlMapper.ITypeHandler
|
|
where T : IDataRecord
|
|
{
|
|
public object Parse(Type destinationType, object value)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void SetValue(IDbDataParameter parameter, object value)
|
|
{
|
|
SqlDataRecordListTVPParameter<T>.Set(parameter, value as IEnumerable<T>, null);
|
|
}
|
|
}
|
|
}
|