1. When adding data to the Database tutorial, the page prompts for missing objects, error debugging status prompts, unable to update EntitySet "* * *" because it has a definingquery, while the <modificationfunctionmapping> There is no <insertfunction> element in the element that supports the current operation
WORKAROUND: Because the table you are manipulating does not have a primary key added, it is OK to refresh the EDM after you add a primary key.
2. Page Tip "IIS has set access ...", the page prompts "Note fond", this is really iis6 problem, because WCF RIA service must use Anonymous authentication, so, the integration verification and so on can be removed.
3.WCF RIA Service Returns the custom type method:
Add a custom type to the. metadate.cs file, for example:
[DataContract]
public class ServiceContainer
{
[DataMember]
[Key]
public int ID {get; set;}
[DataMember]
public int Containerid {get; set;}
}
where [DataContract] is required, you must also define a primary key, [key]
1. display HTML on Silverlight
can adopt <div> mode
Code
<div style= "POSITION:ABSOLUTE;Z-INDEX:4; top:70px;left:200px;height:80%;width:80% ">
<iframe src= "http://www.google.com.hk" style= "position:fixed;top:70px;left:200px;height:80%;width:80%" > </iframe>
</div>
One thing to note, in SL <object> must be added <param name= "windowless" value= "true"/>, otherwise,<iframe> sometimes mysteriously disappear