C# Класс Agribusiness.Web.Services.FirmService

Наследование: IFirmService
Показать файл Открыть проект

Открытые методы

Метод Описание
FirmService ( IRepository firmRepository ) : System
GetAllFirms ( ) : IEnumerable

Gets a list of firms with the latest revision of each

eventually this would be the ideal query, until nhibernate supports it from firm in Firms where (from a in Firms group a by a.FirmCode into b select b.Max(c=>c.Id) ).Contains(firm.Id) select firm

GetFirm ( System.Guid firmCode ) : Firm

Gets the latest revision of a specific firm

Описание методов

FirmService() публичный Метод

public FirmService ( IRepository firmRepository ) : System
firmRepository IRepository
Результат System

GetAllFirms() публичный Метод

Gets a list of firms with the latest revision of each
eventually this would be the ideal query, until nhibernate supports it from firm in Firms where (from a in Firms group a by a.FirmCode into b select b.Max(c=>c.Id) ).Contains(firm.Id) select firm
public GetAllFirms ( ) : IEnumerable
Результат IEnumerable

GetFirm() публичный Метод

Gets the latest revision of a specific firm
public GetFirm ( System.Guid firmCode ) : Firm
firmCode System.Guid
Результат Firm