Click here to Skip to main content
15,886,137 members
Home / Discussions / Database
   

Database

 
AnswerRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes15-Nov-09 20:04
professionalMycroft Holmes15-Nov-09 20:04 
GeneralRe: problem with Oracle and ole auto generate update Pin
maryam.saboor15-Nov-09 20:48
professionalmaryam.saboor15-Nov-09 20:48 
GeneralRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes15-Nov-09 21:36
professionalMycroft Holmes15-Nov-09 21:36 
GeneralRe: problem with Oracle and ole auto generate update Pin
maryam.saboor15-Nov-09 22:11
professionalmaryam.saboor15-Nov-09 22:11 
GeneralRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes16-Nov-09 0:26
professionalMycroft Holmes16-Nov-09 0:26 
AnswerRe: problem with Oracle and ole auto generate update Pin
maryam.saboor16-Nov-09 8:03
professionalmaryam.saboor16-Nov-09 8:03 
GeneralRe: problem with Oracle and ole auto generate update Pin
ExploreLife6-Jun-12 16:27
ExploreLife6-Jun-12 16:27 
QuestionMapping a foreign key participating in multiple relationships Pin
MBursill15-Nov-09 13:12
MBursill15-Nov-09 13:12 
I have a large database with a subset of five tables described here:

http://www.senselessdestruction.com/AssociationProblem.jpg[^]

Using the Entity Framework, when creating an entity model based on those tables I get the error:

Foreign key constraint 'FK_UserContractCompanies_TimesheetContractEntries' has been omitted from the storage model. Column 'CompanyId' of table 'SMSModel.Store.UserContractCompanies' is a foreign key participating in multiple relationships. A one-to-one Entity Model will not validate since data inconsistency is possible.

The intended business logic is to have a subset of users as contract users. A contract user arrives at the workplace, can sign in (an entry is made in the TimesheetEntries table), work for X hours and then sign out. For any user that is a contract user, the TimesheetContractEntries table exists to record their times broken into two records. The first record would be start and end times showing the first 8.5 hours of work, without a related ContractCompanyId, and the second record would be the remaining time with a related ContractCompanyId.

I'm using VS 2010 Beta 2, and have tried including foreign key columns in the model. Is the schema of my database flawed or is there anyway to overcome this limitation in the EF?

-Mike.
Questionhow to stop long roll back on SQL server 2005 , Pin
i gr815-Nov-09 8:05
i gr815-Nov-09 8:05 
AnswerRe: how to stop long roll back on SQL server 2005 , Pin
Mycroft Holmes15-Nov-09 13:41
professionalMycroft Holmes15-Nov-09 13:41 
QuestionHow to store multiple languages in oracle 10g? Pin
n3ophyt315-Nov-09 0:09
n3ophyt315-Nov-09 0:09 
AnswerRe: How to store multiple languages in oracle 10g? Pin
Richard MacCutchan15-Nov-09 1:37
mveRichard MacCutchan15-Nov-09 1:37 
AnswerRe: How to store multiple languages in oracle 10g? Pin
Niladri_Biswas15-Nov-09 2:31
Niladri_Biswas15-Nov-09 2:31 
QuestionMSSQL Server 2005 ... Install Issue Pin
PDTUM14-Nov-09 15:19
PDTUM14-Nov-09 15:19 
AnswerRe: MSSQL Server 2005 ... Install Issue Pin
Shameel16-Nov-09 3:40
professionalShameel16-Nov-09 3:40 
AnswerRe: MSSQL Server 2005 ... Install Issue Pin
PDTUM16-Nov-09 5:01
PDTUM16-Nov-09 5:01 
QuestionMultiple Select Statement in stored procedure Pin
deepseeindeepsy14-Nov-09 0:10
deepseeindeepsy14-Nov-09 0:10 
AnswerRe: Multiple Select Statement in stored procedure Pin
i.j.russell14-Nov-09 1:09
i.j.russell14-Nov-09 1:09 
AnswerRe: Multiple Select Statement in stored procedure Pin
Mycroft Holmes14-Nov-09 2:12
professionalMycroft Holmes14-Nov-09 2:12 
AnswerRe: Multiple Select Statement in stored procedure Pin
Niladri_Biswas14-Nov-09 17:37
Niladri_Biswas14-Nov-09 17:37 
QuestionTotal Count Pin
.NET- India 13-Nov-09 21:38
.NET- India 13-Nov-09 21:38 
AnswerRe: Total Count Pin
Mycroft Holmes14-Nov-09 2:08
professionalMycroft Holmes14-Nov-09 2:08 
AnswerRe: Total Count Pin
Niladri_Biswas14-Nov-09 17:41
Niladri_Biswas14-Nov-09 17:41 
QuestionSSRS 2005 to SSRS 2008 question Pin
ranro13-Nov-09 15:58
ranro13-Nov-09 15:58 
Questionsql server 2008 Pin
AndyInUK13-Nov-09 5:38
AndyInUK13-Nov-09 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.