| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- namespace SqlSugar
- {
- public class Expressionable<T> where T : class, new()
- {
- Expression<Func<T, bool>> _exp = null;
- public Expressionable<T> And(Expression<Func<T, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T> AndIF(bool isAnd, Expression<Func<T, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T> Or(Expression<Func<T, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T> OrIF(bool isOr, Expression<Func<T, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = it => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2> where T : class, new() where T2 : class, new()
- {
- Expression<Func<T, T2, bool>> _exp = null;
- public Expressionable<T, T2> And(Expression<Func<T, T2, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2> AndIF(bool isAnd, Expression<Func<T, T2, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2> Or(Expression<Func<T, T2, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2> OrIF(bool isOr, Expression<Func<T, T2, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3> where T : class, new() where T2 : class, new() where T3 : class, new()
- {
- Expression<Func<T, T2, T3, bool>> _exp = null;
- public Expressionable<T, T2, T3> And(Expression<Func<T, T2, T3, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3> AndIF(bool isAnd, Expression<Func<T, T2, T3, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3> Or(Expression<Func<T, T2, T3, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3> OrIF(bool isOr, Expression<Func<T, T2, T3, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new()
- {
- Expression<Func<T, T2, T3, T4, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4> And(Expression<Func<T, T2, T3, T4, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4> Or(Expression<Func<T, T2, T3, T4, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5> And(Expression<Func<T, T2, T3, T4, T5, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5> Or(Expression<Func<T, T2, T3, T4, T5, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6> And(Expression<Func<T, T2, T3, T4, T5, T6, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6> Or(Expression<Func<T, T2, T3, T4, T5, T6, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6,T7> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6,T7> And(Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6,T7, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6,T7> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6,T7> Or(Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6,T7, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6,T7> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6,t7) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6, T7 , T8> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6, T7,T8> And(Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7,T8> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8> Or(Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7,T8> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6, t7,t8) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6, T7, T8,T9> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8,T9> And(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8,T9> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8,T9> Or(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6, t7, t8,t9) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> And(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Or(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6, t7, t8, t9, t10) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> And(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Or(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6, t7, t8, t9, t10,t11) => true;
- return _exp;
- }
- }
- public class Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new()
- {
- Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> _exp = null;
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> And(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>>(Expression.AndAlso(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> AndIF(bool isAnd, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> exp)
- {
- if (isAnd)
- And(exp);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Or(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> exp)
- {
- if (_exp == null)
- _exp = exp;
- else
- _exp = Expression.Lambda<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>>(Expression.OrElse(_exp.Body, exp.Body), _exp.Parameters);
- return this;
- }
- public Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> OrIF(bool isOr, Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> exp)
- {
- if (isOr)
- Or(exp);
- return this;
- }
- public Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> ToExpression()
- {
- if (_exp == null)
- _exp = (it, t2, t3, t4, T5, t6, t7, t8, t9, t10, t11,t12) => true;
- return _exp;
- }
- }
- public class Expressionable
- {
- public static Expressionable<T> Create<T>() where T : class, new()
- {
- return new Expressionable<T>();
- }
- public static Expressionable<T, T2> Create<T, T2>() where T : class, new() where T2 : class, new()
- {
- return new Expressionable<T, T2>();
- }
- public static Expressionable<T, T2, T3> Create<T, T2, T3>() where T : class, new() where T2 : class, new() where T3 : class, new()
- {
- return new Expressionable<T, T2, T3>();
- }
- public static Expressionable<T, T2, T3, T4> Create<T, T2, T3, T4>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new()
- {
- return new Expressionable<T, T2, T3, T4>();
- }
- public static Expressionable<T, T2, T3, T4, T5> Create<T, T2, T3, T4, T5>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6> Create<T, T2, T3, T4, T5, T6>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6,T7> Create<T, T2, T3, T4, T5, T6,T7>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6,T7>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6, T7,T8> Create<T, T2, T3, T4, T5, T6, T7,T8>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6, T7,T8>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9> Create<T, T2, T3, T4, T5, T6, T7, T8,T9>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> Create<T, T2, T3, T4, T5, T6, T7, T8, T9,T10>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new() where T10 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> Create<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new() where T10 : class, new() where T11 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11>();
- }
- public static Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> Create<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12>() where T : class, new() where T2 : class, new() where T3 : class, new() where T4 : class, new() where T5 : class, new() where T6 : class, new() where T7 : class, new() where T8 : class, new() where T9 : class, new() where T10 : class, new() where T11 : class, new() where T12 : class, new()
- {
- return new Expressionable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12>();
- }
- }
- }
|