public ITableCache this[ITableIdentifier key]
 {
     get
     {
         return(_dic[key]);
     }
     set
     {
         _dic[key] = value;
     }
 }
Exemple #2
0
 public static JoinClauseNode Join <TSource, TTarget>(
     ITableIdentifier <TSource> source,
     ITableIdentifier <TTarget> target,
     JoinType type,
     ValueNode joinExpr)
 {
     return(new JoinClauseNode(
                new FSharpList <ITableIdentifier>(source, FSharpList <ITableIdentifier> .Empty),
                target,
                type,
                joinExpr.ToOption()));
 }
Exemple #3
0
 public static JoinClauseNode Join <TSource1, TSource2, TTarget>(
     ITableIdentifier <TSource1> source1,
     ITableIdentifier <TSource2> source2,
     ITableIdentifier <TTarget> target,
     JoinType type,
     ValueNode joinExpr)
 {
     return(new JoinClauseNode(
                ListModule.OfArray(new ITableIdentifier[] { source1, source2 }),
                target,
                type,
                joinExpr.ToOption()));
 }
 public bool TryGetValue(ITableIdentifier key, out ITableCache value)
 {
     return(_dic.TryGetValue(key, out value));
 }
 public bool Remove(ITableIdentifier key)
 {
     return(_dic.Remove(key));
 }
 public bool ContainsKey(ITableIdentifier key)
 {
     return(_dic.ContainsKey(key));
 }
 public void Add(ITableIdentifier key, ITableCache value)
 {
     _dic.Add(key, value);
 }
Exemple #8
0
 public static ValueNode Col <TTable>(ITableIdentifier <TTable> r, string columnDef)
 {
     return(ValueNode.NewColumn(new Tuple <string, Type, ITableReference>(columnDef, FigureOutTypeFor(columnDef, r.Reference), r.Reference)));
 }
Exemple #9
0
 public static FromExpressionNode From <TType>(ITableIdentifier <TType> c, params JoinClauseNode[] joins)
 {
     return(new FromExpressionNode(
                new FSharpList <ITableIdentifier>(c, FSharpList <ITableIdentifier> .Empty),
                ListModule.OfArray(joins)));
 }
Exemple #10
0
 public static FromExpressionNode From <TType>(ITableIdentifier <TType> table)
 {
     return(new FromExpressionNode(
                new FSharpList <ITableIdentifier>(table, FSharpList <ITableIdentifier> .Empty),
                FSharpList <JoinClauseNode> .Empty));
 }