예제 #1
0
파일: Program.cs 프로젝트: bkhalifa/NeedYou
        static void Main(string[] args)
        {
            var person = new Person
            {
                DateOfBirth = DateTime.Now,
                Email       = "*****@*****.**",
                Name        = "Bilel",
                LastName    = "Ben Khalifa"
            };

            using (var db = new DepotContext())
            {
                var p = db.Persons.ToList();
            }


            Console.ReadKey();
        }
예제 #2
0
 public TrackAccess(DepotContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public SectorAccess(DepotContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #4
0
 public StatusAccess(DepotContext context, Mapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }