コード例 #1
0
ファイル: StudyBusiness.cs プロジェクト: Akshail/guanli
 public static bool UpdateStudyByPeople(int people_Id, string school, string grade, string major, string protector, string relationship, string phoneNo)
 {
     try
     {
         DbEntry.UsingTransaction(delegate
         {
             Study st        = Study.FindOne(CK.K["People_Id"] == people_Id && CK.K["IsDelete"] == false);
             st.School       = school;
             st.Grade        = grade;
             st.Major        = major;
             st.Protector    = protector;
             st.Relationship = relationship;
             st.PhoneNo      = phoneNo;
             st.Save();
         });
     }
     catch { return(false); }
     return(true);
 }