2011-06-29 20:27:07 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using NHibernate;
|
2011-01-30 07:14:05 +00:00
|
|
|
|
using Tanshu.Accounts.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Repository
|
|
|
|
|
{
|
2014-10-12 09:41:45 +00:00
|
|
|
|
public class CustomerBI : UnitOfWork<Customer>
|
2011-01-30 07:14:05 +00:00
|
|
|
|
{
|
2016-03-31 06:57:39 +00:00
|
|
|
|
public new IList<Customer> List()
|
2011-01-30 07:14:05 +00:00
|
|
|
|
{
|
2014-10-12 09:41:45 +00:00
|
|
|
|
return _session.QueryOver<Customer>()
|
2016-03-31 06:57:39 +00:00
|
|
|
|
.OrderBy(x => x.Name).Asc
|
2014-10-12 09:41:45 +00:00
|
|
|
|
.List();
|
|
|
|
|
}
|
2011-01-30 07:14:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|