Esempio n. 1
0
        public IQueryBuilderValues InsertInto <T>(Expression <Func <T, object> > lambda)
        {
            var type          = typeof(T);
            var tableAliasKey = type.Name;

            TableInto = new KeyValuePair <string, Type>(tableAliasKey, type);
            _translator.AddTable(type, TableInto.Key);

            Columns.AddRange(_translator.Translate(typeof(T), lambda, null));
            return(this);
        }
Esempio n. 2
0
 public IQueryBuilderSelectOrWhere SelectAll <T>(string tableAlias = null) =>
 SkipIfError(() =>
             SelectClauses.Add(_translator.Translate(typeof(T), "*", tableAlias))
             );