Skip to content

SQL Equivalents

ubrgw edited this page Apr 22, 2015 · 2 revisions

// TODO write this wiki page.. contributions welcome!

embark sql
cats.GetAll() select * from cats
chips.Get(522) select * from chips where id = 522
players.GetWhere(new { Name = "Yamate", Age = 22}) select * from players where Name = 'Yamate' and Age = 22
planes.GetBetween(new { Velocity = 500, Cost = 3000}, new { Velocity = double.MaxValue, Cost = 5000}) select * from planes where velocity >= 500 and cost between 3000 and 5000
Clone this wiki locally