예제 #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();
        }
예제 #2
0
 public List <Mark> LoadMarks() => ICrudable.GetAll <Mark>(x => x.StudentId == Id).ToList();