LINQ
List<Object> arr= new List<Object>();
using (DataBaseDataContext db = new DataBaseDataContext())
{
//where like
arrR = (from o in db.table
where o.field.Contains("text")
//group
/*where o.field== "text"
group o.field1 new Obj (){
Attribute1 = o.field1,
Attribute2 = o.field2,
Attribute3 = o.field3
} into g
//orderby g.Key.field1
select g.Key).ToList();*/
select o).ToList();
}Select
Insert
Update
Delete
Join
題外話
WHERE
order by
取幾筆
整數清單 轉 字串清單
Last updated