-
Sep 5th, 2018, 12:22 AM
#1
Thread Starter
Hyperactive Member
C# Project / VS Crashes on data source selection
Hi,
not sure if this is relevant to my code or is a visual studio issue. i have a c# project with entity frame work -sql database.
when i select a datasource for an object, VS crashes with error below. i removed and refreshed EFW model from database.
any clues what might be causing this
-
Sep 5th, 2018, 12:39 AM
#2
Re: C# Project / VS Crashes on data source selection
I can barely read that. Please don't post screenshots of text. Post it directly as text.
Based on the error message, it looks like you have code that is trying to access a table that doesn't exist.
-
Sep 5th, 2018, 01:15 AM
#3
Thread Starter
Hyperactive Member
Re: C# Project / VS Crashes on data source selection
Originally Posted by jmcilhinney
I can barely read that. Please don't post screenshots of text. Post it directly as text.
System.data.mappingException: the member PERIODS in the current conceptual model type xxxx is not present in the CLR type xxxx.
-
Sep 5th, 2018, 01:21 AM
#4
Thread Starter
Hyperactive Member
Re: C# Project / VS Crashes on data source selection
Originally Posted by jmcilhinney
I can barely read that. Please don't post screenshots of text. Post it directly as text.
System.data.mappingException: the member PERIODS in the current conceptual model type xxxx is not present in the CLR type xxxx.
-
Sep 6th, 2018, 07:46 AM
#5
Thread Starter
Hyperactive Member
Re: C# Project / VS Crashes on data source selection
apparently somehow my entity model got corrupted, so i removed it and added again. I don't understand how code generation templates work, but it no longer have a constructor woth connection string parrameter and no definition for AddObject() entity methods.. Im lost
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|