narsil/Tanshu.Accounts.Repository/CustomerBI.cs
2016-03-31 12:27:39 +05:30

18 lines
372 B
C#

using System.Collections.Generic;
using NHibernate;
using Tanshu.Accounts.Entities;
namespace Tanshu.Accounts.Repository
{
public class CustomerBI : UnitOfWork<Customer>
{
public new IList<Customer> List()
{
return _session.QueryOver<Customer>()
.OrderBy(x => x.Name).Asc
.List();
}
}
}