http://blogs.microsoft.co.il/blogs/helpercoil/archive/2010/09/18/introduction-to-silverlight-and-wcf-ria-tutorial-part-1-setting-the-silverlight-site.aspx
http://blogs.microsoft.co.il/blogs/helpercoil/archive/2010/09/18/introduction-to-silverlight-and-wcf-ria-tutorial-part-2-displaying-data.aspx
http://blogs.microsoft.co.il/blogs/helpercoil/archive/2010/09/19/introduction-to-silverlight-and-wcf-ria-tutorial-part-3-domain-data-source.aspx
1.
Content="{Binding Path=Strings.ProductsTitle, Source={StaticResource ApplicationResources}}"
Note Both the values : [Strings.ProductsTitle]
and [StaticResource ApplicationResources]
2. Reference the Domain Service in Client App as :
Dim x As New BusinessApplication1.DomainService1
Me.dg1.ItemsSource = x.Products
x.Load(x.GetProductsQuery())
--When you add a EF model, build the "Web" project
--when you add the DomainService, buid the project
--Add the DomainService in "Services" folder
--When referencing the DomainService in the "Application" project,
see that you use something like "BusinessApplication1.DomainService1"
because the namespace "BusinessApplication1.Web.Services" and
the variable "BusinessApplication1.Web.Services.ProductContext" is not
available in "Application" project, because the DomainService is in the
default namespace of "BusinessApplication" and not in
"BusinessApplication1.Web.Services"
If you want to use "BusinessApplication1.Web.Services" namespace
then you need to go to ".vb" or ".vc" file of the service
and change the namespace
====================
Dim x As New BusinessApplication1.DomainService1
x.Load(x.GetProductsQuery())
Me.dg1.ItemsSource = x.Products'ProductsContext _pContext;'private void Page_Loaded(object sender, RoutedEventArgs e)'{ _pContext = new ProductsContext(); 'this.dg1.ItemsSource = _pContext.Products;' _pContext.Load(_pContext.GetProductsQuery());====================
http://blogs.microsoft.co.il/blogs/helpercoil/archive/2010/09/18/introduction-to-silverlight-and-wcf-ria-tutorial-part-2-displaying-data.aspx
http://blogs.microsoft.co.il/blogs/helpercoil/archive/2010/09/19/introduction-to-silverlight-and-wcf-ria-tutorial-part-3-domain-data-source.aspx
1.
Content="{Binding Path=Strings.ProductsTitle, Source={StaticResource ApplicationResources}}"
Note Both the values : [Strings.ProductsTitle]
and [StaticResource ApplicationResources]
2. Reference the Domain Service in Client App as :
Dim x As New BusinessApplication1.DomainService1
Me.dg1.ItemsSource = x.Products
x.Load(x.GetProductsQuery())
--When you add a EF model, build the "Web" project
--when you add the DomainService, buid the project
--Add the DomainService in "Services" folder
--When referencing the DomainService in the "Application" project,
see that you use something like "BusinessApplication1.DomainService1"
because the namespace "BusinessApplication1.Web.Services" and
the variable "BusinessApplication1.Web.Services.ProductContext" is not
available in "Application" project, because the DomainService is in the
default namespace of "BusinessApplication" and not in
"BusinessApplication1.Web.Services"
If you want to use "BusinessApplication1.Web.Services" namespace
then you need to go to ".vb" or ".vc" file of the service
and change the namespace
====================
Dim x As New BusinessApplication1.DomainService1
x.Load(x.GetProductsQuery())
Me.dg1.ItemsSource = x.Products'ProductsContext _pContext;'private void Page_Loaded(object sender, RoutedEventArgs e)'{ _pContext = new ProductsContext(); 'this.dg1.ItemsSource = _pContext.Products;' _pContext.Load(_pContext.GetProductsQuery());====================
No comments:
Post a Comment