none
combine first and last name in EF 4 model for Silverlight and Ria Services RRS feed

  • Question

  • Seems like a simple task, I have an entity set that has fields id, Fname, Lname....

    I am using Ria services and Silverlight.  I am trying to create a partial class that will just combine the Fname and Lname into one field called name.  This is only a read only field. 

    Help?

    Monday, August 22, 2011 7:32 PM

All replies

  • Hi jayc2,

    Welcome!

    To tell you truth, I'm not familiar with Silverlight, but I think the partial class should work.

    public partial class Employee
      {
        public string Name
        {
          get { return this.Fname + this.Lname; }
        }
      }
    

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, August 23, 2011 8:08 AM
    Moderator
  • Hi, 

    I am writing to check the status of the issue on your side.  Would you mind letting us know the result of the suggestions?

    If you need further assistance, please feel free to let me know.   I will be more than happy to be of assistance.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, August 26, 2011 3:23 AM
    Moderator