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 8047373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:04:32+00:00 2026-06-05T06:04:32+00:00

I have an issue with the project I’m working on. I’m using Entity Framework.

  • 0

I have an issue with the project I’m working on. I’m using Entity Framework. Some quick background on the db model:

public class AssetType{
    public ICollection<Field> Fields { get; set; }
}

public class Field{
    public int Id {get;set;
    public string Name {get;set;
}

Now I’m creating a view that would create a new Asset Type. As part of this process the user must also create all of the fields they want for that type. The issue is that I’m not sure how to represent the list of “Fields” on the page. The idea is that the user can add a new field, or remove one at any time with jQuery.

I can’t figure how the data could be posted back to the server as part of the form. I thought about constructing the list in JSON form, but this seemed a bit messy. Has anyone got any better ideas?

  • 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-06-05T06:04:34+00:00Added an answer on June 5, 2026 at 6:04 am

    You’re going to have problems with this. The object parser does not handle complex objects very well. Collections usually need to be primitive types, or collections of primitive types themselves.

    There are ways to do it, but if this is a requirement for you, I would look at storing your data in a JSON string variable, and parsing it where/ when needed.

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

Sidebar

Related Questions

My problem/issue We are working on an opensource project which we have hosted on
I have developed an application using Entity Framework , SQL Server 2000, Visual Studio
Hi everybody, I have some issue with one of my project. I'm currently developing
I have an issue with building silverlight project on appharbor (some dll are missed).
I have an issue with a class being used in another project. Visual studio
Strange issue I am having with my MVC3 project. I have followed a simple
im having a little issue here. I have MediaElement.js set on my project. It
i have an issue i could use some help with, i have python list
I have a issue with my SVN version control: The project is at the
Hello I have an issue deploying my silverlight project to an existing website (normal

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.