Example #1
0
        static void Main(string[] args)
        {
            var testObjects = new List <IDataAccess>()
            {
                new RawDataAccess(),
                new EFDataAccess(),
                new EFCoreDataAccess(),
                new LinqToSqlDataAccess(),
                new DapperDataAccess(),
                new PetaPocoDataAccess(),
                new NPocoDataAccess(),
                new MicroLiteDataAccess(),
                new DebonairDataAccess(),
                new OrmLiteDataAccess()
            };


            //Console.BufferWidth = 100;
            Console.WriteLine($"Begin test of {testObjects.Count} orms");
            Console.WriteLine();

            using (var resultOutput = new ResultOutput())
            {
                var tester = new OrmTester(testObjects, resultOutput);
                tester.RunTest();
            }

            Console.WriteLine();
            Console.WriteLine("Press any key to close.");
            Console.ReadKey();
        }
Example #2
0
 public OrmTester(List <IDataAccess> orms, ResultOutput resultOutput)
 {
     _orms         = orms;
     _resultOutput = resultOutput;
 }