Click here to Skip to main content
15,877,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# "Object reference not set to an instance of an object." Pin
V.19-Feb-15 22:39
professionalV.19-Feb-15 22:39 
AnswerRe: c# "Object reference not set to an instance of an object." Pin
mikhail cabliao20-Feb-15 7:25
mikhail cabliao20-Feb-15 7:25 
QuestionMessage Removed Pin
19-Feb-15 8:33
professionalN_tro_P19-Feb-15 8:33 
AnswerRe: Serializable objects into Entity Framework Pin
Gerry Schmitz19-Feb-15 12:55
mveGerry Schmitz19-Feb-15 12:55 
GeneralMessage Removed Pin
19-Feb-15 16:53
professionalN_tro_P19-Feb-15 16:53 
GeneralRe: Serializable objects into Entity Framework Pin
Gerry Schmitz19-Feb-15 17:59
mveGerry Schmitz19-Feb-15 17:59 
GeneralMessage Removed Pin
23-Feb-15 3:55
professionalN_tro_P23-Feb-15 3:55 
GeneralRe: Serializable objects into Entity Framework Pin
Gerry Schmitz23-Feb-15 5:31
mveGerry Schmitz23-Feb-15 5:31 
I don't know what you mean when you say "... EF does not want the whole object but the ID only have the objects.".

EF will generate a primary key for a property that is or ends in "ID".

A relation is simply a statement such as:
public IList<Order> Orders { get; set; }

EF will create (entity model) relationships using the above "ID's" and "relation" statements.

I haven't used "xsd2Code" but when I paste "layered XML" in Visual Studio using Edit | Paste Special | Paste XML as classes, all the "layers" are converted to classes and a corresponding "relation" statement.

I've used the above to generate classes into which XML from 3rd-party web services was de-serialized; with no refactoring needed.
QuestionHow to run a javascript function from a website on C# Program Pin
jairomarcel19-Feb-15 0:47
jairomarcel19-Feb-15 0:47 
Questionmanage network printers Pin
Blue_Boy18-Feb-15 23:19
Blue_Boy18-Feb-15 23:19 
AnswerRe: manage network printers Pin
Mycroft Holmes19-Feb-15 0:33
professionalMycroft Holmes19-Feb-15 0:33 
AnswerRe: manage network printers Pin
Gerry Schmitz20-Feb-15 13:05
mveGerry Schmitz20-Feb-15 13:05 
AnswerRe: manage network printers Pin
Mohammad Reza Valadkhani21-Feb-15 1:53
professionalMohammad Reza Valadkhani21-Feb-15 1:53 
Questiontextbox63 stays empty Pin
masterofc18-Feb-15 23:08
masterofc18-Feb-15 23:08 
AnswerRe: textbox63 stays empty Pin
OriginalGriff18-Feb-15 23:16
mveOriginalGriff18-Feb-15 23:16 
AnswerRe: textbox63 stays empty Pin
masterofc18-Feb-15 23:28
masterofc18-Feb-15 23:28 
GeneralRe: textbox63 stays empty Pin
OriginalGriff18-Feb-15 23:30
mveOriginalGriff18-Feb-15 23:30 
GeneralRe: textbox63 stays empty Pin
masterofc19-Feb-15 0:28
masterofc19-Feb-15 0:28 
QuestionHep me to create signup windows app Pin
Member 1141361218-Feb-15 22:49
Member 1141361218-Feb-15 22:49 
AnswerRe: Hep me to create signup windows app Pin
OriginalGriff18-Feb-15 23:09
mveOriginalGriff18-Feb-15 23:09 
AnswerRe: Hep me to create signup windows app Pin
Pete O'Hanlon18-Feb-15 23:27
mvePete O'Hanlon18-Feb-15 23:27 
Questionabout dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
Muthuraj.M18-Feb-15 18:35
Muthuraj.M18-Feb-15 18:35 
AnswerRe: about dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
OriginalGriff18-Feb-15 21:44
mveOriginalGriff18-Feb-15 21:44 
AnswerRe: about dynamic form and controls, database fields created by user throw c sharp .net windows application Pin
Richard MacCutchan18-Feb-15 22:04
mveRichard MacCutchan18-Feb-15 22:04 
QuestionWcf Service connection to SQL Database Pin
happyghoos18-Feb-15 12:21
happyghoos18-Feb-15 12:21 

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.