コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="context"></param>
 public GenderController(ILogger <GenderController> logger, ScbDbContext context)
 {
     _logger       = logger;
     _context      = context;
     _genderDbSet  = _context.Set <Gender>();
     _newBornDbSet = _context.Set <NewBorn>();
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="context"></param>
 public NewBornController(ILogger <NewBornController> logger, ScbDbContext context)
 {
     _logger       = logger;
     _context      = context;
     _newBornDbSet = _context.Set <NewBorn>();
 }