資源描述:
《C#制作學(xué)生管理系統(tǒng)源代碼》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、建立3層架構(gòu)Entity層:book.csusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceZDSoft.LibraryManage.Entity{publicclassBook{publicBook(){BBookID=0;MManID="";BBookName="";WWriter="";}publicBook(intbookid,stringmanid,stringbookname,stringwriter){BBookID=bookid;MMa
2、nID=manid;BBookName=bookname;WWriter=writer;}privateintBBookID;//////圖a?書(shū)o¨|編ਤ號(hào)?///publicintBookID{get{returnBBookID;}set{BBookID=value;}}privatestringMManID;//////管¨1理¤¨a編ਤ號(hào)?///publicstringManID{get{returnMManID;}set{MManID=value;}}privatestringBB
3、ookName;//////圖a?書(shū)o¨|名?///publicstringBookName{get{returnBBookName;}set{BBookName=value;}}privatestringWWriter;//////作á??者?///publicstringWriter{get{returnWWriter;}set{WWriter=value;}}}}usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;using
4、System.Text;namespaceZDSoft.LibraryManage.Entity{publicclassBorrow{publicBorrow(){}privateintBBorrowID;//////借¨¨書(shū)o¨|編ਤ號(hào)?///publicintBorrowID{get{returnBBorrowID;}set{BBorrowID=value;}}privatestringCCardID;//////借¨¨書(shū)o¨|證?è號(hào)?///publicstringCardID{get{r
5、eturnCCardID;}set{CCardID=value;}}privatestringMManID;//////管¨1理¤¨a編ਤ號(hào)?///publicstringManID{get{returnMManID;}set{MManID=value;}}privateDateTimeBBorrowDate;//////借¨¨書(shū)o¨|日¨?期¨2///publicDateTimeBorrowDate{get{returnBBorrowDate;}set{BBorrowDate=value;}}
6、privateDateTimeRReturnDate;//////還1書(shū)o¨|日¨?期¨2///publicDateTimeReturnDate{get{returnRReturnDate;}set{RReturnDate=value;}}}}Reader.csusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceZDSoft.LibraryManage.Entity{publicclassReader{publicR
7、eader(){this.RReaderID=0;this.RReaderName="";this.CCardID="";this.TTel="";}//////構(gòu)1造¨?用??戶?ì實(shí)o|ì體??//////讀¨¢者?編ਤ號(hào)?///姓?名?///借¨¨書(shū)o¨|證?è號(hào)?///