public void AddFromPart(IQuerySource querySource)
        {
            // from pn in NHQueryFactory.Queryable<PhoneNumber>(session)
            // 例如 {NHibernate.ReLinq.Sample.UnitTests.DomainObjects.PhoneNumber} as {pn}
            var tp = string.Format("{0} as {1}", GetEntityName(querySource), querySource.ItemName);

            Console.WriteLine($"*AddFromPart -> [from] {tp}*");
            FromParts.Add(tp);
        }
Exemplo n.º 2
0
 /// Adds a FROM part of the SQL query.
 ///
 /// If a subquery parts aggregator is open, redirects the call to it instead.
 public void AddFromPart(string fromPart)
 {
     if (_visitingSubQueryExpression)
     {
         _subQueryExpressionPartsAggregator.AddFromPart(fromPart);
     }
     else if (FromParts.Count(x => x.Contains(fromPart)) == 0)
     {
         FromParts.Add(fromPart);
     }
 }
Exemplo n.º 3
0
 public void AddFromPart(N1QlFromQueryPart fromPart)
 {
     FromParts.Add(fromPart);
 }
Exemplo n.º 4
0
 public void AddFromPart(LuceneIndexExpression querySource)
 {
     FromParts.Add(querySource);
 }
Exemplo n.º 5
0
 public void AddFromPart(IQuerySource querySource) => FromParts.Add(string.Format("{0}", querySource.ItemName));
Exemplo n.º 6
0
 public void AddFromPart(IQuerySource querySource)
 {
     FromParts.Add(querySource.ItemName);
 }
Exemplo n.º 7
0
 public void AddFromPart(IQuerySource querySource)
 {
     FromParts.Add($"\"{querySource.ItemType.Name}\" \"{querySource.ItemName}\"");
 }
Exemplo n.º 8
0
 public void AddFromPart(IQuerySource querySource)
 {
     FromParts.Add(string.Format("{0} {1}", GetEntityName(querySource), querySource.ItemName));
 }
 public void AddFromPart(IQuerySource querySource)
 {
     FromParts.Add($"{GetEntityName(querySource)} {querySource.ItemName}");
 }