/// <summary> /// Constructor /// </summary> public QueryBuilder(eTYPE pType, Model pModel, IEnumerable<string> pFields) : this(pType, pModel) { if (pFields != null) { pFields .ToList() .ForEach(pStr=>_fields.Add(new FieldValue(pStr))); } }
/// <summary> /// Constructor /// </summary> public QueryBuilder(eTYPE pType, Model pModel) { _where = new Conditions(this); _type = pType; _model = pModel; Joins = new Joinable(this); _parameters = new Parameters(this, pModel); _variables = new Parameters(this, pModel); _fields = new Fields(this); _duplicate = new Fields(this); _groups = new Fields(this); Order = new List<KeyValuePair<eDIR, string>>(); Limit = 0; Offset = 0; Locked = false; }