narsil/Tanshu.Accounts.Repository/BusinessLayer/FoodTableBI.cs

20 lines
414 B
C#
Raw Normal View History

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