using OrmTest.Demo; using OrmTest.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OrmTest.Demo { public class Queue : DemoBase { public static void Init() { var db = GetInstance(); db.Insertable(new Student() { Name = "a" }).AddQueue(); db.Insertable(new Student() { Name = "b" }).AddQueue(); var x= db.SaveQueues(); db.Insertable(new Student() { Name = "a" }).AddQueue(); db.Insertable(new Student() { Name = "b" }).AddQueue(); db.Insertable(new Student() { Name = "c" }).AddQueue(); db.Insertable(new Student() { Name = "d" }).AddQueue(); var ar = db.SaveQueuesAsync(); ar.Wait(); db.Queryable().AddQueue(); db.Queryable().AddQueue(); var result = db.SaveQueues(); db.Queryable().AddQueue(); db.Queryable().AddQueue(); db.Queryable().AddQueue(); var result2 = db.SaveQueues(); } } }