using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.DAL
{
///
/// Db数组辅助类
///
public static class DbArrayHelper
{
///
/// To Db String
///
public static string ToDbString(this IEnumerable array)
{
if (array == null || array.Count() < 1)
return "{}";
return "{" + string.Join(",", array) + "}";
}
///
/// To Db String
///
public static string ToDbString(this T[] array)
{
if (array == null || array.Length < 1)
return "{}";
return "{" + string.Join(",", array) + "}";
}
}
}