public FieldReference(string fieldName, Alias alias) { this.FieldName = fieldName; this.Alias = alias; }
public static IQueryLite<TEntity> WithAlias<TEntity>(this IQueryLite<TEntity> query, Alias alias) { if (query == null) throw new ArgumentNullException(nameof(query)); if (alias == null) throw new ArgumentNullException(nameof(alias)); if (query.EntityType != alias.EntityType) { throw new ArgumentException("The entity type of the alias must be the same as the entity type of the query"); } query.Alias = alias; return query; }