Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7555659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:39:53+00:00 2026-05-30T11:39:53+00:00

I am trying to bind to a rather large SQL database table with over

  • 0

I am trying to bind to a rather large SQL database table with over 100 fields. I’m doing basic CRUD operations, and when it comes to editing, I’ve decided to split up the editing into two pages (Views), just to keep the page lengths manageable and user-friendly. I’m using MVC 3 (C#) with the Entity Framework to map the database.

My question – how do I bind to “half” of this table in each ActionResult? There are two issues – I am validating most of the inputs using a partial class and the MetadataType attribute. How do I split up the validations so that one page is not validating fields for the other? Secondly, how do I bind to only half of the properties of the table? Many are non-nullable and would trigger database errors if they attempted to bind without corresponding form inputs.

I know I could use [Bind(Include=”…”)] or [Bind(Exclude=”…”)] in my two ActionResults, but it seems pretty illogical and non-DRY to list 50 individual fields in an include or exclude tag. Is there a better way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:39:54+00:00Added an answer on May 30, 2026 at 11:39 am

    I think I may have misunderstood this… after testing it looks like the MVC model binding allows for partial binding after all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to retrieve data from 2 columns of my database table and bind
Im trying to bind a list with datetime objects to my repeater. if (e.Item.ItemType
I'm trying to bind a list of custom objects to a WPF Image like
I'm trying to bind the following shortcut: Ctrl + W to close tabs How
I'm trying to bind controls in a WPF form to an interface and I
I am trying to bind an event to a method of a particular instance
I'm trying to bind an ASP.net DropDownList to the results of an entity framework
I'm trying to bind a list of integers into an SQLTemplate IN clause like
I'm trying to bind my view to my view model without DataObjectProvider. The following
I am trying to bind the Text of a TextBox named 'txtImage' to an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.