narsil/Tanshu.Accounts.Repository/MachineLocationBI.cs

18 lines
470 B
C#

using NHibernate;
using Tanshu.Accounts.Entities;
using System.Collections.Generic;
namespace Tanshu.Accounts.Repository
{
public class MachineLocationBI : UnitOfWork<MachineLocation>
{
public IList<string> LocationList()
{
const string query = @"select distinct(pl.Location) from PrintLocation pl order by pl.Location";
var hnq = _session.CreateQuery(query);
return hnq.List<string>();
}
}
}