コード例 #1
0
        public CreateModel(MemorialContext context, IConfiguration config)
        {
            _context       = context;
            _fileSizeLimit = config.GetValue <long>("FileSizeLimit");
            // To save physical files to path provided by configuration:
            _targetFilePath = config.GetValue <string>("StoredFilesPath");

            // To save physical files to temporary files folder, use:
            //_targetFilePath = Path.GetTempPath();
        }
コード例 #2
0
 public EditModel(MemorialContext memorialContext, IntermentContext intermentContext)
 {
     _memorialContext  = memorialContext;
     _intermentContext = intermentContext;
 }
コード例 #3
0
 public DeleteModel(MemorialContext memorialContext, IntermentContext intermentContext)
 {
     _memorialContext  = memorialContext;
     _intermentContext = intermentContext;
 }
コード例 #4
0
 public IndexModel(MemorialContext context)
 {
     _context = context;
 }