public void SQLTest() { using (var db = new TestGoodMarketDb()) { var crud = new CRUDWrapper <TestEntity>(db); var result = db.Add(new TestEntity() { Name = "Test Entity", SubList = new List <TestEntity2>() { new TestEntity2() { Name = "Sub Entity 1" }, new TestEntity2() { Name = "Sub Entity 2" }, } }); db.SaveChanges(); } }