示例#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;
        }
示例#2
0
 public ColumnMap(TypeMemberPath memberPath, StatementBlock statement)
 {
     MemberPath = memberPath;
     Statement = statement;
 }
 public IEnumerable<ColumnMap> Like(TypeMemberPath path)
 {
     return queryMap.Where(_ => _.MemberPath.Like(path));
 }
示例#4
0
 public TypeMemberPath RightShift(string name)
 {
     var result = new TypeMemberPath(Sections);
     result.sections.Insert(0, name);
     return result;
 }