Click here to Skip to main content
15,886,857 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Hello.. Pin
Blue_Boy12-Jul-09 22:20
Blue_Boy12-Jul-09 22:20 
AnswerRe: Hello.. Pin
Pete O'Hanlon12-Jul-09 22:38
mvePete O'Hanlon12-Jul-09 22:38 
AnswerRe: Hello.. Pin
Tom Deketelaere12-Jul-09 22:54
professionalTom Deketelaere12-Jul-09 22:54 
Questionrun script - credentials Pin
arkiboys12-Jul-09 21:54
arkiboys12-Jul-09 21:54 
AnswerRe: run script - credentials Pin
Dave Kreskowiak13-Jul-09 4:05
mveDave Kreskowiak13-Jul-09 4:05 
QuestionConfusion..!! Pin
Meth Ferrel12-Jul-09 21:39
Meth Ferrel12-Jul-09 21:39 
AnswerRe: Confusion..!! Pin
dan!sh 12-Jul-09 21:56
professional dan!sh 12-Jul-09 21:56 
GeneralRe: Confusion..!! Pin
Meth Ferrel12-Jul-09 23:42
Meth Ferrel12-Jul-09 23:42 
GeneralRe: Confusion..!! Pin
dan!sh 13-Jul-09 3:13
professional dan!sh 13-Jul-09 3:13 
GeneralRe: Confusion..!! Pin
Meth Ferrel13-Jul-09 3:21
Meth Ferrel13-Jul-09 3:21 
GeneralRe: Confusion..!! Pin
dan!sh 13-Jul-09 17:53
professional dan!sh 13-Jul-09 17:53 
GeneralRe: Confusion..!! Pin
Meth Ferrel14-Jul-09 2:53
Meth Ferrel14-Jul-09 2:53 
AnswerRe: Confusion..!! Pin
Baeltazor12-Jul-09 22:00
Baeltazor12-Jul-09 22:00 
QuestionMAC ADDRESS Pin
sanforjackass12-Jul-09 21:25
sanforjackass12-Jul-09 21:25 
AnswerRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 21:29
professional dan!sh 12-Jul-09 21:29 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 21:46
sanforjackass12-Jul-09 21:46 

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.