Guid client_id = Guid.Empty;
Data.Entities bdd = new Data.Entities();
var recupClient = from cli in bdd.Client
join fact in bdd.Facture on cli.cli_id equals fact.fact_client_id
where fact.fact_id == _facture_id
select cli;

foreach (var i in recupClient)
{
System.
Type type = i.GetType();
client_id = (Guid)type.GetProperty(“cli_id”).GetValue(i, null);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s