static void Main(string[] args) { Console.WriteLine("Many-to-Many test:"); // Perform the insert, update and query operations to entities // with many to many association. Many2ManyClass.Many2ManyTest(); Console.WriteLine(); Console.WriteLine("One-to-Many test:"); // Perform the insert, update and query operations to entities // with one to many association. One2ManyClass.One2ManyTest(); Console.WriteLine(); Console.WriteLine("One-to-One test:"); // Perform the insert, update and query operations to entities // with one to one association. One2OneClass.One2OneTest(); Console.WriteLine(); Console.WriteLine("Table merging test:"); // Perform the query operation to merged entity TableMergingClass.TableMergingTest(); Console.WriteLine(); Console.WriteLine("Table splitting test:"); // Perform the insert and query operations in separate table TableSplittingClass.TableSplittingTest(); Console.WriteLine(); Console.WriteLine("Table-Per-Type inheritance test:"); // Perform the query operation to entities in TablePerHierarchy TPTClass.TPTTest(); Console.WriteLine(); Console.WriteLine("Table-Per-Hierarchy inheritance test:"); // Perform the query operation to entities in TablePerType TPHClass.TPHTest(); Console.ReadLine(); }
static void Main(string[] args) { Console.WriteLine("Many-to-Many test:"); // 通过多对多关联对实体进行插入,更新和查询操作 Many2ManyClass.Many2ManyTest(); Console.WriteLine(); Console.WriteLine("One-to-Many test:"); // 通过一对多关联对实体进行插入,更新和查询操作 One2ManyClass.One2ManyTest(); Console.WriteLine(); Console.WriteLine("One-to-One test:"); // 通过一对一关联对实体进行插入,更新和查询操作 One2OneClass.One2OneTest(); Console.WriteLine(); Console.WriteLine("Table merging test:"); // 执行查询操作来合并实体 TableMergingClass.TableMergingTest(); Console.WriteLine(); Console.WriteLine("Table splitting test:"); // 在单独的表中执行插入和查询操作 TableSplittingClass.TableSplittingTest(); Console.WriteLine(); Console.WriteLine("Table-Per-Type inheritance test:"); // 在TablePerHierarchy中对实体进行查询操作 TPTClass.TPTTest(); Console.WriteLine(); Console.WriteLine("Table-Per-Hierarchy inheritance test:"); // 在TablePerType中对实体进行查询操作 TPHClass.TPHTest(); Console.ReadLine(); }