コード例 #1
0
 public override NLGElement BuildElement()
 {
     Phrase.head  = UnaryHead.BuildWord();
     Phrase.compl = Complements
                    .Select(complement => complement.BuildElement())
                    .ToArray();
     return(Phrase);
 }
コード例 #2
0
        public Complements Get(Int64 ixComplement)
        {
            Complements complements = _context.Complements.AsNoTracking().Where(x => x.ixComplement == ixComplement).First();

            complements.Languages      = _context.Languages.Find(complements.ixLanguage);
            complements.LanguageStyles = _context.LanguageStyles.Find(complements.ixLanguageStyle);
            complements.ResponseTypes  = _context.ResponseTypes.Find(complements.ixResponseType);

            return(complements);
        }