예제 #1
0
        private string format(DbConstraint entity)
        {
            if (entity == null)
            {
                return("*");
            }

            return(entity.ToString());
        }
예제 #2
0
 internal static ConstraintEntry AnswerWhere(string subject, string question)
 {
     return(new ConstraintEntry(DbConstraint.Entity(subject), question, null));
 }
예제 #3
0
 internal ConstraintEntry(DbConstraint subject, string question, DbConstraint answer)
 {
     Subject  = subject;
     Question = question;
     Answer   = answer;
 }
예제 #4
0
        internal DbConstraint ExtendBySubject(DbConstraint subject, string question)
        {
            var newEntry = new ConstraintEntry(subject, question, null);

            return(new DbConstraint(PhraseConstraint, _entries.Concat(new[] { newEntry }).ToArray()));
        }
예제 #5
0
        internal DbConstraint ExtendByAnswer(string question, DbConstraint answer)
        {
            var newEntry = new ConstraintEntry(null, question, answer);

            return(new DbConstraint(PhraseConstraint, _entries.Concat(new[] { newEntry }).ToArray()));
        }
예제 #6
0
 internal DbConstraint Join(DbConstraint dbConstraint)
 {
     throw new NotImplementedException();
 }