Advanced Forum Search Results
-
I need to provide a link back to original home page in my SL app.
However, HtmlPage.Window.Navigate() does not work in out of browser mode.
Is there a way to open web browser and navigate to a web page in out of browser mode?
-
It is documented somewhere that you can't pass collection / array as parameter to domain service. So, this is a limitation, not a bug.
-
This is not a bug, but an error from Entity Framework.
Did you code up your own query method using eSql? What is your query? Can you use LINQ to Entities and try again?
-
Have you tried setting breakpoint at InsertInvoiceDetail and UpdateInvoiceDocument methods at your Dommain Service code? Try look into the property values when hitting both methods. Which method is causing the exception?
-
I think you cannot use int[] as parameter.
Try changing your query method to FetchProducts(int prodId), if it works, then it is the problem of serializing array (int[]).
-
Yes, you have to attach an object to the data context to enable change tracking. This behaviour is consistent to Linq to SQL and Entity Framework change tracking mechanism. Look at the CRUD service methods generated by .Net RIA Services in you domain service class, then you would notice the object is attached to a context before saving ...
-
I think your code should work. I can pass complex object as parameter to service operations in my project (but I haven't try it with query method).
I guess you can try to remove all the attributes of the Options class, and then decorate the class with Shared attribute and add Key atritube to Name property.
-
I found this issue confusing too. At first, I used the .Shared.cs approach. Later, I figured that as long as you expose the class instance through query / custom method in your domain service, the class definition is automatically copied to client side project. So I remove all the .Shared.cs and [Shared] attribute, and let the compiler to ...
-
I faced the same problem too. The date values are automatically converted to UTC dates during serialization (loading / submitting data). I reported the issue before but it is not fixed in May CTP. The problem occurs no matter UseUtcDateTimes is set to true or false.
-
If you are new to both technologies, and only wish to work with Silverlight and not sharing your web service to others, then I would suggest .Net RIA Services, since it is easier to pick up, and abstract away many low level coding.
Like .Net RIA Services, ADO .Net Data Services makes exposing your data model as web service easier, but you ...