Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World, I`m mapping!");

            // Mapping example.
            var students = ICrudable.GetAll <Student>();

            foreach (var student in students)
            {
                var viewModel = StudentViewModel.Map(student);
                Console.WriteLine($"{viewModel.UniqName} - {viewModel.AvgMark}");
            }

            Console.ReadKey();
        }