Topic: build against silverlight runtime |
Posted On: 9/6/2008 10:08 PM
Posted By: mike kosurko
|
I am not able to add my class library build with Quick Objects to my Silverlight project. Is there a work around for this?
Hi Mike,
I hope you received my email that I sent earlier. I am in the process of configuring the latest silverlight SDK in a VM and having a few problems. I will put together a sample using Quick Objects + WCF + Silverlight as soon as I get the silverlight to install.
Thanks, Ish
| 9/8/2008 6:34:16 PM Ish Singh
|
Hi Mike,
The silverlight sample is available at this link. I have also emailed it to you, but I am posting it here just in case anyone else is interested in using Quick Objects + WCF + Silverlight combination.
The sample is built for Silverlight Beta 2 and there are still some bugs in the beta version. One of the bugs you encountered when the wcf service reference code on the client is generated wrongly.
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.akaltech.com/QuickObjects.ObjectBase.3.5")]
public partial class BaseBusinessObjectResultSet
: object, System.ComponentModel.INotifyPropertyChanged {
private schema schemaField;
As in the above code schema is a type but it is not defined anywhere. The workaround for this is to use a dummy "schema" class (mark it partial) and plug it into the same namespace as the reference.
Also, another bug in silverlight that I encountered was trying to return a List<> or an array. On the client e.Result was always empty (zero length array/collection). I will be investigating this further and contacting MS if I am certain that it is a bug.
Hope this helps. If you have any further questions please do not hesitate to let us know.
Thanks, Ish
| 9/8/2008 11:40:47 PM Ish Singh
|