Ejemplo n.º 1
0
        public bool Like(TypeMemberPath path)
        {
            var thisSeq = new Queue<string>(this.Sections);
            var otherSeq = new Queue<string>(path.Sections);

            while (thisSeq.Count > 0 && otherSeq.Count > 0)
            {
                if (thisSeq.Dequeue() != otherSeq.Dequeue())
                {
                    return false;
                }
            }

            return otherSeq.Count == 0;
        }
Ejemplo n.º 2
0
 public ColumnMap(TypeMemberPath memberPath, StatementBlock statement)
 {
     MemberPath = memberPath;
     Statement = statement;
 }
Ejemplo n.º 3
0
 public IEnumerable<ColumnMap> Like(TypeMemberPath path)
 {
     return queryMap.Where(_ => _.MemberPath.Like(path));
 }
Ejemplo n.º 4
0
 public TypeMemberPath RightShift(string name)
 {
     var result = new TypeMemberPath(Sections);
     result.sections.Insert(0, name);
     return result;
 }