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.
19 lines
450 B
19 lines
450 B
using System;
|
|
using System.Data;
|
|
#if !NETCOREAPP
|
|
namespace Dapper
|
|
{
|
|
sealed class DataTableHandler : SqlMapper.ITypeHandler
|
|
{
|
|
public object Parse(Type destinationType, object value)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void SetValue(IDbDataParameter parameter, object value)
|
|
{
|
|
TableValuedParameter.Set(parameter, value as DataTable, null);
|
|
}
|
|
}
|
|
}
|
|
#endif
|