Esempio n. 1
0
        public MediaController(LibProjectContext context)
        {
            _context = context;

            if (_context.Media.Count() == 0)
            {
                _context.Media.Add(new Media {
                    Title = "The Eye of the World", Author = "Robert Jordan", PublisherId = null, CopyRightDate = DateTime.Parse("1990-01-28 12:00"), Characteristics = "Pg 688", Summary = "In the Third Age, an age of prophecy when the world and time themselves hang in the balance, the Dark One, imprisoned by the Creator, is stirring in Shayol Ghul.", InActive = null, InActiveDate = null
                });
                _context.SaveChanges();
            }
        }
        public GenresController(LibProjectContext context)
        {
            _context = context;

            if (_context.Genre.Count() == 0)
            {
                _context.Genre.Add(new Genre {
                    Id = "sf", Name = "Science Fiction"
                });
                _context.SaveChanges();
            }
        }
        public EmailsController(LibProjectContext context)
        {
            _context = context;

            if (_context.Email.Count() == 0)
            {
                _context.Email.Add(new Email {
                    Addr = "*****@*****.**"
                });
                _context.SaveChanges();
            }
        }
        public AddrTypesController(LibProjectContext context)
        {
            _context = context;

            if (_context.AddrType.Count() == 0)
            {
                _context.AddrType.Add(new AddrType {
                    Id = "h", Type = "Home"
                });
                _context.SaveChanges();
            }
        }
Esempio n. 5
0
        public MediaFormatsController(LibProjectContext context)
        {
            _context = context;

            if (_context.MediaFormat.Count() == 0)
            {
                _context.MediaFormat.Add(new MediaFormat {
                    Id = "h", Format = "Hard Bound", InActive = null, InActiveDate = null
                });
                _context.SaveChanges();
            }
        }
        public AdultCheckOutsController(LibProjectContext context)
        {
            _context = context;

            if (_context.CheckOut.Count() == 0)
            {
                _context.CheckOut.Add(new CheckOut {
                    AdultId = 1, JuvenileId = null, MediaCopyId = 1, DueDate = DateTime.Parse("2018-01-13")
                });
                _context.SaveChanges();
            }
        }
Esempio n. 7
0
        public AdultMembersController(LibProjectContext context)
        {
            _context = context;

            if (_context.AdultMember.Count() == 0)
            {
                _context.AdultMember.Add(new AdultMember {
                    FirstName = "John", LastName = "Doe", MidInit = "S", Suffix = null, Birthdate = DateTime.Parse("2000-12-25 12:00"), InActive = null, InActiveDate = null
                });
                _context.SaveChanges();
            }
        }
        public JveneilMembersController(LibProjectContext context)
        {
            _context = context;

            if (_context.JuvenileMember.Count() == 0)
            {
                _context.JuvenileMember.Add(new JuvenileMember {
                    AdultId = 1, FirstName = "John", LastName = "Doe", MidInit = "S", Suffix = "Jr", Birthdate = DateTime.Parse("2017-12-25 12:00"), InActive = null, InActiveDate = null
                });
                _context.SaveChanges();
            }
        }
 public SeriesController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 10
0
 public PhoneTypesController(LibProjectContext context)
 {
     _context = context;
 }
 public AdultMemberAddressesController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 12
0
 public JuvenileMembersController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 13
0
 public GenresController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 14
0
 public MediaTypesController(LibProjectContext context)
 {
     _context = context;
 }
 public MediaContentsController(LibProjectContext context)
 {
     _context = context;
 }
 public AddrTypesController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 17
0
 public EmailsController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 18
0
 public AboutsController(LibProjectContext context)
 {
     _context = context;
 }
Esempio n. 19
0
 public PublishersController(LibProjectContext context)
 {
     _context = context;
 }
 public MemberPhonesController(LibProjectContext context)
 {
     _context = context;
 }
 public CheckOutsController(LibProjectContext context)
 {
     _context = context;
 }