示例#1
0
 public void RegisterModelBinders(ModelBinderDictionary modelBinders)
 {
     modelBinders[typeof(ArchiveData)] = new ArchiveDataModelBinder();
     modelBinders[typeof(OneMonthDateRangeAddress)] = new OneMonthDateRangeAddressModelBinder();
     modelBinders[typeof(BlogAddress)]        = new BlogAddressModelBinder();
     modelBinders[typeof(BlogInput)]          = new BlogInputModelBinder();
     modelBinders[typeof(BlogSearchCriteria)] = new BlogSearchCriteriaModelBinder();
     modelBinders[typeof(PostAddress)]        = new PostAddressModelBinder();
     modelBinders[typeof(PostInput)]          = new PostInputModelBinder();
     modelBinders[typeof(PostCommentAddress)] = new PostCommentAddressModelBinder();
     modelBinders[typeof(FileAddress)]        = new FileAddressModelBinder();
     modelBinders[typeof(FileInput)]          = new FileInputModelBinder();
     modelBinders[typeof(FileContentInput)]   = new FileContentInputModelBinder();
 }
 public void RegisterModelBinders(ModelBinderDictionary modelBinders)
 {
     modelBinders[typeof(ArchiveData)]        = new ArchiveDataModelBinder();
     modelBinders[typeof(Area)]               = new AreaModelBinder();
     modelBinders[typeof(Comment)]            = new CommentModelBinder();
     modelBinders[typeof(PostBase)]           = new PostBaseModelBinder();
     modelBinders[typeof(Post)]               = new PostModelBinder();
     modelBinders[typeof(Page)]               = new PageModelBinder();
     modelBinders[typeof(SearchCriteria)]     = new SearchCriteriaModelBinder();
     modelBinders[typeof(Tag)]                = new TagModelBinder();
     modelBinders[typeof(UserBase)]           = new UserBaseModelBinder();
     modelBinders[typeof(Site)]               = new SiteModelBinder();
     modelBinders[typeof(Plugin)]             = new PluginModelBinder();
     modelBinders[typeof(AreaSearchCriteria)] = new AreaSearchCriteriaModelBinder();
     modelBinders[typeof(User)]               = new UserModelBinder();
     modelBinders[typeof(PostAddress)]        = new PostAddressModelBinder();
     modelBinders[typeof(FileAddress)]        = new FileAddressModelBinder();
     modelBinders[typeof(FileInput)]          = new FileInputModelBinder();
     modelBinders[typeof(FileContentInput)]   = new FileContentInputModelBinder();
 }