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.
20 lines
472 B
20 lines
472 B
using System;
|
|
using System.Data;
|
|
|
|
namespace Infrastructure.Extensions
|
|
{
|
|
public static class DataRowExtensions
|
|
{
|
|
public static void Add(this DataRow dataRow, params object[] values)
|
|
{
|
|
if (dataRow is null)
|
|
{
|
|
throw new ArgumentNullException(nameof(dataRow));
|
|
}
|
|
foreach (var (i, value) in values.Each())
|
|
{
|
|
dataRow[i] = value;
|
|
}
|
|
}
|
|
}
|
|
} |