コード例 #1
0
ファイル: Service.svc.cs プロジェクト: whuacn/echelper
        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
            };
        }
コード例 #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;
 }
コード例 #3
0
ファイル: Service.svc.cs プロジェクト: whuacn/echelper
 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
     };
 }
コード例 #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);
 }