How to list all entity names / table names from your Entity Framework model in Silverlight 4 and RIA services

If you want to list all entity names / table names from your Entity Framework model (*.edmx) in Silverlight 4, use a RIA Invoke operation:   using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Metadata.Edm; using System.ServiceModel.DomainServices.Server; namespace Research.Web { public partial class ResearchDomainService { /// <summary> /// Get …

Solving: DisplayName not showing in a DataForm in Silverlight 4 by using data annotations on a metadata class.

I was trying to change the displayname of a field in a dataform by placing the DisplayName attribute on the property in the metadata class. This will not work instead you must use the [Display(Name= "This is the correct display name")] attribute on the field in a metadata class: [MetadataTypeAttribute(typeof(Product.ProductMetadata))] …

Solving: "Could not activate cellular data network" on a Vodafone iPhone 4 after iOS 5 upgrade.

After updating mine Vodafone iPhone 4 to iOS 5, all was working well, except no data connection. Error: Could not activate cellular data network. You are not subscribed to a cellular data service. I found mine solution at: http://www.iphoneclub.nl/iphone-tips/telefoonfuncties/probleem-met-mobiele-datanetwerk-oplossen/   Personal Hotspot One very nice thing about the iOS 5 …

Resolving: Validator.TryValidateObject always returns true in a UnitTest, when using a MetadataType class in Entity Framework 4

When you use a metadata class in Entity Framework the registration between the entity and the metadata class is not registered for all Microsoft Visual Studio Project types (the "test project class library" for example). I found the solution at: http://stackoverflow.com/questions/2657358/net-4-rtm-metadatatype-attribute-ignored-when-using-validator. It demonstrates registring all metadata classes in an assembly. …

Solving: The attachable property ‘Behaviors’ was not found in type ‘Interaction’

  I was getting the error: The attachable property ‘Behaviors’ was not found in type ‘Interaction’. This was generated by a missing reference to the "System.Windows.Interactivity" assembly.   You can download the assembly at http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3062 It is contained in the BlendSLSDK_en.msi You can extract the msi package without installing it, …