Example #1
0
        private static MyDoctorDataContract ConvertMyDoctorToDataContract(Doctor user,bool ismyt)  //-----------
        {
            return new MyDoctorDataContract()
            {
                UserName = user.LiveID,

                NickName = user.Name,
                Description = user.Description,
                email = user.LiveID,
                Grade = user.Grade,
                phone = user.Phone,
                image = user.Image,
                ismy = ismyt,
                latitude = (double)user.Latitude,
                Longtitude = (double)user.Longitude
            };
        }
Example #2
0
 /// <summary>
 /// Create a new Doctor object.
 /// </summary>
 /// <param name="liveID">Initial value of the LiveID property.</param>
 public static Doctor CreateDoctor(global::System.String liveID)
 {
     Doctor doctor = new Doctor();
     doctor.LiveID = liveID;
     return doctor;
 }
Example #3
0
 private static DoctorUserDataContract ConvertDoctorUserToDataContract(Doctor user)  //-----------
 {
     return new DoctorUserDataContract()
     {
         UserName = user.LiveID,
         NickName = user.Name,
         Description = user.Description,
         email = user.Email,
         Grade = user.Grade,
         phone = user.Phone,
         image = user.Image
     };
 }
Example #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Doctor EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDoctor(Doctor doctor)
 {
     base.AddObject("Doctor", doctor);
 }