using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Service
{
///
///
///
public static class BasicExtensions
{
///
///
///
public static List ToEntityList(this List list)
{
if (list == null || list.Count() < 1)
return default;
return list.Select(x => new Entity.SpecialPropertyMappingSelected() { CorpID=x.CorpID,CatalogID=x.CatalogID,PropertyID=x.PropertyID, Selected = x.Selected }).ToList();
}
///
///
///
public static List ToEntityList(this List list)
{
if (list == null || list.Count() < 1)
return default;
return list.Select(x => new Entity.SpecialPropertyValueSetter() { CorpID = x.CorpID, ObjectType = x.ObjectType,ObjectID=x.ObjectID, PropertyID = x.PropertyID,PropertyValue=x.PropertyValue }).ToList();
}
}
}