public ISelectFieldSelector <TClass> F(string field, string alias = null, string tablealias = null) { var tableAlias = SqlBuilderHelper.GetAliasForType <TClass>(tablealias); AddTableAlias(tableAlias); if (string.IsNullOrEmpty(alias)) { FieldsList.Add($"{tableAlias}.{field}"); } else { FieldsList.Add($"{tableAlias}.{field} as {alias}"); } return(this); }
private string GetAliasForType() { return(Prefix ?? SqlBuilderHelper.GetAliasForType <TClass>()); }