Show / Hide Table of Contents

    Interface IFromQuery<T>

    Interface which describe query for calling From(String) method;

    Inherited Members
    IProjectionQuery<T>.Where(RawSqlString, Object[])
    IProjectionQuery<T>.Where(FormattableString)
    IProjectionQuery<T>.FirstOrDefault(RawSqlString, Object[])
    IProjectionQuery<T>.FirstOrDefault(FormattableString)
    IProjectionQuery<T>.Any(RawSqlString, Object[])
    IProjectionQuery<T>.Any(FormattableString)
    IProjectionQuery<T>.OrderBy(String)
    IProjectionQuery<T>.GroupBy(String)
    IQueryBase<T>.AsDbSet()
    IQueryBase<T>.ExecuteScalar()
    IQueryBase<T>.ExecuteStringScalar()
    IQueryBase<T>.ExecuteScalar<TRet>()
    Namespace: Kros.KORM.Query
    Assembly: Kros.KORM.dll
    Syntax
    public interface IFromQuery<T> : IProjectionQuery<T>, IQueryBase<T>, IOrderedQueryable<T>, IQueryable<T>, IEnumerable<T>, IOrderedQueryable, IQueryable, IEnumerable
    Type Parameters
    Name Description
    T

    Type of entity

    Methods

    From(String)

    Add FROM part to sql query.

    Declaration
    IProjectionQuery<T> From(string table)
    Parameters
    Type Name Description
    System.String table

    Table name or join.

    Returns
    Type Description
    IProjectionQuery<T>

    Query for enumerable models.

    Remarks

    When From method is not call, query take table by T model type.

    Examples
                    var people = database.Query<Person>().From("Person LEFT JOIN Avatar ON (Person.Id = Avatar.PersonId)");
    Exceptions
    Type Condition
    System.ArgumentNullException

    if table is null or white string.

    See Also

    IProjectionQuery<T>
    Back to top KROS a.s.