|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by hums in Language Integrated Query - LINQ, JavaScript Frameworks
I am trying to retrieve the 'ResourceValue' data item from a SQL database using the Entity framework. The first part of my code is pointing to the right data but I cannot figure out the proper coding to set the Text field of XAML label to the 'ResourceValue' field of the retrieved data.
Thanks,
Bob H
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
|
//Load localization literal constants
// New Data source for Nop Commerce data source.
IDDCommerceDBEntitiesNEW IDDDataSource = new IDDCommerceDBEntitiesNEW();
// Get the contacts with the specified name.
// ObjectQuery<Nop_LocaleStringResource> lblQuery = IDDDataSource.Nop_LocaleStringResource
ObjectQuery<Nop_LocaleStringResource> lblQuery = IDDDataSource.Nop_LocaleStringResource
.Where("it.ResourceName = 'Order.OrderInformation'");
Nop_LocaleStringResource.ResourceName));
// lblOrderInformation.Text = lblQuery.Nop_LocaleStringResource.ResourceValue;
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625