예제 #1
0
 public FieldReference(string fieldName, Alias alias)
 {
     this.FieldName = fieldName;
     this.Alias     = alias;
 }
예제 #2
0
        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;
        }