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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:23:51+00:00 2026-05-20T23:23:51+00:00

Ok, back with not necessarily a true definition of a question but need some

  • 0

Ok, back with not necessarily a true definition of a question but need some advice on starting a new project. I’ve got an old database that I base most of my projects from (borrowed architecture from previous projects) and it has made life very easy when starting a project. The basic architecture is shown below:

InventoryItem.ID (guid)
InventoryItem.Name (string)

InventoryCategory.ID (guid)
InventoryCategory.Name (string)

RelatedCategory.ID (guid)
RelatedCategory.ParentID (guid)
RelatedCategory.CategoryID (guid)

Now, I wanted to use MVC3 and RAZR for this project but do not see an easy way to do this. It seems as though the examples and blog posts that you read around the web for MVC are simple not enterprise-level examples that basically show a list and show how quick and easy it is for Code-First to generate a database for you that displays a list of items (same as a good ole datasource and datagrid did 7 years ago). That being said, if it’s going to be just as difficult to create these views and editors, why not go with traditional web forms?

Also, to push my point even further, I created a class like the following and it didn’t create the database as I intended either:

public class Item
{
    public int ID { get; set; }

    [Required(ErrorMessage = "A Name Is Required")]
    public string Name { get; set; }

    public string Description { get; set; }

    public List<RelatedCategory> Categories { get; set; }

    public DateTime CreateDate { get; set; }
}

It did not create the database the way I intended. In-other-words, following my architecture in the database. So, would you guys just not recommend using Code-First or would you use MVC at all for something like this? And if so, can you give an example of how to create a templated editor that will allow me to add multiple categories to an item?

  • 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-20T23:23:52+00:00Added an answer on May 20, 2026 at 11:23 pm

    As I said in a comment above. Didn’t want to answer my question from my question but the answer I was looking for deals with virtual properties. A great answer is on this post:

    How do you actually perform relationships in Entity Framework 4 Code-First CTP 5?

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

Sidebar

Related Questions

Question: Is it possible in back end code (not in the code behind but
Before anything, this is not necessarily a question.. But I really want to know
My app got rejected for not setting the do not back up attribute to
I have this query working but it is not returning back exactly what I
I'm not terribly familiar with NoSQL systems, but I remember reading a while back
Not sure what's going on here, but my iPhone apps nav bar shows back
I have a site that features some pages which do not require any post-back
I have this repository that I'd like to share but not necessarily by putting
I have a need to convert images from CMYK to RGB - not necessarily
I enter: # history And AIX comes back with: history: not found. What am

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.