Share via

Combined Variable Question

Grime 796 Reputation points
2021-04-16T12:57:35.937+00:00

I don't yet know enough about Xamarin terminology to probably make sense, but I was doing OK following the James Montemagno YouTube video, "https://www.youtube.com/watch?v=XFP8Np-uRWc" until I had to create a "collective variable" (?)!

What might I be doing wrong?/api/attachments/88628-clipboard01.png?platform=QnA

Developer technologies | .NET | Xamarin
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-04-16T13:18:40.207+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    First of all, did you create model class like following code?

       public class Operator  
           {  
               [PrimaryKey, AutoIncrement]  
               public int Id { get; set; }  
               public string OpName { get; set; }  
               public string OpPhone { get; set; }  
               public string OpEmail { get; set; }  
           }  
    

    When you create new object, you should write following code.

       var operators = new Operator()  
                   {  
                       OpName = "Opname1",  
                       OpPhone = "O12345566",  
                       OpEmail = "******@test.com"  
         
                   };  
    

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.