Exemplo n.º 1
0
 public ExpressionSqlBuilder(IDbProviderExpressionHelper provider)
 {
     _provider = provider;
     _ti       = TableInfo.ForType(typeof(T));
     provider.MustNotBeNull();
     _writer = new ExpressionWriter(_sb, provider, _pm);
 }
Exemplo n.º 2
0
 public ExpressionWriter(StringBuilder sb, IDbProviderExpressionHelper provider, ParametersManager pm = null)
 {
     sb.MustNotBeNull();
     _sb = sb;
     if (pm == null)
     {
         pm = new ParametersManager();
     }
     _pm       = pm;
     _provider = provider;
 }