I'm using the code below, but when I call the query, it can only display data of the first row
String query = @"select s.item Type
from TypeTable t1
outer dbo.Split(t1.Type, ',') s"
dt = SQLCon.getDatatableFromSQL(query);
var _Type = (from rw in dt.AsEnumerable()
select new TypeAction
{
Type = rw["Type"].ToString(),
// ActiveStatus = Convert.ToBoolean(rw["ActiveStatus"].ToString())
}).FirstOrDefault();
return _Type ;
Current:
Type A
Expected:
TypeA
TypeB
TypeC