Click here to Skip to main content
15,868,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: case based reasoning Pin
Shameel5-Sep-12 4:26
professionalShameel5-Sep-12 4:26 
GeneralRe: case based reasoning Pin
Pete O'Hanlon5-Sep-12 4:36
subeditorPete O'Hanlon5-Sep-12 4:36 
QuestionLinq2Sql cannot add an entity Pin
kenajelencres4-Sep-12 15:07
kenajelencres4-Sep-12 15:07 
QuestionRe: Linq2Sql cannot add an entity Pin
Eddy Vluggen4-Sep-12 21:45
professionalEddy Vluggen4-Sep-12 21:45 
AnswerRe: Linq2Sql cannot add an entity Pin
kenajelencres4-Sep-12 22:34
kenajelencres4-Sep-12 22:34 
GeneralRe: Linq2Sql cannot add an entity Pin
Eddy Vluggen4-Sep-12 22:44
professionalEddy Vluggen4-Sep-12 22:44 
GeneralRe: Linq2Sql cannot add an entity Pin
Pete O'Hanlon4-Sep-12 22:52
subeditorPete O'Hanlon4-Sep-12 22:52 
GeneralRe: Linq2Sql cannot add an entity Pin
kenajelencres4-Sep-12 23:49
kenajelencres4-Sep-12 23:49 
first, i would like to thank everybody who replied. you really are helping a newbie. i hope one of these days i can become one of you so i can help others too. Smile | :)

yes, the IDNo is the primary key, but i'm not inserting a duplicate. when i add a record, it will add 1 to the last key. i have only one record in the mdf, with IDNo 1. when i add another, it will automatically become 2. the textbox is not enabled, so there's no way you can edit it. but when i clicked on the DONE button, i get that error. Frown | :(

it's really hard to learn programming. D'Oh! | :doh:

googling for some answer, i found this:
This error typically happens when you are creating a new record in a MetaTable with a foreign key relationship and the foreign key record already exists.

what does that mean?

here's the screenshot of my dbml: dbml screenshot
GeneralRe: Linq2Sql cannot add an entity Pin
Pete O'Hanlon4-Sep-12 23:53
subeditorPete O'Hanlon4-Sep-12 23:53 
GeneralRe: Linq2Sql cannot add an entity Pin
kenajelencres5-Sep-12 12:47
kenajelencres5-Sep-12 12:47 
GeneralRe: Linq2Sql cannot add an entity Pin
Pete O'Hanlon5-Sep-12 20:13
subeditorPete O'Hanlon5-Sep-12 20:13 
QuestionStart pages for beginners Pin
mauricemcse4-Sep-12 8:59
mauricemcse4-Sep-12 8:59 
AnswerRe: Start pages for beginners Pin
Eddy Vluggen4-Sep-12 9:03
professionalEddy Vluggen4-Sep-12 9:03 
QuestionRTD help at C# Pin
yatici4-Sep-12 7:39
yatici4-Sep-12 7:39 
AnswerRe: RTD help at C# Pin
Karl Sanford4-Sep-12 9:28
professionalKarl Sanford4-Sep-12 9:28 
GeneralRe: RTD help at C# Pin
yatici4-Sep-12 10:08
yatici4-Sep-12 10:08 
AnswerRe: RTD help at C# Pin
Eddy Vluggen4-Sep-12 22:00
professionalEddy Vluggen4-Sep-12 22:00 
QuestionC# proxy class Pin
sc steinhayse4-Sep-12 6:52
sc steinhayse4-Sep-12 6:52 
AnswerRe: C# proxy class Pin
Pete O'Hanlon4-Sep-12 7:03
subeditorPete O'Hanlon4-Sep-12 7:03 
GeneralRe: C# proxy class Pin
sc steinhayse4-Sep-12 12:29
sc steinhayse4-Sep-12 12:29 
GeneralRe: C# proxy class Pin
Pete O'Hanlon4-Sep-12 22:06
subeditorPete O'Hanlon4-Sep-12 22:06 
QuestionHow to do architecture design? Pin
yu-jian4-Sep-12 5:56
yu-jian4-Sep-12 5:56 
AnswerRe: How to do architecture design? Pin
Pete O'Hanlon4-Sep-12 5:59
subeditorPete O'Hanlon4-Sep-12 5:59 
AnswerRe: How to do architecture design? Pin
Eddy Vluggen4-Sep-12 6:04
professionalEddy Vluggen4-Sep-12 6:04 
GeneralRe: How to do architecture design? Pin
yu-jian4-Sep-12 6:30
yu-jian4-Sep-12 6:30 

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.