public EditCanonicalFormWork(LemmatizationRepository lemmatizationRepository, long canonicalFormId, string text, CanonicalFormType type, string description) : base(lemmatizationRepository) { m_repository = lemmatizationRepository; m_canonicalFormId = canonicalFormId; m_text = text; m_type = type; m_description = description; }
public CreateCanonicalFormWork(LemmatizationRepository lemmatizationRepository, long tokenCharacteristicId, CanonicalFormType type, string text, string description) : base(lemmatizationRepository) { m_repository = lemmatizationRepository; m_tokenCharacteristicId = tokenCharacteristicId; m_type = type; m_text = text; m_description = description; }
public virtual IList <CanonicalForm> GetTypeaheadCannonicalForm(CanonicalFormType type, string query, int recordCount) { var result = GetSession().QueryOver <CanonicalForm>() .WhereRestrictionOn(x => x.Text).IsLike(query, MatchMode.Start) .And(x => x.Type == type) .OrderBy(x => x.Text).Asc .Fetch(SelectMode.Fetch, x => x.HyperCanonicalForm) .Take(recordCount) .List(); return(result); }