От: | IT | linq2db.com | |
Дата: | 15.03.11 14:42 | ||
Оценка: | 33 (3) |
var myTable = new SqlTable
{
Name = "my_table",
Fields =
{
new SqlField { Name = "id" },
new SqlField { Name = "value" },
new SqlField { Name = "purchase_date" }
}
};
var q = new SqlQuery();
q
.Select
.Expr (new SqlFunction("MyFunction", myTable["purchase_date"], myTable["id"]))
.Field(myTable["id"])
.From
.Table(myTable)
;