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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:25:01+00:00 2026-05-23T01:25:01+00:00

I have created a Conceptual Model in my project using a table in my

  • 0

I have created a Conceptual Model in my project using a table in my database. This table is related to a few other tables in the database which I will not be creating models for in project (tables are large and were designed for another app). Instead, my DBA has created some stored procedures for me to use that will return the related data I need from those tables (using Complex Types).

The Conceptual Model has three properties that are mapped to three ID columns in the table (FKs of related tables). In the View of my project, I am binding the model to a gridview, so the field values with IDs are not very useful. To that end, I added the stored procedures mentioned above and imported the functions to Complex Types and then added Complex Type Properties to the Model for each Complex Type. This didn’t work. I kept getting Error 3004: Problem in mapping fragments…where the Complex Type properties where not mapped to a value in the model.

Here is an example of my table with one of the Complex Type Properties:

DisplayID
StoreID = StoreID, StoreName, StoreLocation **
OrderID
ProductID
DisplayLocation
DisplaySize

** The StoreID being the Complex Property Type and the StoreID, StoreName, StoreLocation makeup the ComplexType; I map the StoreID of the Complex Type to the StoreID of the table in the database.

My scenario above does not really fit the examples I’ve seen of adding Complex Property Types. Examples I’ve seen are like below:

DisplayID
Store = StoreName, StoreLocation
Order
Product
DisplayLocation
DisplaySize

Do I need to change the table structure in the database like the example immediately above? Should I create tables in the database for each of the Complex Types instead? Need to know why so I can convince my DBA to use the columns I need instead of the ID columns and to create new tables in lieu of the stored procedures he created for me.

Thanks in advance for your help!

  • 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-23T01:25:02+00:00Added an answer on May 23, 2026 at 1:25 am

    It appears that you are trying to map a navigation property “StoreID” into the complex type which is not supported (see Complex Type documentation). Complex types is really grouping of scalar properties from your entity (or you can map them to your stored procedure o/p & then they can be used on stand-alone basis).

    I will suggest that you use views instead of stored procedures to get the data (and use views in same way as you will use table in entity model – so store will be an view). I beleive that it would be easy to convince your DBA for views rather than direct access to tables.

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

Sidebar

Related Questions

I have a Table in my DataBase (MS SQL 2008) with a default value
I have 2 POCO classes like Category and Parent. In my conceptual model, I
I have a django model (A) which has a ManyToManyField (types) to another model
This is a conceptual question but I think it does have an 'answer', hopefully
I have a Model called Todo.rb which has an attribute called asset which is
I have a conceptual question to ask: I created a custom dialog (extends Dialog)
I'm having a hard time coming up with a conceptual model for a recurring
There is a conceptual overview of Blocks objects in objective-c within this Apple reference:
I have a couple of Rails apps I'm looking to integrate with OmniAuth, but
First, before anyone screams dupe, I had a hard time summarizing it in a

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.