Interface IFromQuery<T>
Interface which describe query for calling From(String) method;
Inherited Members
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 |