示例#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();