public FSSubQuery(FSUtil util) { _util = util; Relations = new FSSubQueryList <TFSSubEntity, TFSEntity>(_util); Conditions = new FSQueryList <TFSSubEntity>(_util); }
public FSSubQueryList(FSUtil util) { FSUtil = util; Entity = util.Create <TFSEntity>(); SubEntity = util.Create <TFSSubEntity>(); }
public FSSubQuery( FSUtil util, Expression <Func <TFSSubEntity, object> > field = null, Expression <Func <TFSSubEntity, object> > from = null, string alias = null, FSSubQueryList <TFSSubEntity, TFSEntity> relations = null, FSQueryList <TFSSubEntity> conditions = null, Func <string, string> fieldModifier = null ) : this(util) { _util = util; if (field != null) { FieldExpr = field; } if (fieldModifier != null) { FieldModifier = fieldModifier; } if (from != null) { FromExpr = from; } if (alias != null) { Alias = alias; } if (relations != null) { Relations = relations; } if (conditions != null) { Conditions = conditions; } }
public string ExtendBranchCondition() { return(FSUtil.ExtendBranch(Entity)); }
public string GetWhereBranch(Expression <Func <TFSEntity, object> > property, string prefix = "AND", string alias = null, bool native = false) { var tableName = Table(property); return(FSUtil.GetWhereBranch(tableName, prefix, alias, native)); }
public string GetWhereBranch(string tableName, string prefix = "AND", string alias = null, bool native = false) { return(tableName.IsNullOrEmpty() ? FSUtil.GetWhereBranch(Entity, prefix, alias, native) : FSUtil.GetWhereBranch(tableName, prefix, alias, native)); }
public string BranchCondition(string tableName, string alias = null, bool native = false) { return(FSUtil.BranchCondition(tableName, alias, native)); }
public string BranchCondition <TProperty>(Expression <Func <TFSEntity, TProperty> > property, string alias = null, bool native = false) { return(FSUtil.BranchCondition(Entity, property, alias, native)); }
public string BranchCondition(bool native = false) { return(FSUtil.BranchCondition(Entity, native)); }
public FSQueryHelper(FSUtil util) { FSUtil = util; Entity = util.Create <TFSEntity>(); }
public FSQueryList(FSUtil util) { FSUtil = util; }
public FSSubQueryHelper(FSUtil util) : base(util) { SubEntity = util.Create <TFSSubEntity>(); }
public static FSQueryList <TFSEntity> QueryList <TFSEntity>(this FSUtil util) where TFSEntity : class, IDevFrameworkDataObject { return(new FSQueryList <TFSEntity>(util)); }