Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
QuestionI Am Sorry To Ask Again Pin
sanforjackass12-Jul-09 23:59
sanforjackass12-Jul-09 23:59 
AnswerRe: I Am Sorry To Ask Again Pin
J4amieC13-Jul-09 0:04
J4amieC13-Jul-09 0:04 
AnswerRe: I Am Sorry To Ask Again Pin
Vasudevan Deepak Kumar13-Jul-09 0:08
Vasudevan Deepak Kumar13-Jul-09 0:08 
GeneralRe: I Am Sorry To Ask Again Pin
mohit.monga8713-Jul-09 1:20
mohit.monga8713-Jul-09 1:20 
QuestionToolTip For Image Pin
rhtbhegade12-Jul-09 23:45
rhtbhegade12-Jul-09 23:45 
AnswerRe: ToolTip For Image Pin
Henry Minute12-Jul-09 23:50
Henry Minute12-Jul-09 23:50 
GeneralRe: ToolTip For Image Pin
rhtbhegade13-Jul-09 0:10
rhtbhegade13-Jul-09 0:10 
QuestionResource Pin
john563212-Jul-09 23:35
john563212-Jul-09 23:35 
AnswerRe: Resource Pin
Manas Bhardwaj12-Jul-09 23:42
professionalManas Bhardwaj12-Jul-09 23:42 
GeneralRe: Resource Pin
Muhammad Mazhar13-Jul-09 0:30
Muhammad Mazhar13-Jul-09 0:30 
QuestionImages in Resources don't show Pin
Nigel Mackay12-Jul-09 23:12
Nigel Mackay12-Jul-09 23:12 
AnswerRe: Images in Resources don't show Pin
Richard Andrew x6413-Jul-09 2:58
professionalRichard Andrew x6413-Jul-09 2:58 
GeneralRe: Images in Resources don't show Pin
Nigel Mackay13-Jul-09 3:16
Nigel Mackay13-Jul-09 3:16 
GeneralRe: Images in Resources don't show Pin
Richard Andrew x6413-Jul-09 3:20
professionalRichard Andrew x6413-Jul-09 3:20 
GeneralRe: Images in Resources don't show Pin
Nigel Mackay13-Jul-09 3:36
Nigel Mackay13-Jul-09 3:36 
QuestionConnectivity Pin
shevya12-Jul-09 23:07
shevya12-Jul-09 23:07 
AnswerRe: Connectivity [modified] Pin
dan!sh 12-Jul-09 23:14
professional dan!sh 12-Jul-09 23:14 
AnswerRe: Connectivity Pin
rhtbhegade12-Jul-09 23:38
rhtbhegade12-Jul-09 23:38 
AnswerRe: Connectivity Pin
<<Tash18>>13-Jul-09 0:18
<<Tash18>>13-Jul-09 0:18 
GeneralRe: Connectivity Pin
shevya13-Jul-09 21:24
shevya13-Jul-09 21:24 
GeneralRe: Connectivity Pin
<<Tash18>>13-Jul-09 22:01
<<Tash18>>13-Jul-09 22:01 
GeneralRe: Connectivity Pin
<<Tash18>>14-Jul-09 1:17
<<Tash18>>14-Jul-09 1:17 
GeneralRe: Connectivity Pin
shevya14-Jul-09 20:50
shevya14-Jul-09 20:50 
QuestionEntity Framework Question Pin
Juvil John12-Jul-09 22:56
Juvil John12-Jul-09 22:56 
How do I instantiate an EntityObject with a Referencekeys for browsable objects.

I'd like to do an XML to LINQ then convert it back as an entity object. now my problem is when I do this.

GIVEN:
XML from store procedure
<Peoples>
     <People>
          <Name>name1</Name>
          <Work><Work>
          <Nickname>name1nick</Nickname>
     </People>
</Peoples>

People --> EntityObject
People.Work --> Browsable Object (one to many relation)
People.NickName --> Extended property, not a EdmScalarPropertyAttribute (just a simple custom scalar string property)

var list = from peoples in XMLResult.Descendants("Peoples")
select new People
{
Name = peoples.Element("Name").Value,
Work = ??? (How do I load the this?), should I do (Work = _ObjectContext.Work.WorkID.Equals(peoples.Element("Work").Value), "Query in the object context?"
Nickname = peopls.Element("Nickname").Value
};

Now you might be thinking why not just do this...

var list = from people [ObjectContext].People
select people;


The reason is because People.NickName property is not a Table column, the data is generated from the stored procedure (which I had other processes) and is return as XML;

If i skip People.Work it would give an error. hope its clear.
QuestionHello.. Pin
mjawadkhatri12-Jul-09 22:06
mjawadkhatri12-Jul-09 22:06 

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.