mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-26 10:50:05 +08:00
21 lines
556 B
C#
21 lines
556 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
#if !COREFX
|
|
namespace Dapper
|
|
{
|
|
sealed class SqlDataRecordHandler : SqlMapper.ITypeHandler
|
|
{
|
|
public object Parse(Type destinationType, object value)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void SetValue(IDbDataParameter parameter, object value)
|
|
{
|
|
SqlDataRecordListTVPParameter.Set(parameter, value as IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>, null);
|
|
}
|
|
}
|
|
}
|
|
#endif |