Hi all,
Been using v3 and it has saved a ton of time! One question though on one of the WCF examples...
I am using this code block from the WCF provided example and changing CustomersEntity to be for the table in my project...
public IEntityCollection2 GetAllCustomers()
{
EntityCollection toReturn = new EntityCollection( new CustomersEntityFactory());
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
// simply fetch all customer entities into the collection.
adapter.FetchEntityCollection(toReturn, null);
}
return toReturn;
}
I create the proxy in VS 2010, and it generated this section:
public partial class EntityCollection : object, System.ComponentModel.INotifyPropertyChanged {
private schema schemaField;
private System.Xml.XmlElement anyField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.w3.org/2001/XMLSchema", Order=0)]
public schema schema {
get {
return this.schemaField;
}
set {
this.schemaField = value;
this.RaisePropertyChanged("schema");
}
}
The "schema" types are not working.. saying it can't resolved this.. I have done a lot of searching, and this has been happening on Silverlight apps and to include the System.XML.Serialization assembly. In .NET 4.0, it does not seem to be there however.
Is there a way around this?
Thanks
Harold