IS31BorovikAndreyStudDataSet.Designer.cs 290 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace IS31BorovikAleksandrStudents {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("IS31BorovikAndreyStudDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class IS31BorovikAndreyStudDataSet : global::System.Data.DataSet {
  22. private ОценкиDataTable tableОценки;
  23. private ПредметыDataTable tableПредметы;
  24. private СпециальностиDataTable tableСпециальности;
  25. private СтудентыDataTable tableСтуденты;
  26. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  27. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  29. public IS31BorovikAndreyStudDataSet() {
  30. this.BeginInit();
  31. this.InitClass();
  32. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  33. base.Tables.CollectionChanged += schemaChangedHandler;
  34. base.Relations.CollectionChanged += schemaChangedHandler;
  35. this.EndInit();
  36. }
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. protected IS31BorovikAndreyStudDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  40. base(info, context, false) {
  41. if ((this.IsBinarySerialized(info, context) == true)) {
  42. this.InitVars(false);
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. this.Tables.CollectionChanged += schemaChangedHandler1;
  45. this.Relations.CollectionChanged += schemaChangedHandler1;
  46. return;
  47. }
  48. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  49. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  50. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  51. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  52. if ((ds.Tables["Оценки"] != null)) {
  53. base.Tables.Add(new ОценкиDataTable(ds.Tables["Оценки"]));
  54. }
  55. if ((ds.Tables["Предметы"] != null)) {
  56. base.Tables.Add(new ПредметыDataTable(ds.Tables["Предметы"]));
  57. }
  58. if ((ds.Tables["Специальности"] != null)) {
  59. base.Tables.Add(new СпециальностиDataTable(ds.Tables["Специальности"]));
  60. }
  61. if ((ds.Tables["Студенты"] != null)) {
  62. base.Tables.Add(new СтудентыDataTable(ds.Tables["Студенты"]));
  63. }
  64. this.DataSetName = ds.DataSetName;
  65. this.Prefix = ds.Prefix;
  66. this.Namespace = ds.Namespace;
  67. this.Locale = ds.Locale;
  68. this.CaseSensitive = ds.CaseSensitive;
  69. this.EnforceConstraints = ds.EnforceConstraints;
  70. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  71. this.InitVars();
  72. }
  73. else {
  74. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  75. }
  76. this.GetSerializationData(info, context);
  77. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  78. base.Tables.CollectionChanged += schemaChangedHandler;
  79. this.Relations.CollectionChanged += schemaChangedHandler;
  80. }
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  82. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  83. [global::System.ComponentModel.Browsable(false)]
  84. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  85. public ОценкиDataTable Оценки {
  86. get {
  87. return this.tableОценки;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.Browsable(false)]
  93. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  94. public ПредметыDataTable Предметы {
  95. get {
  96. return this.tableПредметы;
  97. }
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public СпециальностиDataTable Специальности {
  104. get {
  105. return this.tableСпециальности;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public СтудентыDataTable Студенты {
  113. get {
  114. return this.tableСтуденты;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.BrowsableAttribute(true)]
  120. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  121. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  122. get {
  123. return this._schemaSerializationMode;
  124. }
  125. set {
  126. this._schemaSerializationMode = value;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  132. public new global::System.Data.DataTableCollection Tables {
  133. get {
  134. return base.Tables;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  140. public new global::System.Data.DataRelationCollection Relations {
  141. get {
  142. return base.Relations;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  147. protected override void InitializeDerivedDataSet() {
  148. this.BeginInit();
  149. this.InitClass();
  150. this.EndInit();
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. public override global::System.Data.DataSet Clone() {
  155. IS31BorovikAndreyStudDataSet cln = ((IS31BorovikAndreyStudDataSet)(base.Clone()));
  156. cln.InitVars();
  157. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  158. return cln;
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. protected override bool ShouldSerializeTables() {
  163. return false;
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. protected override bool ShouldSerializeRelations() {
  168. return false;
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  173. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  174. this.Reset();
  175. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  176. ds.ReadXml(reader);
  177. if ((ds.Tables["Оценки"] != null)) {
  178. base.Tables.Add(new ОценкиDataTable(ds.Tables["Оценки"]));
  179. }
  180. if ((ds.Tables["Предметы"] != null)) {
  181. base.Tables.Add(new ПредметыDataTable(ds.Tables["Предметы"]));
  182. }
  183. if ((ds.Tables["Специальности"] != null)) {
  184. base.Tables.Add(new СпециальностиDataTable(ds.Tables["Специальности"]));
  185. }
  186. if ((ds.Tables["Студенты"] != null)) {
  187. base.Tables.Add(new СтудентыDataTable(ds.Tables["Студенты"]));
  188. }
  189. this.DataSetName = ds.DataSetName;
  190. this.Prefix = ds.Prefix;
  191. this.Namespace = ds.Namespace;
  192. this.Locale = ds.Locale;
  193. this.CaseSensitive = ds.CaseSensitive;
  194. this.EnforceConstraints = ds.EnforceConstraints;
  195. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  196. this.InitVars();
  197. }
  198. else {
  199. this.ReadXml(reader);
  200. this.InitVars();
  201. }
  202. }
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  205. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  206. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  207. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  208. stream.Position = 0;
  209. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. internal void InitVars() {
  214. this.InitVars(true);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. internal void InitVars(bool initTable) {
  219. this.tableОценки = ((ОценкиDataTable)(base.Tables["Оценки"]));
  220. if ((initTable == true)) {
  221. if ((this.tableОценки != null)) {
  222. this.tableОценки.InitVars();
  223. }
  224. }
  225. this.tableПредметы = ((ПредметыDataTable)(base.Tables["Предметы"]));
  226. if ((initTable == true)) {
  227. if ((this.tableПредметы != null)) {
  228. this.tableПредметы.InitVars();
  229. }
  230. }
  231. this.tableСпециальности = ((СпециальностиDataTable)(base.Tables["Специальности"]));
  232. if ((initTable == true)) {
  233. if ((this.tableСпециальности != null)) {
  234. this.tableСпециальности.InitVars();
  235. }
  236. }
  237. this.tableСтуденты = ((СтудентыDataTable)(base.Tables["Студенты"]));
  238. if ((initTable == true)) {
  239. if ((this.tableСтуденты != null)) {
  240. this.tableСтуденты.InitVars();
  241. }
  242. }
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  246. private void InitClass() {
  247. this.DataSetName = "IS31BorovikAndreyStudDataSet";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/IS31BorovikAndreyStudDataSet.xsd";
  250. this.EnforceConstraints = true;
  251. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  252. this.tableОценки = new ОценкиDataTable();
  253. base.Tables.Add(this.tableОценки);
  254. this.tableПредметы = new ПредметыDataTable();
  255. base.Tables.Add(this.tableПредметы);
  256. this.tableСпециальности = new СпециальностиDataTable();
  257. base.Tables.Add(this.tableСпециальности);
  258. this.tableСтуденты = new СтудентыDataTable();
  259. base.Tables.Add(this.tableСтуденты);
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. private bool ShouldSerializeОценки() {
  264. return false;
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. private bool ShouldSerializeПредметы() {
  269. return false;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. private bool ShouldSerializeСпециальности() {
  274. return false;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. private bool ShouldSerializeСтуденты() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  284. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  285. this.InitVars();
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  291. IS31BorovikAndreyStudDataSet ds = new IS31BorovikAndreyStudDataSet();
  292. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  293. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  294. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  295. any.Namespace = ds.Namespace;
  296. sequence.Items.Add(any);
  297. type.Particle = sequence;
  298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  299. if (xs.Contains(dsSchema.TargetNamespace)) {
  300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  302. try {
  303. global::System.Xml.Schema.XmlSchema schema = null;
  304. dsSchema.Write(s1);
  305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  307. s2.SetLength(0);
  308. schema.Write(s2);
  309. if ((s1.Length == s2.Length)) {
  310. s1.Position = 0;
  311. s2.Position = 0;
  312. for (; ((s1.Position != s1.Length)
  313. && (s1.ReadByte() == s2.ReadByte())); ) {
  314. ;
  315. }
  316. if ((s1.Position == s1.Length)) {
  317. return type;
  318. }
  319. }
  320. }
  321. }
  322. finally {
  323. if ((s1 != null)) {
  324. s1.Close();
  325. }
  326. if ((s2 != null)) {
  327. s2.Close();
  328. }
  329. }
  330. }
  331. xs.Add(dsSchema);
  332. return type;
  333. }
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. public delegate void ОценкиRowChangeEventHandler(object sender, ОценкиRowChangeEvent e);
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. public delegate void ПредметыRowChangeEventHandler(object sender, ПредметыRowChangeEvent e);
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public delegate void СпециальностиRowChangeEventHandler(object sender, СпециальностиRowChangeEvent e);
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. public delegate void СтудентыRowChangeEventHandler(object sender, СтудентыRowChangeEvent e);
  342. /// <summary>
  343. ///Represents the strongly named DataTable class.
  344. ///</summary>
  345. [global::System.Serializable()]
  346. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  347. public partial class ОценкиDataTable : global::System.Data.TypedTableBase<ОценкиRow> {
  348. private global::System.Data.DataColumn columnКод_студента;
  349. private global::System.Data.DataColumn columnДата_экзамена_1;
  350. private global::System.Data.DataColumn columnКод_предмета_1;
  351. private global::System.Data.DataColumn columnОценка_1;
  352. private global::System.Data.DataColumn columnДата_экзамена_2;
  353. private global::System.Data.DataColumn columnКод_предмета_2;
  354. private global::System.Data.DataColumn columnОценка_2;
  355. private global::System.Data.DataColumn columnДата_экзамена_3;
  356. private global::System.Data.DataColumn columnКод_предмета_3;
  357. private global::System.Data.DataColumn columnОценка_3;
  358. private global::System.Data.DataColumn columnСредний_балл;
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  361. public ОценкиDataTable() {
  362. this.TableName = "Оценки";
  363. this.BeginInit();
  364. this.InitClass();
  365. this.EndInit();
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  369. internal ОценкиDataTable(global::System.Data.DataTable table) {
  370. this.TableName = table.TableName;
  371. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  372. this.CaseSensitive = table.CaseSensitive;
  373. }
  374. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  375. this.Locale = table.Locale;
  376. }
  377. if ((table.Namespace != table.DataSet.Namespace)) {
  378. this.Namespace = table.Namespace;
  379. }
  380. this.Prefix = table.Prefix;
  381. this.MinimumCapacity = table.MinimumCapacity;
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. protected ОценкиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  386. base(info, context) {
  387. this.InitVars();
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. public global::System.Data.DataColumn Код_студентаColumn {
  392. get {
  393. return this.columnКод_студента;
  394. }
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. public global::System.Data.DataColumn Дата_экзамена_1Column {
  399. get {
  400. return this.columnДата_экзамена_1;
  401. }
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. public global::System.Data.DataColumn Код_предмета_1Column {
  406. get {
  407. return this.columnКод_предмета_1;
  408. }
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  412. public global::System.Data.DataColumn Оценка_1Column {
  413. get {
  414. return this.columnОценка_1;
  415. }
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  419. public global::System.Data.DataColumn Дата_экзамена_2Column {
  420. get {
  421. return this.columnДата_экзамена_2;
  422. }
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  426. public global::System.Data.DataColumn Код_предмета_2Column {
  427. get {
  428. return this.columnКод_предмета_2;
  429. }
  430. }
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public global::System.Data.DataColumn Оценка_2Column {
  434. get {
  435. return this.columnОценка_2;
  436. }
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  440. public global::System.Data.DataColumn Дата_экзамена_3Column {
  441. get {
  442. return this.columnДата_экзамена_3;
  443. }
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public global::System.Data.DataColumn Код_предмета_3Column {
  448. get {
  449. return this.columnКод_предмета_3;
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public global::System.Data.DataColumn Оценка_3Column {
  455. get {
  456. return this.columnОценка_3;
  457. }
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public global::System.Data.DataColumn Средний_баллColumn {
  462. get {
  463. return this.columnСредний_балл;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. [global::System.ComponentModel.Browsable(false)]
  469. public int Count {
  470. get {
  471. return this.Rows.Count;
  472. }
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. public ОценкиRow this[int index] {
  477. get {
  478. return ((ОценкиRow)(this.Rows[index]));
  479. }
  480. }
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. public event ОценкиRowChangeEventHandler ОценкиRowChanging;
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. public event ОценкиRowChangeEventHandler ОценкиRowChanged;
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  486. public event ОценкиRowChangeEventHandler ОценкиRowDeleting;
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. public event ОценкиRowChangeEventHandler ОценкиRowDeleted;
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public void AddОценкиRow(ОценкиRow row) {
  492. this.Rows.Add(row);
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public ОценкиRow AddОценкиRow(long Код_студента, System.DateTime Дата_экзамена_1, long Код_предмета_1, byte Оценка_1, System.DateTime Дата_экзамена_2, long Код_предмета_2, byte Оценка_2, System.DateTime Дата_экзамена_3, long Код_предмета_3, byte Оценка_3, float Средний_балл) {
  497. ОценкиRow rowОценкиRow = ((ОценкиRow)(this.NewRow()));
  498. object[] columnValuesArray = new object[] {
  499. Код_студента,
  500. Дата_экзамена_1,
  501. Код_предмета_1,
  502. Оценка_1,
  503. Дата_экзамена_2,
  504. Код_предмета_2,
  505. Оценка_2,
  506. Дата_экзамена_3,
  507. Код_предмета_3,
  508. Оценка_3,
  509. Средний_балл};
  510. rowОценкиRow.ItemArray = columnValuesArray;
  511. this.Rows.Add(rowОценкиRow);
  512. return rowОценкиRow;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. public override global::System.Data.DataTable Clone() {
  517. ОценкиDataTable cln = ((ОценкиDataTable)(base.Clone()));
  518. cln.InitVars();
  519. return cln;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. protected override global::System.Data.DataTable CreateInstance() {
  524. return new ОценкиDataTable();
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. internal void InitVars() {
  529. this.columnКод_студента = base.Columns["Код студента"];
  530. this.columnДата_экзамена_1 = base.Columns["Дата экзамена 1"];
  531. this.columnКод_предмета_1 = base.Columns["Код предмета 1"];
  532. this.columnОценка_1 = base.Columns["Оценка 1"];
  533. this.columnДата_экзамена_2 = base.Columns["Дата экзамена 2"];
  534. this.columnКод_предмета_2 = base.Columns["Код предмета 2"];
  535. this.columnОценка_2 = base.Columns["Оценка 2"];
  536. this.columnДата_экзамена_3 = base.Columns["Дата экзамена 3"];
  537. this.columnКод_предмета_3 = base.Columns["Код предмета 3"];
  538. this.columnОценка_3 = base.Columns["Оценка 3"];
  539. this.columnСредний_балл = base.Columns["Средний балл"];
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. private void InitClass() {
  544. this.columnКод_студента = new global::System.Data.DataColumn("Код студента", typeof(long), null, global::System.Data.MappingType.Element);
  545. base.Columns.Add(this.columnКод_студента);
  546. this.columnДата_экзамена_1 = new global::System.Data.DataColumn("Дата экзамена 1", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  547. base.Columns.Add(this.columnДата_экзамена_1);
  548. this.columnКод_предмета_1 = new global::System.Data.DataColumn("Код предмета 1", typeof(long), null, global::System.Data.MappingType.Element);
  549. base.Columns.Add(this.columnКод_предмета_1);
  550. this.columnОценка_1 = new global::System.Data.DataColumn("Оценка 1", typeof(byte), null, global::System.Data.MappingType.Element);
  551. base.Columns.Add(this.columnОценка_1);
  552. this.columnДата_экзамена_2 = new global::System.Data.DataColumn("Дата экзамена 2", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  553. base.Columns.Add(this.columnДата_экзамена_2);
  554. this.columnКод_предмета_2 = new global::System.Data.DataColumn("Код предмета 2", typeof(long), null, global::System.Data.MappingType.Element);
  555. base.Columns.Add(this.columnКод_предмета_2);
  556. this.columnОценка_2 = new global::System.Data.DataColumn("Оценка 2", typeof(byte), null, global::System.Data.MappingType.Element);
  557. base.Columns.Add(this.columnОценка_2);
  558. this.columnДата_экзамена_3 = new global::System.Data.DataColumn("Дата экзамена 3", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  559. base.Columns.Add(this.columnДата_экзамена_3);
  560. this.columnКод_предмета_3 = new global::System.Data.DataColumn("Код предмета 3", typeof(long), null, global::System.Data.MappingType.Element);
  561. base.Columns.Add(this.columnКод_предмета_3);
  562. this.columnОценка_3 = new global::System.Data.DataColumn("Оценка 3", typeof(byte), null, global::System.Data.MappingType.Element);
  563. base.Columns.Add(this.columnОценка_3);
  564. this.columnСредний_балл = new global::System.Data.DataColumn("Средний балл", typeof(float), null, global::System.Data.MappingType.Element);
  565. base.Columns.Add(this.columnСредний_балл);
  566. }
  567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  569. public ОценкиRow NewОценкиRow() {
  570. return ((ОценкиRow)(this.NewRow()));
  571. }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  575. return new ОценкиRow(builder);
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. protected override global::System.Type GetRowType() {
  580. return typeof(ОценкиRow);
  581. }
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  585. base.OnRowChanged(e);
  586. if ((this.ОценкиRowChanged != null)) {
  587. this.ОценкиRowChanged(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  588. }
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  593. base.OnRowChanging(e);
  594. if ((this.ОценкиRowChanging != null)) {
  595. this.ОценкиRowChanging(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  596. }
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  601. base.OnRowDeleted(e);
  602. if ((this.ОценкиRowDeleted != null)) {
  603. this.ОценкиRowDeleted(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  604. }
  605. }
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  609. base.OnRowDeleting(e);
  610. if ((this.ОценкиRowDeleting != null)) {
  611. this.ОценкиRowDeleting(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  612. }
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. public void RemoveОценкиRow(ОценкиRow row) {
  617. this.Rows.Remove(row);
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  622. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  623. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  624. IS31BorovikAndreyStudDataSet ds = new IS31BorovikAndreyStudDataSet();
  625. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  626. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  627. any1.MinOccurs = new decimal(0);
  628. any1.MaxOccurs = decimal.MaxValue;
  629. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  630. sequence.Items.Add(any1);
  631. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  632. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  633. any2.MinOccurs = new decimal(1);
  634. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  635. sequence.Items.Add(any2);
  636. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  637. attribute1.Name = "namespace";
  638. attribute1.FixedValue = ds.Namespace;
  639. type.Attributes.Add(attribute1);
  640. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  641. attribute2.Name = "tableTypeName";
  642. attribute2.FixedValue = "ОценкиDataTable";
  643. type.Attributes.Add(attribute2);
  644. type.Particle = sequence;
  645. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  646. if (xs.Contains(dsSchema.TargetNamespace)) {
  647. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  648. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  649. try {
  650. global::System.Xml.Schema.XmlSchema schema = null;
  651. dsSchema.Write(s1);
  652. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  653. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  654. s2.SetLength(0);
  655. schema.Write(s2);
  656. if ((s1.Length == s2.Length)) {
  657. s1.Position = 0;
  658. s2.Position = 0;
  659. for (; ((s1.Position != s1.Length)
  660. && (s1.ReadByte() == s2.ReadByte())); ) {
  661. ;
  662. }
  663. if ((s1.Position == s1.Length)) {
  664. return type;
  665. }
  666. }
  667. }
  668. }
  669. finally {
  670. if ((s1 != null)) {
  671. s1.Close();
  672. }
  673. if ((s2 != null)) {
  674. s2.Close();
  675. }
  676. }
  677. }
  678. xs.Add(dsSchema);
  679. return type;
  680. }
  681. }
  682. /// <summary>
  683. ///Represents the strongly named DataTable class.
  684. ///</summary>
  685. [global::System.Serializable()]
  686. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  687. public partial class ПредметыDataTable : global::System.Data.TypedTableBase<ПредметыRow> {
  688. private global::System.Data.DataColumn columnКод_предмета;
  689. private global::System.Data.DataColumn columnСпециальности;
  690. private global::System.Data.DataColumn columnОписание_специальности;
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. public ПредметыDataTable() {
  694. this.TableName = "Предметы";
  695. this.BeginInit();
  696. this.InitClass();
  697. this.EndInit();
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. internal ПредметыDataTable(global::System.Data.DataTable table) {
  702. this.TableName = table.TableName;
  703. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  704. this.CaseSensitive = table.CaseSensitive;
  705. }
  706. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  707. this.Locale = table.Locale;
  708. }
  709. if ((table.Namespace != table.DataSet.Namespace)) {
  710. this.Namespace = table.Namespace;
  711. }
  712. this.Prefix = table.Prefix;
  713. this.MinimumCapacity = table.MinimumCapacity;
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. protected ПредметыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  718. base(info, context) {
  719. this.InitVars();
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public global::System.Data.DataColumn Код_предметаColumn {
  724. get {
  725. return this.columnКод_предмета;
  726. }
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public global::System.Data.DataColumn СпециальностиColumn {
  731. get {
  732. return this.columnСпециальности;
  733. }
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. public global::System.Data.DataColumn Описание_специальностиColumn {
  738. get {
  739. return this.columnОписание_специальности;
  740. }
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. [global::System.ComponentModel.Browsable(false)]
  745. public int Count {
  746. get {
  747. return this.Rows.Count;
  748. }
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. public ПредметыRow this[int index] {
  753. get {
  754. return ((ПредметыRow)(this.Rows[index]));
  755. }
  756. }
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public event ПредметыRowChangeEventHandler ПредметыRowChanging;
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. public event ПредметыRowChangeEventHandler ПредметыRowChanged;
  761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  762. public event ПредметыRowChangeEventHandler ПредметыRowDeleting;
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. public event ПредметыRowChangeEventHandler ПредметыRowDeleted;
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public void AddПредметыRow(ПредметыRow row) {
  768. this.Rows.Add(row);
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. public ПредметыRow AddПредметыRow(long Код_предмета, string Специальности, string Описание_специальности) {
  773. ПредметыRow rowПредметыRow = ((ПредметыRow)(this.NewRow()));
  774. object[] columnValuesArray = new object[] {
  775. Код_предмета,
  776. Специальности,
  777. Описание_специальности};
  778. rowПредметыRow.ItemArray = columnValuesArray;
  779. this.Rows.Add(rowПредметыRow);
  780. return rowПредметыRow;
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  784. public override global::System.Data.DataTable Clone() {
  785. ПредметыDataTable cln = ((ПредметыDataTable)(base.Clone()));
  786. cln.InitVars();
  787. return cln;
  788. }
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. protected override global::System.Data.DataTable CreateInstance() {
  792. return new ПредметыDataTable();
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. internal void InitVars() {
  797. this.columnКод_предмета = base.Columns["Код предмета"];
  798. this.columnСпециальности = base.Columns["Специальности"];
  799. this.columnОписание_специальности = base.Columns["Описание специальности"];
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  803. private void InitClass() {
  804. this.columnКод_предмета = new global::System.Data.DataColumn("Код предмета", typeof(long), null, global::System.Data.MappingType.Element);
  805. base.Columns.Add(this.columnКод_предмета);
  806. this.columnСпециальности = new global::System.Data.DataColumn("Специальности", typeof(string), null, global::System.Data.MappingType.Element);
  807. base.Columns.Add(this.columnСпециальности);
  808. this.columnОписание_специальности = new global::System.Data.DataColumn("Описание специальности", typeof(string), null, global::System.Data.MappingType.Element);
  809. base.Columns.Add(this.columnОписание_специальности);
  810. this.columnСпециальности.MaxLength = 50;
  811. this.columnОписание_специальности.MaxLength = 50;
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. public ПредметыRow NewПредметыRow() {
  816. return ((ПредметыRow)(this.NewRow()));
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  821. return new ПредметыRow(builder);
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. protected override global::System.Type GetRowType() {
  826. return typeof(ПредметыRow);
  827. }
  828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  830. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  831. base.OnRowChanged(e);
  832. if ((this.ПредметыRowChanged != null)) {
  833. this.ПредметыRowChanged(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  834. }
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  838. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  839. base.OnRowChanging(e);
  840. if ((this.ПредметыRowChanging != null)) {
  841. this.ПредметыRowChanging(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  842. }
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  847. base.OnRowDeleted(e);
  848. if ((this.ПредметыRowDeleted != null)) {
  849. this.ПредметыRowDeleted(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  855. base.OnRowDeleting(e);
  856. if ((this.ПредметыRowDeleting != null)) {
  857. this.ПредметыRowDeleting(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  858. }
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. public void RemoveПредметыRow(ПредметыRow row) {
  863. this.Rows.Remove(row);
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  868. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  869. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  870. IS31BorovikAndreyStudDataSet ds = new IS31BorovikAndreyStudDataSet();
  871. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  872. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  873. any1.MinOccurs = new decimal(0);
  874. any1.MaxOccurs = decimal.MaxValue;
  875. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  876. sequence.Items.Add(any1);
  877. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  878. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  879. any2.MinOccurs = new decimal(1);
  880. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  881. sequence.Items.Add(any2);
  882. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  883. attribute1.Name = "namespace";
  884. attribute1.FixedValue = ds.Namespace;
  885. type.Attributes.Add(attribute1);
  886. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  887. attribute2.Name = "tableTypeName";
  888. attribute2.FixedValue = "ПредметыDataTable";
  889. type.Attributes.Add(attribute2);
  890. type.Particle = sequence;
  891. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  892. if (xs.Contains(dsSchema.TargetNamespace)) {
  893. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  894. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  895. try {
  896. global::System.Xml.Schema.XmlSchema schema = null;
  897. dsSchema.Write(s1);
  898. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  899. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  900. s2.SetLength(0);
  901. schema.Write(s2);
  902. if ((s1.Length == s2.Length)) {
  903. s1.Position = 0;
  904. s2.Position = 0;
  905. for (; ((s1.Position != s1.Length)
  906. && (s1.ReadByte() == s2.ReadByte())); ) {
  907. ;
  908. }
  909. if ((s1.Position == s1.Length)) {
  910. return type;
  911. }
  912. }
  913. }
  914. }
  915. finally {
  916. if ((s1 != null)) {
  917. s1.Close();
  918. }
  919. if ((s2 != null)) {
  920. s2.Close();
  921. }
  922. }
  923. }
  924. xs.Add(dsSchema);
  925. return type;
  926. }
  927. }
  928. /// <summary>
  929. ///Represents the strongly named DataTable class.
  930. ///</summary>
  931. [global::System.Serializable()]
  932. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  933. public partial class СпециальностиDataTable : global::System.Data.TypedTableBase<СпециальностиRow> {
  934. private global::System.Data.DataColumn columnКод_специальности;
  935. private global::System.Data.DataColumn columnНаименование_специальности;
  936. private global::System.Data.DataColumn columnОписание_специальности;
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public СпециальностиDataTable() {
  940. this.TableName = "Специальности";
  941. this.BeginInit();
  942. this.InitClass();
  943. this.EndInit();
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  947. internal СпециальностиDataTable(global::System.Data.DataTable table) {
  948. this.TableName = table.TableName;
  949. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  950. this.CaseSensitive = table.CaseSensitive;
  951. }
  952. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  953. this.Locale = table.Locale;
  954. }
  955. if ((table.Namespace != table.DataSet.Namespace)) {
  956. this.Namespace = table.Namespace;
  957. }
  958. this.Prefix = table.Prefix;
  959. this.MinimumCapacity = table.MinimumCapacity;
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. protected СпециальностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  964. base(info, context) {
  965. this.InitVars();
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public global::System.Data.DataColumn Код_специальностиColumn {
  970. get {
  971. return this.columnКод_специальности;
  972. }
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public global::System.Data.DataColumn Наименование_специальностиColumn {
  977. get {
  978. return this.columnНаименование_специальности;
  979. }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public global::System.Data.DataColumn Описание_специальностиColumn {
  984. get {
  985. return this.columnОписание_специальности;
  986. }
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. [global::System.ComponentModel.Browsable(false)]
  991. public int Count {
  992. get {
  993. return this.Rows.Count;
  994. }
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. public СпециальностиRow this[int index] {
  999. get {
  1000. return ((СпециальностиRow)(this.Rows[index]));
  1001. }
  1002. }
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public event СпециальностиRowChangeEventHandler СпециальностиRowChanging;
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public event СпециальностиRowChangeEventHandler СпециальностиRowChanged;
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleting;
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleted;
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. public void AddСпециальностиRow(СпециальностиRow row) {
  1014. this.Rows.Add(row);
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public СпециальностиRow AddСпециальностиRow(string Код_специальности, string Наименование_специальности, string Описание_специальности) {
  1019. СпециальностиRow rowСпециальностиRow = ((СпециальностиRow)(this.NewRow()));
  1020. object[] columnValuesArray = new object[] {
  1021. Код_специальности,
  1022. Наименование_специальности,
  1023. Описание_специальности};
  1024. rowСпециальностиRow.ItemArray = columnValuesArray;
  1025. this.Rows.Add(rowСпециальностиRow);
  1026. return rowСпециальностиRow;
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. public СпециальностиRow FindByКод_специальности(string Код_специальности) {
  1031. return ((СпециальностиRow)(this.Rows.Find(new object[] {
  1032. Код_специальности})));
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1036. public override global::System.Data.DataTable Clone() {
  1037. СпециальностиDataTable cln = ((СпециальностиDataTable)(base.Clone()));
  1038. cln.InitVars();
  1039. return cln;
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. protected override global::System.Data.DataTable CreateInstance() {
  1044. return new СпециальностиDataTable();
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. internal void InitVars() {
  1049. this.columnКод_специальности = base.Columns["Код специальности"];
  1050. this.columnНаименование_специальности = base.Columns["Наименование специальности"];
  1051. this.columnОписание_специальности = base.Columns["Описание специальности"];
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. private void InitClass() {
  1056. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1057. base.Columns.Add(this.columnКод_специальности);
  1058. this.columnНаименование_специальности = new global::System.Data.DataColumn("Наименование специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1059. base.Columns.Add(this.columnНаименование_специальности);
  1060. this.columnОписание_специальности = new global::System.Data.DataColumn("Описание специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1061. base.Columns.Add(this.columnОписание_специальности);
  1062. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1063. this.columnКод_специальности}, true));
  1064. this.columnКод_специальности.AllowDBNull = false;
  1065. this.columnКод_специальности.Unique = true;
  1066. this.columnКод_специальности.MaxLength = 50;
  1067. this.columnНаименование_специальности.MaxLength = 50;
  1068. this.columnОписание_специальности.MaxLength = 2147483647;
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. public СпециальностиRow NewСпециальностиRow() {
  1073. return ((СпециальностиRow)(this.NewRow()));
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1078. return new СпециальностиRow(builder);
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. protected override global::System.Type GetRowType() {
  1083. return typeof(СпециальностиRow);
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1088. base.OnRowChanged(e);
  1089. if ((this.СпециальностиRowChanged != null)) {
  1090. this.СпециальностиRowChanged(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1091. }
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1096. base.OnRowChanging(e);
  1097. if ((this.СпециальностиRowChanging != null)) {
  1098. this.СпециальностиRowChanging(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1099. }
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1104. base.OnRowDeleted(e);
  1105. if ((this.СпециальностиRowDeleted != null)) {
  1106. this.СпециальностиRowDeleted(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1107. }
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1111. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1112. base.OnRowDeleting(e);
  1113. if ((this.СпециальностиRowDeleting != null)) {
  1114. this.СпециальностиRowDeleting(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1115. }
  1116. }
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1119. public void RemoveСпециальностиRow(СпециальностиRow row) {
  1120. this.Rows.Remove(row);
  1121. }
  1122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1124. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1125. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1126. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1127. IS31BorovikAndreyStudDataSet ds = new IS31BorovikAndreyStudDataSet();
  1128. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1129. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1130. any1.MinOccurs = new decimal(0);
  1131. any1.MaxOccurs = decimal.MaxValue;
  1132. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1133. sequence.Items.Add(any1);
  1134. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1135. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1136. any2.MinOccurs = new decimal(1);
  1137. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1138. sequence.Items.Add(any2);
  1139. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1140. attribute1.Name = "namespace";
  1141. attribute1.FixedValue = ds.Namespace;
  1142. type.Attributes.Add(attribute1);
  1143. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1144. attribute2.Name = "tableTypeName";
  1145. attribute2.FixedValue = "СпециальностиDataTable";
  1146. type.Attributes.Add(attribute2);
  1147. type.Particle = sequence;
  1148. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1149. if (xs.Contains(dsSchema.TargetNamespace)) {
  1150. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1151. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1152. try {
  1153. global::System.Xml.Schema.XmlSchema schema = null;
  1154. dsSchema.Write(s1);
  1155. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1156. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1157. s2.SetLength(0);
  1158. schema.Write(s2);
  1159. if ((s1.Length == s2.Length)) {
  1160. s1.Position = 0;
  1161. s2.Position = 0;
  1162. for (; ((s1.Position != s1.Length)
  1163. && (s1.ReadByte() == s2.ReadByte())); ) {
  1164. ;
  1165. }
  1166. if ((s1.Position == s1.Length)) {
  1167. return type;
  1168. }
  1169. }
  1170. }
  1171. }
  1172. finally {
  1173. if ((s1 != null)) {
  1174. s1.Close();
  1175. }
  1176. if ((s2 != null)) {
  1177. s2.Close();
  1178. }
  1179. }
  1180. }
  1181. xs.Add(dsSchema);
  1182. return type;
  1183. }
  1184. }
  1185. /// <summary>
  1186. ///Represents the strongly named DataTable class.
  1187. ///</summary>
  1188. [global::System.Serializable()]
  1189. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1190. public partial class СтудентыDataTable : global::System.Data.TypedTableBase<СтудентыRow> {
  1191. private global::System.Data.DataColumn columnКод_студента;
  1192. private global::System.Data.DataColumn columnФИО;
  1193. private global::System.Data.DataColumn columnПол;
  1194. private global::System.Data.DataColumn columnДата_рождения;
  1195. private global::System.Data.DataColumn columnРодители;
  1196. private global::System.Data.DataColumn columnАдрес;
  1197. private global::System.Data.DataColumn columnТелефон;
  1198. private global::System.Data.DataColumn columnПаспортные_данные;
  1199. private global::System.Data.DataColumn columnНомер_зачетки;
  1200. private global::System.Data.DataColumn columnДата_поступления;
  1201. private global::System.Data.DataColumn columnГруппа;
  1202. private global::System.Data.DataColumn columnКурс;
  1203. private global::System.Data.DataColumn columnКод_специальности;
  1204. private global::System.Data.DataColumn columnОчная_форма_обучения;
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. public СтудентыDataTable() {
  1208. this.TableName = "Студенты";
  1209. this.BeginInit();
  1210. this.InitClass();
  1211. this.EndInit();
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. internal СтудентыDataTable(global::System.Data.DataTable table) {
  1216. this.TableName = table.TableName;
  1217. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1218. this.CaseSensitive = table.CaseSensitive;
  1219. }
  1220. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1221. this.Locale = table.Locale;
  1222. }
  1223. if ((table.Namespace != table.DataSet.Namespace)) {
  1224. this.Namespace = table.Namespace;
  1225. }
  1226. this.Prefix = table.Prefix;
  1227. this.MinimumCapacity = table.MinimumCapacity;
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. protected СтудентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1232. base(info, context) {
  1233. this.InitVars();
  1234. }
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1237. public global::System.Data.DataColumn Код_студентаColumn {
  1238. get {
  1239. return this.columnКод_студента;
  1240. }
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. public global::System.Data.DataColumn ФИОColumn {
  1245. get {
  1246. return this.columnФИО;
  1247. }
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1251. public global::System.Data.DataColumn ПолColumn {
  1252. get {
  1253. return this.columnПол;
  1254. }
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. public global::System.Data.DataColumn Дата_рожденияColumn {
  1259. get {
  1260. return this.columnДата_рождения;
  1261. }
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public global::System.Data.DataColumn РодителиColumn {
  1266. get {
  1267. return this.columnРодители;
  1268. }
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1272. public global::System.Data.DataColumn АдресColumn {
  1273. get {
  1274. return this.columnАдрес;
  1275. }
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. public global::System.Data.DataColumn ТелефонColumn {
  1280. get {
  1281. return this.columnТелефон;
  1282. }
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public global::System.Data.DataColumn Паспортные_данныеColumn {
  1287. get {
  1288. return this.columnПаспортные_данные;
  1289. }
  1290. }
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1293. public global::System.Data.DataColumn Номер_зачеткиColumn {
  1294. get {
  1295. return this.columnНомер_зачетки;
  1296. }
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. public global::System.Data.DataColumn Дата_поступленияColumn {
  1301. get {
  1302. return this.columnДата_поступления;
  1303. }
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. public global::System.Data.DataColumn ГруппаColumn {
  1308. get {
  1309. return this.columnГруппа;
  1310. }
  1311. }
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1314. public global::System.Data.DataColumn КурсColumn {
  1315. get {
  1316. return this.columnКурс;
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public global::System.Data.DataColumn Код_специальностиColumn {
  1322. get {
  1323. return this.columnКод_специальности;
  1324. }
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. public global::System.Data.DataColumn Очная_форма_обученияColumn {
  1329. get {
  1330. return this.columnОчная_форма_обучения;
  1331. }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. [global::System.ComponentModel.Browsable(false)]
  1336. public int Count {
  1337. get {
  1338. return this.Rows.Count;
  1339. }
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. public СтудентыRow this[int index] {
  1344. get {
  1345. return ((СтудентыRow)(this.Rows[index]));
  1346. }
  1347. }
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public event СтудентыRowChangeEventHandler СтудентыRowChanging;
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1351. public event СтудентыRowChangeEventHandler СтудентыRowChanged;
  1352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1353. public event СтудентыRowChangeEventHandler СтудентыRowDeleting;
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public event СтудентыRowChangeEventHandler СтудентыRowDeleted;
  1356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1358. public void AddСтудентыRow(СтудентыRow row) {
  1359. this.Rows.Add(row);
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public СтудентыRow AddСтудентыRow(long Код_студента, string ФИО, string Пол, System.DateTime Дата_рождения, string Родители, string Адрес, string Телефон, string Паспортные_данные, long Номер_зачетки, System.DateTime Дата_поступления, string Группа, byte Курс, long Код_специальности, bool Очная_форма_обучения) {
  1364. СтудентыRow rowСтудентыRow = ((СтудентыRow)(this.NewRow()));
  1365. object[] columnValuesArray = new object[] {
  1366. Код_студента,
  1367. ФИО,
  1368. Пол,
  1369. Дата_рождения,
  1370. Родители,
  1371. Адрес,
  1372. Телефон,
  1373. Паспортные_данные,
  1374. Номер_зачетки,
  1375. Дата_поступления,
  1376. Группа,
  1377. Курс,
  1378. Код_специальности,
  1379. Очная_форма_обучения};
  1380. rowСтудентыRow.ItemArray = columnValuesArray;
  1381. this.Rows.Add(rowСтудентыRow);
  1382. return rowСтудентыRow;
  1383. }
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. public override global::System.Data.DataTable Clone() {
  1387. СтудентыDataTable cln = ((СтудентыDataTable)(base.Clone()));
  1388. cln.InitVars();
  1389. return cln;
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1393. protected override global::System.Data.DataTable CreateInstance() {
  1394. return new СтудентыDataTable();
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. internal void InitVars() {
  1399. this.columnКод_студента = base.Columns["Код студента"];
  1400. this.columnФИО = base.Columns["ФИО"];
  1401. this.columnПол = base.Columns["Пол"];
  1402. this.columnДата_рождения = base.Columns["Дата рождения"];
  1403. this.columnРодители = base.Columns["Родители"];
  1404. this.columnАдрес = base.Columns["Адрес"];
  1405. this.columnТелефон = base.Columns["Телефон"];
  1406. this.columnПаспортные_данные = base.Columns["Паспортные данные"];
  1407. this.columnНомер_зачетки = base.Columns["Номер зачетки"];
  1408. this.columnДата_поступления = base.Columns["Дата поступления"];
  1409. this.columnГруппа = base.Columns["Группа"];
  1410. this.columnКурс = base.Columns["Курс"];
  1411. this.columnКод_специальности = base.Columns["Код специальности"];
  1412. this.columnОчная_форма_обучения = base.Columns["Очная форма обучения"];
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. private void InitClass() {
  1417. this.columnКод_студента = new global::System.Data.DataColumn("Код студента", typeof(long), null, global::System.Data.MappingType.Element);
  1418. base.Columns.Add(this.columnКод_студента);
  1419. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1420. base.Columns.Add(this.columnФИО);
  1421. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1422. base.Columns.Add(this.columnПол);
  1423. this.columnДата_рождения = new global::System.Data.DataColumn("Дата рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1424. base.Columns.Add(this.columnДата_рождения);
  1425. this.columnРодители = new global::System.Data.DataColumn("Родители", typeof(string), null, global::System.Data.MappingType.Element);
  1426. base.Columns.Add(this.columnРодители);
  1427. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1428. base.Columns.Add(this.columnАдрес);
  1429. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1430. base.Columns.Add(this.columnТелефон);
  1431. this.columnПаспортные_данные = new global::System.Data.DataColumn("Паспортные данные", typeof(string), null, global::System.Data.MappingType.Element);
  1432. base.Columns.Add(this.columnПаспортные_данные);
  1433. this.columnНомер_зачетки = new global::System.Data.DataColumn("Номер зачетки", typeof(long), null, global::System.Data.MappingType.Element);
  1434. base.Columns.Add(this.columnНомер_зачетки);
  1435. this.columnДата_поступления = new global::System.Data.DataColumn("Дата поступления", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1436. base.Columns.Add(this.columnДата_поступления);
  1437. this.columnГруппа = new global::System.Data.DataColumn("Группа", typeof(string), null, global::System.Data.MappingType.Element);
  1438. base.Columns.Add(this.columnГруппа);
  1439. this.columnКурс = new global::System.Data.DataColumn("Курс", typeof(byte), null, global::System.Data.MappingType.Element);
  1440. base.Columns.Add(this.columnКурс);
  1441. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(long), null, global::System.Data.MappingType.Element);
  1442. base.Columns.Add(this.columnКод_специальности);
  1443. this.columnОчная_форма_обучения = new global::System.Data.DataColumn("Очная форма обучения", typeof(bool), null, global::System.Data.MappingType.Element);
  1444. base.Columns.Add(this.columnОчная_форма_обучения);
  1445. this.columnФИО.MaxLength = 50;
  1446. this.columnПол.MaxLength = 50;
  1447. this.columnРодители.MaxLength = 50;
  1448. this.columnАдрес.MaxLength = 2147483647;
  1449. this.columnТелефон.MaxLength = 15;
  1450. this.columnПаспортные_данные.MaxLength = 2147483647;
  1451. this.columnГруппа.MaxLength = 10;
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. public СтудентыRow NewСтудентыRow() {
  1456. return ((СтудентыRow)(this.NewRow()));
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1461. return new СтудентыRow(builder);
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1465. protected override global::System.Type GetRowType() {
  1466. return typeof(СтудентыRow);
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1470. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1471. base.OnRowChanged(e);
  1472. if ((this.СтудентыRowChanged != null)) {
  1473. this.СтудентыRowChanged(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1474. }
  1475. }
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1478. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1479. base.OnRowChanging(e);
  1480. if ((this.СтудентыRowChanging != null)) {
  1481. this.СтудентыRowChanging(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1482. }
  1483. }
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1486. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1487. base.OnRowDeleted(e);
  1488. if ((this.СтудентыRowDeleted != null)) {
  1489. this.СтудентыRowDeleted(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1490. }
  1491. }
  1492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1494. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1495. base.OnRowDeleting(e);
  1496. if ((this.СтудентыRowDeleting != null)) {
  1497. this.СтудентыRowDeleting(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1498. }
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. public void RemoveСтудентыRow(СтудентыRow row) {
  1503. this.Rows.Remove(row);
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1508. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1509. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1510. IS31BorovikAndreyStudDataSet ds = new IS31BorovikAndreyStudDataSet();
  1511. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1512. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1513. any1.MinOccurs = new decimal(0);
  1514. any1.MaxOccurs = decimal.MaxValue;
  1515. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1516. sequence.Items.Add(any1);
  1517. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1518. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1519. any2.MinOccurs = new decimal(1);
  1520. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1521. sequence.Items.Add(any2);
  1522. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1523. attribute1.Name = "namespace";
  1524. attribute1.FixedValue = ds.Namespace;
  1525. type.Attributes.Add(attribute1);
  1526. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1527. attribute2.Name = "tableTypeName";
  1528. attribute2.FixedValue = "СтудентыDataTable";
  1529. type.Attributes.Add(attribute2);
  1530. type.Particle = sequence;
  1531. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1532. if (xs.Contains(dsSchema.TargetNamespace)) {
  1533. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1534. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1535. try {
  1536. global::System.Xml.Schema.XmlSchema schema = null;
  1537. dsSchema.Write(s1);
  1538. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1539. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1540. s2.SetLength(0);
  1541. schema.Write(s2);
  1542. if ((s1.Length == s2.Length)) {
  1543. s1.Position = 0;
  1544. s2.Position = 0;
  1545. for (; ((s1.Position != s1.Length)
  1546. && (s1.ReadByte() == s2.ReadByte())); ) {
  1547. ;
  1548. }
  1549. if ((s1.Position == s1.Length)) {
  1550. return type;
  1551. }
  1552. }
  1553. }
  1554. }
  1555. finally {
  1556. if ((s1 != null)) {
  1557. s1.Close();
  1558. }
  1559. if ((s2 != null)) {
  1560. s2.Close();
  1561. }
  1562. }
  1563. }
  1564. xs.Add(dsSchema);
  1565. return type;
  1566. }
  1567. }
  1568. /// <summary>
  1569. ///Represents strongly named DataRow class.
  1570. ///</summary>
  1571. public partial class ОценкиRow : global::System.Data.DataRow {
  1572. private ОценкиDataTable tableОценки;
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1575. internal ОценкиRow(global::System.Data.DataRowBuilder rb) :
  1576. base(rb) {
  1577. this.tableОценки = ((ОценкиDataTable)(this.Table));
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. public long Код_студента {
  1582. get {
  1583. try {
  1584. return ((long)(this[this.tableОценки.Код_студентаColumn]));
  1585. }
  1586. catch (global::System.InvalidCastException e) {
  1587. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код студента\' в таблице \'Оценки\' равно DBNull.", e);
  1588. }
  1589. }
  1590. set {
  1591. this[this.tableОценки.Код_студентаColumn] = value;
  1592. }
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. public System.DateTime Дата_экзамена_1 {
  1597. get {
  1598. try {
  1599. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_1Column]));
  1600. }
  1601. catch (global::System.InvalidCastException e) {
  1602. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 1\' в таблице \'Оценки\' равно DBNull.", e);
  1603. }
  1604. }
  1605. set {
  1606. this[this.tableОценки.Дата_экзамена_1Column] = value;
  1607. }
  1608. }
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. public long Код_предмета_1 {
  1612. get {
  1613. try {
  1614. return ((long)(this[this.tableОценки.Код_предмета_1Column]));
  1615. }
  1616. catch (global::System.InvalidCastException e) {
  1617. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 1\' в таблице \'Оценки\' равно DBNull.", e);
  1618. }
  1619. }
  1620. set {
  1621. this[this.tableОценки.Код_предмета_1Column] = value;
  1622. }
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. public byte Оценка_1 {
  1627. get {
  1628. try {
  1629. return ((byte)(this[this.tableОценки.Оценка_1Column]));
  1630. }
  1631. catch (global::System.InvalidCastException e) {
  1632. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка 1\' в таблице \'Оценки\' равно DBNull.", e);
  1633. }
  1634. }
  1635. set {
  1636. this[this.tableОценки.Оценка_1Column] = value;
  1637. }
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. public System.DateTime Дата_экзамена_2 {
  1642. get {
  1643. try {
  1644. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_2Column]));
  1645. }
  1646. catch (global::System.InvalidCastException e) {
  1647. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 2\' в таблице \'Оценки\' равно DBNull.", e);
  1648. }
  1649. }
  1650. set {
  1651. this[this.tableОценки.Дата_экзамена_2Column] = value;
  1652. }
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. public long Код_предмета_2 {
  1657. get {
  1658. try {
  1659. return ((long)(this[this.tableОценки.Код_предмета_2Column]));
  1660. }
  1661. catch (global::System.InvalidCastException e) {
  1662. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 2\' в таблице \'Оценки\' равно DBNull.", e);
  1663. }
  1664. }
  1665. set {
  1666. this[this.tableОценки.Код_предмета_2Column] = value;
  1667. }
  1668. }
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1671. public byte Оценка_2 {
  1672. get {
  1673. try {
  1674. return ((byte)(this[this.tableОценки.Оценка_2Column]));
  1675. }
  1676. catch (global::System.InvalidCastException e) {
  1677. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка 2\' в таблице \'Оценки\' равно DBNull.", e);
  1678. }
  1679. }
  1680. set {
  1681. this[this.tableОценки.Оценка_2Column] = value;
  1682. }
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1686. public System.DateTime Дата_экзамена_3 {
  1687. get {
  1688. try {
  1689. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_3Column]));
  1690. }
  1691. catch (global::System.InvalidCastException e) {
  1692. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 3\' в таблице \'Оценки\' равно DBNull.", e);
  1693. }
  1694. }
  1695. set {
  1696. this[this.tableОценки.Дата_экзамена_3Column] = value;
  1697. }
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1701. public long Код_предмета_3 {
  1702. get {
  1703. try {
  1704. return ((long)(this[this.tableОценки.Код_предмета_3Column]));
  1705. }
  1706. catch (global::System.InvalidCastException e) {
  1707. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 3\' в таблице \'Оценки\' равно DBNull.", e);
  1708. }
  1709. }
  1710. set {
  1711. this[this.tableОценки.Код_предмета_3Column] = value;
  1712. }
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. public byte Оценка_3 {
  1717. get {
  1718. try {
  1719. return ((byte)(this[this.tableОценки.Оценка_3Column]));
  1720. }
  1721. catch (global::System.InvalidCastException e) {
  1722. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка 3\' в таблице \'Оценки\' равно DBNull.", e);
  1723. }
  1724. }
  1725. set {
  1726. this[this.tableОценки.Оценка_3Column] = value;
  1727. }
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1731. public float Средний_балл {
  1732. get {
  1733. try {
  1734. return ((float)(this[this.tableОценки.Средний_баллColumn]));
  1735. }
  1736. catch (global::System.InvalidCastException e) {
  1737. throw new global::System.Data.StrongTypingException("Значение для столбца \'Средний балл\' в таблице \'Оценки\' равно DBNull.", e);
  1738. }
  1739. }
  1740. set {
  1741. this[this.tableОценки.Средний_баллColumn] = value;
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. public bool IsКод_студентаNull() {
  1747. return this.IsNull(this.tableОценки.Код_студентаColumn);
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. public void SetКод_студентаNull() {
  1752. this[this.tableОценки.Код_студентаColumn] = global::System.Convert.DBNull;
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. public bool IsДата_экзамена_1Null() {
  1757. return this.IsNull(this.tableОценки.Дата_экзамена_1Column);
  1758. }
  1759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1761. public void SetДата_экзамена_1Null() {
  1762. this[this.tableОценки.Дата_экзамена_1Column] = global::System.Convert.DBNull;
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1766. public bool IsКод_предмета_1Null() {
  1767. return this.IsNull(this.tableОценки.Код_предмета_1Column);
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public void SetКод_предмета_1Null() {
  1772. this[this.tableОценки.Код_предмета_1Column] = global::System.Convert.DBNull;
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. public bool IsОценка_1Null() {
  1777. return this.IsNull(this.tableОценки.Оценка_1Column);
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. public void SetОценка_1Null() {
  1782. this[this.tableОценки.Оценка_1Column] = global::System.Convert.DBNull;
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. public bool IsДата_экзамена_2Null() {
  1787. return this.IsNull(this.tableОценки.Дата_экзамена_2Column);
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1791. public void SetДата_экзамена_2Null() {
  1792. this[this.tableОценки.Дата_экзамена_2Column] = global::System.Convert.DBNull;
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public bool IsКод_предмета_2Null() {
  1797. return this.IsNull(this.tableОценки.Код_предмета_2Column);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public void SetКод_предмета_2Null() {
  1802. this[this.tableОценки.Код_предмета_2Column] = global::System.Convert.DBNull;
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public bool IsОценка_2Null() {
  1807. return this.IsNull(this.tableОценки.Оценка_2Column);
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public void SetОценка_2Null() {
  1812. this[this.tableОценки.Оценка_2Column] = global::System.Convert.DBNull;
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public bool IsДата_экзамена_3Null() {
  1817. return this.IsNull(this.tableОценки.Дата_экзамена_3Column);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public void SetДата_экзамена_3Null() {
  1822. this[this.tableОценки.Дата_экзамена_3Column] = global::System.Convert.DBNull;
  1823. }
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. public bool IsКод_предмета_3Null() {
  1827. return this.IsNull(this.tableОценки.Код_предмета_3Column);
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public void SetКод_предмета_3Null() {
  1832. this[this.tableОценки.Код_предмета_3Column] = global::System.Convert.DBNull;
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. public bool IsОценка_3Null() {
  1837. return this.IsNull(this.tableОценки.Оценка_3Column);
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. public void SetОценка_3Null() {
  1842. this[this.tableОценки.Оценка_3Column] = global::System.Convert.DBNull;
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1846. public bool IsСредний_баллNull() {
  1847. return this.IsNull(this.tableОценки.Средний_баллColumn);
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1851. public void SetСредний_баллNull() {
  1852. this[this.tableОценки.Средний_баллColumn] = global::System.Convert.DBNull;
  1853. }
  1854. }
  1855. /// <summary>
  1856. ///Represents strongly named DataRow class.
  1857. ///</summary>
  1858. public partial class ПредметыRow : global::System.Data.DataRow {
  1859. private ПредметыDataTable tableПредметы;
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. internal ПредметыRow(global::System.Data.DataRowBuilder rb) :
  1863. base(rb) {
  1864. this.tableПредметы = ((ПредметыDataTable)(this.Table));
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. public long Код_предмета {
  1869. get {
  1870. try {
  1871. return ((long)(this[this.tableПредметы.Код_предметаColumn]));
  1872. }
  1873. catch (global::System.InvalidCastException e) {
  1874. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета\' в таблице \'Предметы\' равно DBNull.", e);
  1875. }
  1876. }
  1877. set {
  1878. this[this.tableПредметы.Код_предметаColumn] = value;
  1879. }
  1880. }
  1881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1883. public string Специальности {
  1884. get {
  1885. try {
  1886. return ((string)(this[this.tableПредметы.СпециальностиColumn]));
  1887. }
  1888. catch (global::System.InvalidCastException e) {
  1889. throw new global::System.Data.StrongTypingException("Значение для столбца \'Специальности\' в таблице \'Предметы\' равно DBNull.", e);
  1890. }
  1891. }
  1892. set {
  1893. this[this.tableПредметы.СпециальностиColumn] = value;
  1894. }
  1895. }
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1898. public string Описание_специальности {
  1899. get {
  1900. try {
  1901. return ((string)(this[this.tableПредметы.Описание_специальностиColumn]));
  1902. }
  1903. catch (global::System.InvalidCastException e) {
  1904. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание специальности\' в таблице \'Предметы\' равно DBNull.", e);
  1905. }
  1906. }
  1907. set {
  1908. this[this.tableПредметы.Описание_специальностиColumn] = value;
  1909. }
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1913. public bool IsКод_предметаNull() {
  1914. return this.IsNull(this.tableПредметы.Код_предметаColumn);
  1915. }
  1916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1918. public void SetКод_предметаNull() {
  1919. this[this.tableПредметы.Код_предметаColumn] = global::System.Convert.DBNull;
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1923. public bool IsСпециальностиNull() {
  1924. return this.IsNull(this.tableПредметы.СпециальностиColumn);
  1925. }
  1926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1928. public void SetСпециальностиNull() {
  1929. this[this.tableПредметы.СпециальностиColumn] = global::System.Convert.DBNull;
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. public bool IsОписание_специальностиNull() {
  1934. return this.IsNull(this.tableПредметы.Описание_специальностиColumn);
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public void SetОписание_специальностиNull() {
  1939. this[this.tableПредметы.Описание_специальностиColumn] = global::System.Convert.DBNull;
  1940. }
  1941. }
  1942. /// <summary>
  1943. ///Represents strongly named DataRow class.
  1944. ///</summary>
  1945. public partial class СпециальностиRow : global::System.Data.DataRow {
  1946. private СпециальностиDataTable tableСпециальности;
  1947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1949. internal СпециальностиRow(global::System.Data.DataRowBuilder rb) :
  1950. base(rb) {
  1951. this.tableСпециальности = ((СпециальностиDataTable)(this.Table));
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public string Код_специальности {
  1956. get {
  1957. return ((string)(this[this.tableСпециальности.Код_специальностиColumn]));
  1958. }
  1959. set {
  1960. this[this.tableСпециальности.Код_специальностиColumn] = value;
  1961. }
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. public string Наименование_специальности {
  1966. get {
  1967. try {
  1968. return ((string)(this[this.tableСпециальности.Наименование_специальностиColumn]));
  1969. }
  1970. catch (global::System.InvalidCastException e) {
  1971. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование специальности\' в таблице \'Специальности\' равно" +
  1972. " DBNull.", e);
  1973. }
  1974. }
  1975. set {
  1976. this[this.tableСпециальности.Наименование_специальностиColumn] = value;
  1977. }
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. public string Описание_специальности {
  1982. get {
  1983. try {
  1984. return ((string)(this[this.tableСпециальности.Описание_специальностиColumn]));
  1985. }
  1986. catch (global::System.InvalidCastException e) {
  1987. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание специальности\' в таблице \'Специальности\' равно DBN" +
  1988. "ull.", e);
  1989. }
  1990. }
  1991. set {
  1992. this[this.tableСпециальности.Описание_специальностиColumn] = value;
  1993. }
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. public bool IsНаименование_специальностиNull() {
  1998. return this.IsNull(this.tableСпециальности.Наименование_специальностиColumn);
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. public void SetНаименование_специальностиNull() {
  2003. this[this.tableСпециальности.Наименование_специальностиColumn] = global::System.Convert.DBNull;
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2007. public bool IsОписание_специальностиNull() {
  2008. return this.IsNull(this.tableСпециальности.Описание_специальностиColumn);
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2012. public void SetОписание_специальностиNull() {
  2013. this[this.tableСпециальности.Описание_специальностиColumn] = global::System.Convert.DBNull;
  2014. }
  2015. }
  2016. /// <summary>
  2017. ///Represents strongly named DataRow class.
  2018. ///</summary>
  2019. public partial class СтудентыRow : global::System.Data.DataRow {
  2020. private СтудентыDataTable tableСтуденты;
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. internal СтудентыRow(global::System.Data.DataRowBuilder rb) :
  2024. base(rb) {
  2025. this.tableСтуденты = ((СтудентыDataTable)(this.Table));
  2026. }
  2027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2029. public long Код_студента {
  2030. get {
  2031. try {
  2032. return ((long)(this[this.tableСтуденты.Код_студентаColumn]));
  2033. }
  2034. catch (global::System.InvalidCastException e) {
  2035. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код студента\' в таблице \'Студенты\' равно DBNull.", e);
  2036. }
  2037. }
  2038. set {
  2039. this[this.tableСтуденты.Код_студентаColumn] = value;
  2040. }
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2044. public string ФИО {
  2045. get {
  2046. try {
  2047. return ((string)(this[this.tableСтуденты.ФИОColumn]));
  2048. }
  2049. catch (global::System.InvalidCastException e) {
  2050. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Студенты\' равно DBNull.", e);
  2051. }
  2052. }
  2053. set {
  2054. this[this.tableСтуденты.ФИОColumn] = value;
  2055. }
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2059. public string Пол {
  2060. get {
  2061. try {
  2062. return ((string)(this[this.tableСтуденты.ПолColumn]));
  2063. }
  2064. catch (global::System.InvalidCastException e) {
  2065. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пол\' в таблице \'Студенты\' равно DBNull.", e);
  2066. }
  2067. }
  2068. set {
  2069. this[this.tableСтуденты.ПолColumn] = value;
  2070. }
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. public System.DateTime Дата_рождения {
  2075. get {
  2076. try {
  2077. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_рожденияColumn]));
  2078. }
  2079. catch (global::System.InvalidCastException e) {
  2080. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата рождения\' в таблице \'Студенты\' равно DBNull.", e);
  2081. }
  2082. }
  2083. set {
  2084. this[this.tableСтуденты.Дата_рожденияColumn] = value;
  2085. }
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. public string Родители {
  2090. get {
  2091. try {
  2092. return ((string)(this[this.tableСтуденты.РодителиColumn]));
  2093. }
  2094. catch (global::System.InvalidCastException e) {
  2095. throw new global::System.Data.StrongTypingException("Значение для столбца \'Родители\' в таблице \'Студенты\' равно DBNull.", e);
  2096. }
  2097. }
  2098. set {
  2099. this[this.tableСтуденты.РодителиColumn] = value;
  2100. }
  2101. }
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. public string Адрес {
  2105. get {
  2106. try {
  2107. return ((string)(this[this.tableСтуденты.АдресColumn]));
  2108. }
  2109. catch (global::System.InvalidCastException e) {
  2110. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Студенты\' равно DBNull.", e);
  2111. }
  2112. }
  2113. set {
  2114. this[this.tableСтуденты.АдресColumn] = value;
  2115. }
  2116. }
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. public string Телефон {
  2120. get {
  2121. try {
  2122. return ((string)(this[this.tableСтуденты.ТелефонColumn]));
  2123. }
  2124. catch (global::System.InvalidCastException e) {
  2125. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Студенты\' равно DBNull.", e);
  2126. }
  2127. }
  2128. set {
  2129. this[this.tableСтуденты.ТелефонColumn] = value;
  2130. }
  2131. }
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2134. public string Паспортные_данные {
  2135. get {
  2136. try {
  2137. return ((string)(this[this.tableСтуденты.Паспортные_данныеColumn]));
  2138. }
  2139. catch (global::System.InvalidCastException e) {
  2140. throw new global::System.Data.StrongTypingException("Значение для столбца \'Паспортные данные\' в таблице \'Студенты\' равно DBNull.", e);
  2141. }
  2142. }
  2143. set {
  2144. this[this.tableСтуденты.Паспортные_данныеColumn] = value;
  2145. }
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. public long Номер_зачетки {
  2150. get {
  2151. try {
  2152. return ((long)(this[this.tableСтуденты.Номер_зачеткиColumn]));
  2153. }
  2154. catch (global::System.InvalidCastException e) {
  2155. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер зачетки\' в таблице \'Студенты\' равно DBNull.", e);
  2156. }
  2157. }
  2158. set {
  2159. this[this.tableСтуденты.Номер_зачеткиColumn] = value;
  2160. }
  2161. }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2164. public System.DateTime Дата_поступления {
  2165. get {
  2166. try {
  2167. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_поступленияColumn]));
  2168. }
  2169. catch (global::System.InvalidCastException e) {
  2170. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата поступления\' в таблице \'Студенты\' равно DBNull.", e);
  2171. }
  2172. }
  2173. set {
  2174. this[this.tableСтуденты.Дата_поступленияColumn] = value;
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public string Группа {
  2180. get {
  2181. try {
  2182. return ((string)(this[this.tableСтуденты.ГруппаColumn]));
  2183. }
  2184. catch (global::System.InvalidCastException e) {
  2185. throw new global::System.Data.StrongTypingException("Значение для столбца \'Группа\' в таблице \'Студенты\' равно DBNull.", e);
  2186. }
  2187. }
  2188. set {
  2189. this[this.tableСтуденты.ГруппаColumn] = value;
  2190. }
  2191. }
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. public byte Курс {
  2195. get {
  2196. try {
  2197. return ((byte)(this[this.tableСтуденты.КурсColumn]));
  2198. }
  2199. catch (global::System.InvalidCastException e) {
  2200. throw new global::System.Data.StrongTypingException("Значение для столбца \'Курс\' в таблице \'Студенты\' равно DBNull.", e);
  2201. }
  2202. }
  2203. set {
  2204. this[this.tableСтуденты.КурсColumn] = value;
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. public long Код_специальности {
  2210. get {
  2211. try {
  2212. return ((long)(this[this.tableСтуденты.Код_специальностиColumn]));
  2213. }
  2214. catch (global::System.InvalidCastException e) {
  2215. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код специальности\' в таблице \'Студенты\' равно DBNull.", e);
  2216. }
  2217. }
  2218. set {
  2219. this[this.tableСтуденты.Код_специальностиColumn] = value;
  2220. }
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. public bool Очная_форма_обучения {
  2225. get {
  2226. try {
  2227. return ((bool)(this[this.tableСтуденты.Очная_форма_обученияColumn]));
  2228. }
  2229. catch (global::System.InvalidCastException e) {
  2230. throw new global::System.Data.StrongTypingException("Значение для столбца \'Очная форма обучения\' в таблице \'Студенты\' равно DBNull.", e);
  2231. }
  2232. }
  2233. set {
  2234. this[this.tableСтуденты.Очная_форма_обученияColumn] = value;
  2235. }
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public bool IsКод_студентаNull() {
  2240. return this.IsNull(this.tableСтуденты.Код_студентаColumn);
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2244. public void SetКод_студентаNull() {
  2245. this[this.tableСтуденты.Код_студентаColumn] = global::System.Convert.DBNull;
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public bool IsФИОNull() {
  2250. return this.IsNull(this.tableСтуденты.ФИОColumn);
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2254. public void SetФИОNull() {
  2255. this[this.tableСтуденты.ФИОColumn] = global::System.Convert.DBNull;
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2259. public bool IsПолNull() {
  2260. return this.IsNull(this.tableСтуденты.ПолColumn);
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. public void SetПолNull() {
  2265. this[this.tableСтуденты.ПолColumn] = global::System.Convert.DBNull;
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. public bool IsДата_рожденияNull() {
  2270. return this.IsNull(this.tableСтуденты.Дата_рожденияColumn);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public void SetДата_рожденияNull() {
  2275. this[this.tableСтуденты.Дата_рожденияColumn] = global::System.Convert.DBNull;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public bool IsРодителиNull() {
  2280. return this.IsNull(this.tableСтуденты.РодителиColumn);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public void SetРодителиNull() {
  2285. this[this.tableСтуденты.РодителиColumn] = global::System.Convert.DBNull;
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. public bool IsАдресNull() {
  2290. return this.IsNull(this.tableСтуденты.АдресColumn);
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. public void SetАдресNull() {
  2295. this[this.tableСтуденты.АдресColumn] = global::System.Convert.DBNull;
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public bool IsТелефонNull() {
  2300. return this.IsNull(this.tableСтуденты.ТелефонColumn);
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public void SetТелефонNull() {
  2305. this[this.tableСтуденты.ТелефонColumn] = global::System.Convert.DBNull;
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. public bool IsПаспортные_данныеNull() {
  2310. return this.IsNull(this.tableСтуденты.Паспортные_данныеColumn);
  2311. }
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. public void SetПаспортные_данныеNull() {
  2315. this[this.tableСтуденты.Паспортные_данныеColumn] = global::System.Convert.DBNull;
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. public bool IsНомер_зачеткиNull() {
  2320. return this.IsNull(this.tableСтуденты.Номер_зачеткиColumn);
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2324. public void SetНомер_зачеткиNull() {
  2325. this[this.tableСтуденты.Номер_зачеткиColumn] = global::System.Convert.DBNull;
  2326. }
  2327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2329. public bool IsДата_поступленияNull() {
  2330. return this.IsNull(this.tableСтуденты.Дата_поступленияColumn);
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2334. public void SetДата_поступленияNull() {
  2335. this[this.tableСтуденты.Дата_поступленияColumn] = global::System.Convert.DBNull;
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public bool IsГруппаNull() {
  2340. return this.IsNull(this.tableСтуденты.ГруппаColumn);
  2341. }
  2342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2344. public void SetГруппаNull() {
  2345. this[this.tableСтуденты.ГруппаColumn] = global::System.Convert.DBNull;
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2349. public bool IsКурсNull() {
  2350. return this.IsNull(this.tableСтуденты.КурсColumn);
  2351. }
  2352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2354. public void SetКурсNull() {
  2355. this[this.tableСтуденты.КурсColumn] = global::System.Convert.DBNull;
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. public bool IsКод_специальностиNull() {
  2360. return this.IsNull(this.tableСтуденты.Код_специальностиColumn);
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. public void SetКод_специальностиNull() {
  2365. this[this.tableСтуденты.Код_специальностиColumn] = global::System.Convert.DBNull;
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2369. public bool IsОчная_форма_обученияNull() {
  2370. return this.IsNull(this.tableСтуденты.Очная_форма_обученияColumn);
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. public void SetОчная_форма_обученияNull() {
  2375. this[this.tableСтуденты.Очная_форма_обученияColumn] = global::System.Convert.DBNull;
  2376. }
  2377. }
  2378. /// <summary>
  2379. ///Row event argument class
  2380. ///</summary>
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public class ОценкиRowChangeEvent : global::System.EventArgs {
  2383. private ОценкиRow eventRow;
  2384. private global::System.Data.DataRowAction eventAction;
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public ОценкиRowChangeEvent(ОценкиRow row, global::System.Data.DataRowAction action) {
  2388. this.eventRow = row;
  2389. this.eventAction = action;
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. public ОценкиRow Row {
  2394. get {
  2395. return this.eventRow;
  2396. }
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. public global::System.Data.DataRowAction Action {
  2401. get {
  2402. return this.eventAction;
  2403. }
  2404. }
  2405. }
  2406. /// <summary>
  2407. ///Row event argument class
  2408. ///</summary>
  2409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2410. public class ПредметыRowChangeEvent : global::System.EventArgs {
  2411. private ПредметыRow eventRow;
  2412. private global::System.Data.DataRowAction eventAction;
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. public ПредметыRowChangeEvent(ПредметыRow row, global::System.Data.DataRowAction action) {
  2416. this.eventRow = row;
  2417. this.eventAction = action;
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. public ПредметыRow Row {
  2422. get {
  2423. return this.eventRow;
  2424. }
  2425. }
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public global::System.Data.DataRowAction Action {
  2429. get {
  2430. return this.eventAction;
  2431. }
  2432. }
  2433. }
  2434. /// <summary>
  2435. ///Row event argument class
  2436. ///</summary>
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public class СпециальностиRowChangeEvent : global::System.EventArgs {
  2439. private СпециальностиRow eventRow;
  2440. private global::System.Data.DataRowAction eventAction;
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2443. public СпециальностиRowChangeEvent(СпециальностиRow row, global::System.Data.DataRowAction action) {
  2444. this.eventRow = row;
  2445. this.eventAction = action;
  2446. }
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. public СпециальностиRow Row {
  2450. get {
  2451. return this.eventRow;
  2452. }
  2453. }
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2456. public global::System.Data.DataRowAction Action {
  2457. get {
  2458. return this.eventAction;
  2459. }
  2460. }
  2461. }
  2462. /// <summary>
  2463. ///Row event argument class
  2464. ///</summary>
  2465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2466. public class СтудентыRowChangeEvent : global::System.EventArgs {
  2467. private СтудентыRow eventRow;
  2468. private global::System.Data.DataRowAction eventAction;
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. public СтудентыRowChangeEvent(СтудентыRow row, global::System.Data.DataRowAction action) {
  2472. this.eventRow = row;
  2473. this.eventAction = action;
  2474. }
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2477. public СтудентыRow Row {
  2478. get {
  2479. return this.eventRow;
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. public global::System.Data.DataRowAction Action {
  2485. get {
  2486. return this.eventAction;
  2487. }
  2488. }
  2489. }
  2490. }
  2491. }
  2492. namespace IS31BorovikAleksandrStudents.IS31BorovikAndreyStudDataSetTableAdapters {
  2493. /// <summary>
  2494. ///Represents the connection and commands used to retrieve and save data.
  2495. ///</summary>
  2496. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2497. [global::System.ComponentModel.ToolboxItem(true)]
  2498. [global::System.ComponentModel.DataObjectAttribute(true)]
  2499. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2500. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2502. public partial class ОценкиTableAdapter : global::System.ComponentModel.Component {
  2503. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2504. private global::System.Data.SqlClient.SqlConnection _connection;
  2505. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2506. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2507. private bool _clearBeforeFill;
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. public ОценкиTableAdapter() {
  2511. this.ClearBeforeFill = true;
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2516. get {
  2517. if ((this._adapter == null)) {
  2518. this.InitAdapter();
  2519. }
  2520. return this._adapter;
  2521. }
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. internal global::System.Data.SqlClient.SqlConnection Connection {
  2526. get {
  2527. if ((this._connection == null)) {
  2528. this.InitConnection();
  2529. }
  2530. return this._connection;
  2531. }
  2532. set {
  2533. this._connection = value;
  2534. if ((this.Adapter.InsertCommand != null)) {
  2535. this.Adapter.InsertCommand.Connection = value;
  2536. }
  2537. if ((this.Adapter.DeleteCommand != null)) {
  2538. this.Adapter.DeleteCommand.Connection = value;
  2539. }
  2540. if ((this.Adapter.UpdateCommand != null)) {
  2541. this.Adapter.UpdateCommand.Connection = value;
  2542. }
  2543. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2544. if ((this.CommandCollection[i] != null)) {
  2545. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2546. }
  2547. }
  2548. }
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2552. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2553. get {
  2554. return this._transaction;
  2555. }
  2556. set {
  2557. this._transaction = value;
  2558. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2559. this.CommandCollection[i].Transaction = this._transaction;
  2560. }
  2561. if (((this.Adapter != null)
  2562. && (this.Adapter.DeleteCommand != null))) {
  2563. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2564. }
  2565. if (((this.Adapter != null)
  2566. && (this.Adapter.InsertCommand != null))) {
  2567. this.Adapter.InsertCommand.Transaction = this._transaction;
  2568. }
  2569. if (((this.Adapter != null)
  2570. && (this.Adapter.UpdateCommand != null))) {
  2571. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2572. }
  2573. }
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2578. get {
  2579. if ((this._commandCollection == null)) {
  2580. this.InitCommandCollection();
  2581. }
  2582. return this._commandCollection;
  2583. }
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2587. public bool ClearBeforeFill {
  2588. get {
  2589. return this._clearBeforeFill;
  2590. }
  2591. set {
  2592. this._clearBeforeFill = value;
  2593. }
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. private void InitAdapter() {
  2598. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2599. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2600. tableMapping.SourceTable = "Table";
  2601. tableMapping.DataSetTable = "Оценки";
  2602. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  2603. tableMapping.ColumnMappings.Add("Дата экзамена 1", "Дата экзамена 1");
  2604. tableMapping.ColumnMappings.Add("Код предмета 1", "Код предмета 1");
  2605. tableMapping.ColumnMappings.Add("Оценка 1", "Оценка 1");
  2606. tableMapping.ColumnMappings.Add("Дата экзамена 2", "Дата экзамена 2");
  2607. tableMapping.ColumnMappings.Add("Код предмета 2", "Код предмета 2");
  2608. tableMapping.ColumnMappings.Add("Оценка 2", "Оценка 2");
  2609. tableMapping.ColumnMappings.Add("Дата экзамена 3", "Дата экзамена 3");
  2610. tableMapping.ColumnMappings.Add("Код предмета 3", "Код предмета 3");
  2611. tableMapping.ColumnMappings.Add("Оценка 3", "Оценка 3");
  2612. tableMapping.ColumnMappings.Add("Средний балл", "Средний балл");
  2613. this._adapter.TableMappings.Add(tableMapping);
  2614. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2615. this._adapter.InsertCommand.Connection = this.Connection;
  2616. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Оценки] ([Код студента], [Дата экзамена 1], [Код предмета 1], [Оценка 1], [Дата экзамена 2], [Код предмета 2], [Оценка 2], [Дата экзамена 3], [Код предмета 3], [Оценка 3], [Средний балл]) VALUES (@Код_студента, @Дата_экзамена_1, @Код_предмета_1, @Оценка_1, @Дата_экзамена_2, @Код_предмета_2, @Оценка_2, @Дата_экзамена_3, @Код_предмета_3, @Оценка_3, @Средний_балл)";
  2617. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2618. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_студента", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2619. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_экзамена_1", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата экзамена 1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2620. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2621. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка_1", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка 1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2622. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_экзамена_2", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата экзамена 2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2623. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2624. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка_2", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка 2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2625. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_экзамена_3", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата экзамена 3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2626. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_3", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2627. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка_3", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка 3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2628. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Средний_балл", global::System.Data.SqlDbType.Real, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Средний балл", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. private void InitConnection() {
  2633. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2634. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.IS31BorovikAndreyStudConnectionString;
  2635. }
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2638. private void InitCommandCollection() {
  2639. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2640. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2641. this._commandCollection[0].Connection = this.Connection;
  2642. this._commandCollection[0].CommandText = "SELECT [Код студента], [Дата экзамена 1], [Код предмета 1], [Оценка 1], [Дата экз" +
  2643. "амена 2], [Код предмета 2], [Оценка 2], [Дата экзамена 3], [Код предмета 3], [Оц" +
  2644. "енка 3], [Средний балл] FROM dbo.Оценки";
  2645. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2646. }
  2647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2650. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2651. public virtual int Fill(IS31BorovikAndreyStudDataSet.ОценкиDataTable dataTable) {
  2652. this.Adapter.SelectCommand = this.CommandCollection[0];
  2653. if ((this.ClearBeforeFill == true)) {
  2654. dataTable.Clear();
  2655. }
  2656. int returnValue = this.Adapter.Fill(dataTable);
  2657. return returnValue;
  2658. }
  2659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2662. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2663. public virtual IS31BorovikAndreyStudDataSet.ОценкиDataTable GetData() {
  2664. this.Adapter.SelectCommand = this.CommandCollection[0];
  2665. IS31BorovikAndreyStudDataSet.ОценкиDataTable dataTable = new IS31BorovikAndreyStudDataSet.ОценкиDataTable();
  2666. this.Adapter.Fill(dataTable);
  2667. return dataTable;
  2668. }
  2669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2672. public virtual int Update(IS31BorovikAndreyStudDataSet.ОценкиDataTable dataTable) {
  2673. return this.Adapter.Update(dataTable);
  2674. }
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2678. public virtual int Update(IS31BorovikAndreyStudDataSet dataSet) {
  2679. return this.Adapter.Update(dataSet, "Оценки");
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2684. public virtual int Update(global::System.Data.DataRow dataRow) {
  2685. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2686. dataRow});
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2691. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2692. return this.Adapter.Update(dataRows);
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2697. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2698. public virtual int Insert(global::System.Nullable<long> Код_студента, global::System.Nullable<global::System.DateTime> Дата_экзамена_1, global::System.Nullable<long> Код_предмета_1, global::System.Nullable<byte> Оценка_1, global::System.Nullable<global::System.DateTime> Дата_экзамена_2, global::System.Nullable<long> Код_предмета_2, global::System.Nullable<byte> Оценка_2, global::System.Nullable<global::System.DateTime> Дата_экзамена_3, global::System.Nullable<long> Код_предмета_3, global::System.Nullable<byte> Оценка_3, global::System.Nullable<float> Средний_балл) {
  2699. if ((Код_студента.HasValue == true)) {
  2700. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_студента.Value));
  2701. }
  2702. else {
  2703. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2704. }
  2705. if ((Дата_экзамена_1.HasValue == true)) {
  2706. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_экзамена_1.Value));
  2707. }
  2708. else {
  2709. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2710. }
  2711. if ((Код_предмета_1.HasValue == true)) {
  2712. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(Код_предмета_1.Value));
  2713. }
  2714. else {
  2715. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2716. }
  2717. if ((Оценка_1.HasValue == true)) {
  2718. this.Adapter.InsertCommand.Parameters[3].Value = ((byte)(Оценка_1.Value));
  2719. }
  2720. else {
  2721. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2722. }
  2723. if ((Дата_экзамена_2.HasValue == true)) {
  2724. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата_экзамена_2.Value));
  2725. }
  2726. else {
  2727. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  2728. }
  2729. if ((Код_предмета_2.HasValue == true)) {
  2730. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(Код_предмета_2.Value));
  2731. }
  2732. else {
  2733. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2734. }
  2735. if ((Оценка_2.HasValue == true)) {
  2736. this.Adapter.InsertCommand.Parameters[6].Value = ((byte)(Оценка_2.Value));
  2737. }
  2738. else {
  2739. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  2740. }
  2741. if ((Дата_экзамена_3.HasValue == true)) {
  2742. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_экзамена_3.Value));
  2743. }
  2744. else {
  2745. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  2746. }
  2747. if ((Код_предмета_3.HasValue == true)) {
  2748. this.Adapter.InsertCommand.Parameters[8].Value = ((long)(Код_предмета_3.Value));
  2749. }
  2750. else {
  2751. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  2752. }
  2753. if ((Оценка_3.HasValue == true)) {
  2754. this.Adapter.InsertCommand.Parameters[9].Value = ((byte)(Оценка_3.Value));
  2755. }
  2756. else {
  2757. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  2758. }
  2759. if ((Средний_балл.HasValue == true)) {
  2760. this.Adapter.InsertCommand.Parameters[10].Value = ((float)(Средний_балл.Value));
  2761. }
  2762. else {
  2763. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  2764. }
  2765. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2766. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2767. != global::System.Data.ConnectionState.Open)) {
  2768. this.Adapter.InsertCommand.Connection.Open();
  2769. }
  2770. try {
  2771. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2772. return returnValue;
  2773. }
  2774. finally {
  2775. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2776. this.Adapter.InsertCommand.Connection.Close();
  2777. }
  2778. }
  2779. }
  2780. }
  2781. /// <summary>
  2782. ///Represents the connection and commands used to retrieve and save data.
  2783. ///</summary>
  2784. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2785. [global::System.ComponentModel.ToolboxItem(true)]
  2786. [global::System.ComponentModel.DataObjectAttribute(true)]
  2787. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2788. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2789. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2790. public partial class ПредметыTableAdapter : global::System.ComponentModel.Component {
  2791. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2792. private global::System.Data.SqlClient.SqlConnection _connection;
  2793. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2794. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2795. private bool _clearBeforeFill;
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2798. public ПредметыTableAdapter() {
  2799. this.ClearBeforeFill = true;
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2804. get {
  2805. if ((this._adapter == null)) {
  2806. this.InitAdapter();
  2807. }
  2808. return this._adapter;
  2809. }
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2813. internal global::System.Data.SqlClient.SqlConnection Connection {
  2814. get {
  2815. if ((this._connection == null)) {
  2816. this.InitConnection();
  2817. }
  2818. return this._connection;
  2819. }
  2820. set {
  2821. this._connection = value;
  2822. if ((this.Adapter.InsertCommand != null)) {
  2823. this.Adapter.InsertCommand.Connection = value;
  2824. }
  2825. if ((this.Adapter.DeleteCommand != null)) {
  2826. this.Adapter.DeleteCommand.Connection = value;
  2827. }
  2828. if ((this.Adapter.UpdateCommand != null)) {
  2829. this.Adapter.UpdateCommand.Connection = value;
  2830. }
  2831. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2832. if ((this.CommandCollection[i] != null)) {
  2833. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2834. }
  2835. }
  2836. }
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2840. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2841. get {
  2842. return this._transaction;
  2843. }
  2844. set {
  2845. this._transaction = value;
  2846. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2847. this.CommandCollection[i].Transaction = this._transaction;
  2848. }
  2849. if (((this.Adapter != null)
  2850. && (this.Adapter.DeleteCommand != null))) {
  2851. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2852. }
  2853. if (((this.Adapter != null)
  2854. && (this.Adapter.InsertCommand != null))) {
  2855. this.Adapter.InsertCommand.Transaction = this._transaction;
  2856. }
  2857. if (((this.Adapter != null)
  2858. && (this.Adapter.UpdateCommand != null))) {
  2859. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2860. }
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2866. get {
  2867. if ((this._commandCollection == null)) {
  2868. this.InitCommandCollection();
  2869. }
  2870. return this._commandCollection;
  2871. }
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2875. public bool ClearBeforeFill {
  2876. get {
  2877. return this._clearBeforeFill;
  2878. }
  2879. set {
  2880. this._clearBeforeFill = value;
  2881. }
  2882. }
  2883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2885. private void InitAdapter() {
  2886. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2887. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2888. tableMapping.SourceTable = "Table";
  2889. tableMapping.DataSetTable = "Предметы";
  2890. tableMapping.ColumnMappings.Add("Код предмета", "Код предмета");
  2891. tableMapping.ColumnMappings.Add("Специальности", "Специальности");
  2892. tableMapping.ColumnMappings.Add("Описание специальности", "Описание специальности");
  2893. this._adapter.TableMappings.Add(tableMapping);
  2894. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2895. this._adapter.InsertCommand.Connection = this.Connection;
  2896. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Предметы] ([Код предмета], [Специальности], [Описание специаль" +
  2897. "ности]) VALUES (@Код_предмета, @Специальности, @Описание_специальности)";
  2898. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2899. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2900. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2901. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Описание_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. private void InitConnection() {
  2906. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2907. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.IS31BorovikAndreyStudConnectionString;
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. private void InitCommandCollection() {
  2912. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2913. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2914. this._commandCollection[0].Connection = this.Connection;
  2915. this._commandCollection[0].CommandText = "SELECT [Код предмета], Специальности, [Описание специальности] FROM dbo.Предметы";
  2916. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2921. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2922. public virtual int Fill(IS31BorovikAndreyStudDataSet.ПредметыDataTable dataTable) {
  2923. this.Adapter.SelectCommand = this.CommandCollection[0];
  2924. if ((this.ClearBeforeFill == true)) {
  2925. dataTable.Clear();
  2926. }
  2927. int returnValue = this.Adapter.Fill(dataTable);
  2928. return returnValue;
  2929. }
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2933. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2934. public virtual IS31BorovikAndreyStudDataSet.ПредметыDataTable GetData() {
  2935. this.Adapter.SelectCommand = this.CommandCollection[0];
  2936. IS31BorovikAndreyStudDataSet.ПредметыDataTable dataTable = new IS31BorovikAndreyStudDataSet.ПредметыDataTable();
  2937. this.Adapter.Fill(dataTable);
  2938. return dataTable;
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2943. public virtual int Update(IS31BorovikAndreyStudDataSet.ПредметыDataTable dataTable) {
  2944. return this.Adapter.Update(dataTable);
  2945. }
  2946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2948. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2949. public virtual int Update(IS31BorovikAndreyStudDataSet dataSet) {
  2950. return this.Adapter.Update(dataSet, "Предметы");
  2951. }
  2952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2955. public virtual int Update(global::System.Data.DataRow dataRow) {
  2956. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2957. dataRow});
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2962. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2963. return this.Adapter.Update(dataRows);
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2969. public virtual int Insert(global::System.Nullable<long> Код_предмета, string Специальности, string Описание_специальности) {
  2970. if ((Код_предмета.HasValue == true)) {
  2971. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_предмета.Value));
  2972. }
  2973. else {
  2974. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2975. }
  2976. if ((Специальности == null)) {
  2977. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2978. }
  2979. else {
  2980. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Специальности));
  2981. }
  2982. if ((Описание_специальности == null)) {
  2983. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2984. }
  2985. else {
  2986. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Описание_специальности));
  2987. }
  2988. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2989. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2990. != global::System.Data.ConnectionState.Open)) {
  2991. this.Adapter.InsertCommand.Connection.Open();
  2992. }
  2993. try {
  2994. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2995. return returnValue;
  2996. }
  2997. finally {
  2998. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2999. this.Adapter.InsertCommand.Connection.Close();
  3000. }
  3001. }
  3002. }
  3003. }
  3004. /// <summary>
  3005. ///Represents the connection and commands used to retrieve and save data.
  3006. ///</summary>
  3007. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3008. [global::System.ComponentModel.ToolboxItem(true)]
  3009. [global::System.ComponentModel.DataObjectAttribute(true)]
  3010. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3011. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3013. public partial class СпециальностиTableAdapter : global::System.ComponentModel.Component {
  3014. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3015. private global::System.Data.SqlClient.SqlConnection _connection;
  3016. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3017. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3018. private bool _clearBeforeFill;
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3021. public СпециальностиTableAdapter() {
  3022. this.ClearBeforeFill = true;
  3023. }
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3026. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3027. get {
  3028. if ((this._adapter == null)) {
  3029. this.InitAdapter();
  3030. }
  3031. return this._adapter;
  3032. }
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. internal global::System.Data.SqlClient.SqlConnection Connection {
  3037. get {
  3038. if ((this._connection == null)) {
  3039. this.InitConnection();
  3040. }
  3041. return this._connection;
  3042. }
  3043. set {
  3044. this._connection = value;
  3045. if ((this.Adapter.InsertCommand != null)) {
  3046. this.Adapter.InsertCommand.Connection = value;
  3047. }
  3048. if ((this.Adapter.DeleteCommand != null)) {
  3049. this.Adapter.DeleteCommand.Connection = value;
  3050. }
  3051. if ((this.Adapter.UpdateCommand != null)) {
  3052. this.Adapter.UpdateCommand.Connection = value;
  3053. }
  3054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3055. if ((this.CommandCollection[i] != null)) {
  3056. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3057. }
  3058. }
  3059. }
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3063. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3064. get {
  3065. return this._transaction;
  3066. }
  3067. set {
  3068. this._transaction = value;
  3069. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3070. this.CommandCollection[i].Transaction = this._transaction;
  3071. }
  3072. if (((this.Adapter != null)
  3073. && (this.Adapter.DeleteCommand != null))) {
  3074. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3075. }
  3076. if (((this.Adapter != null)
  3077. && (this.Adapter.InsertCommand != null))) {
  3078. this.Adapter.InsertCommand.Transaction = this._transaction;
  3079. }
  3080. if (((this.Adapter != null)
  3081. && (this.Adapter.UpdateCommand != null))) {
  3082. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3083. }
  3084. }
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3089. get {
  3090. if ((this._commandCollection == null)) {
  3091. this.InitCommandCollection();
  3092. }
  3093. return this._commandCollection;
  3094. }
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. public bool ClearBeforeFill {
  3099. get {
  3100. return this._clearBeforeFill;
  3101. }
  3102. set {
  3103. this._clearBeforeFill = value;
  3104. }
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. private void InitAdapter() {
  3109. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3110. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3111. tableMapping.SourceTable = "Table";
  3112. tableMapping.DataSetTable = "Специальности";
  3113. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3114. tableMapping.ColumnMappings.Add("Наименование специальности", "Наименование специальности");
  3115. tableMapping.ColumnMappings.Add("Описание специальности", "Описание специальности");
  3116. this._adapter.TableMappings.Add(tableMapping);
  3117. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3118. this._adapter.DeleteCommand.Connection = this.Connection;
  3119. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Специальности] WHERE (([Код специальности] = @Original_Код_спе" +
  3120. "циальности) AND ((@IsNull_Наименование_специальности = 1 AND [Наименование специ" +
  3121. "альности] IS NULL) OR ([Наименование специальности] = @Original_Наименование_спе" +
  3122. "циальности)))";
  3123. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3124. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3125. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3126. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3127. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3128. this._adapter.InsertCommand.Connection = this.Connection;
  3129. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Специальности] ([Код специальности], [Наименование специальности], [Описание специальности]) VALUES (@Код_специальности, @Наименование_специальности, @Описание_специальности);
  3130. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = @Код_специальности)";
  3131. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3132. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3133. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3134. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Описание_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3135. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3136. this._adapter.UpdateCommand.Connection = this.Connection;
  3137. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Специальности] SET [Код специальности] = @Код_специальности, [Наименование специальности] = @Наименование_специальности, [Описание специальности] = @Описание_специальности WHERE (([Код специальности] = @Original_Код_специальности) AND ((@IsNull_Наименование_специальности = 1 AND [Наименование специальности] IS NULL) OR ([Наименование специальности] = @Original_Наименование_специальности)));
  3138. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = @Код_специальности)";
  3139. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Описание_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_специальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. private void InitConnection() {
  3150. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3151. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.IS31BorovikAndreyStudConnectionString;
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. private void InitCommandCollection() {
  3156. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3157. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3158. this._commandCollection[0].Connection = this.Connection;
  3159. this._commandCollection[0].CommandText = "SELECT [Код специальности], [Наименование специальности], [Описание специальности" +
  3160. "] FROM dbo.Специальности";
  3161. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3166. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3167. public virtual int Fill(IS31BorovikAndreyStudDataSet.СпециальностиDataTable dataTable) {
  3168. this.Adapter.SelectCommand = this.CommandCollection[0];
  3169. if ((this.ClearBeforeFill == true)) {
  3170. dataTable.Clear();
  3171. }
  3172. int returnValue = this.Adapter.Fill(dataTable);
  3173. return returnValue;
  3174. }
  3175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3177. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3178. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3179. public virtual IS31BorovikAndreyStudDataSet.СпециальностиDataTable GetData() {
  3180. this.Adapter.SelectCommand = this.CommandCollection[0];
  3181. IS31BorovikAndreyStudDataSet.СпециальностиDataTable dataTable = new IS31BorovikAndreyStudDataSet.СпециальностиDataTable();
  3182. this.Adapter.Fill(dataTable);
  3183. return dataTable;
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3188. public virtual int Update(IS31BorovikAndreyStudDataSet.СпециальностиDataTable dataTable) {
  3189. return this.Adapter.Update(dataTable);
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3194. public virtual int Update(IS31BorovikAndreyStudDataSet dataSet) {
  3195. return this.Adapter.Update(dataSet, "Специальности");
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3200. public virtual int Update(global::System.Data.DataRow dataRow) {
  3201. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3202. dataRow});
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3207. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3208. return this.Adapter.Update(dataRows);
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3213. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3214. public virtual int Delete(string Original_Код_специальности, string Original_Наименование_специальности) {
  3215. if ((Original_Код_специальности == null)) {
  3216. throw new global::System.ArgumentNullException("Original_Код_специальности");
  3217. }
  3218. else {
  3219. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Код_специальности));
  3220. }
  3221. if ((Original_Наименование_специальности == null)) {
  3222. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3223. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3224. }
  3225. else {
  3226. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3227. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование_специальности));
  3228. }
  3229. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3230. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3231. != global::System.Data.ConnectionState.Open)) {
  3232. this.Adapter.DeleteCommand.Connection.Open();
  3233. }
  3234. try {
  3235. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3236. return returnValue;
  3237. }
  3238. finally {
  3239. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3240. this.Adapter.DeleteCommand.Connection.Close();
  3241. }
  3242. }
  3243. }
  3244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3247. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3248. public virtual int Insert(string Код_специальности, string Наименование_специальности, string Описание_специальности) {
  3249. if ((Код_специальности == null)) {
  3250. throw new global::System.ArgumentNullException("Код_специальности");
  3251. }
  3252. else {
  3253. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Код_специальности));
  3254. }
  3255. if ((Наименование_специальности == null)) {
  3256. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3257. }
  3258. else {
  3259. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_специальности));
  3260. }
  3261. if ((Описание_специальности == null)) {
  3262. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3263. }
  3264. else {
  3265. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Описание_специальности));
  3266. }
  3267. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3268. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3269. != global::System.Data.ConnectionState.Open)) {
  3270. this.Adapter.InsertCommand.Connection.Open();
  3271. }
  3272. try {
  3273. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3274. return returnValue;
  3275. }
  3276. finally {
  3277. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3278. this.Adapter.InsertCommand.Connection.Close();
  3279. }
  3280. }
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3285. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3286. public virtual int Update(string Код_специальности, string Наименование_специальности, string Описание_специальности, string Original_Код_специальности, string Original_Наименование_специальности) {
  3287. if ((Код_специальности == null)) {
  3288. throw new global::System.ArgumentNullException("Код_специальности");
  3289. }
  3290. else {
  3291. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Код_специальности));
  3292. }
  3293. if ((Наименование_специальности == null)) {
  3294. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3295. }
  3296. else {
  3297. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_специальности));
  3298. }
  3299. if ((Описание_специальности == null)) {
  3300. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3301. }
  3302. else {
  3303. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Описание_специальности));
  3304. }
  3305. if ((Original_Код_специальности == null)) {
  3306. throw new global::System.ArgumentNullException("Original_Код_специальности");
  3307. }
  3308. else {
  3309. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Код_специальности));
  3310. }
  3311. if ((Original_Наименование_специальности == null)) {
  3312. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3313. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3314. }
  3315. else {
  3316. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3317. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование_специальности));
  3318. }
  3319. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3320. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3321. != global::System.Data.ConnectionState.Open)) {
  3322. this.Adapter.UpdateCommand.Connection.Open();
  3323. }
  3324. try {
  3325. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3326. return returnValue;
  3327. }
  3328. finally {
  3329. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3330. this.Adapter.UpdateCommand.Connection.Close();
  3331. }
  3332. }
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3337. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3338. public virtual int Update(string Наименование_специальности, string Описание_специальности, string Original_Код_специальности, string Original_Наименование_специальности) {
  3339. return this.Update(Original_Код_специальности, Наименование_специальности, Описание_специальности, Original_Код_специальности, Original_Наименование_специальности);
  3340. }
  3341. }
  3342. /// <summary>
  3343. ///Represents the connection and commands used to retrieve and save data.
  3344. ///</summary>
  3345. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3346. [global::System.ComponentModel.ToolboxItem(true)]
  3347. [global::System.ComponentModel.DataObjectAttribute(true)]
  3348. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3349. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3350. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3351. public partial class СтудентыTableAdapter : global::System.ComponentModel.Component {
  3352. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3353. private global::System.Data.SqlClient.SqlConnection _connection;
  3354. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3355. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3356. private bool _clearBeforeFill;
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. public СтудентыTableAdapter() {
  3360. this.ClearBeforeFill = true;
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3365. get {
  3366. if ((this._adapter == null)) {
  3367. this.InitAdapter();
  3368. }
  3369. return this._adapter;
  3370. }
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. internal global::System.Data.SqlClient.SqlConnection Connection {
  3375. get {
  3376. if ((this._connection == null)) {
  3377. this.InitConnection();
  3378. }
  3379. return this._connection;
  3380. }
  3381. set {
  3382. this._connection = value;
  3383. if ((this.Adapter.InsertCommand != null)) {
  3384. this.Adapter.InsertCommand.Connection = value;
  3385. }
  3386. if ((this.Adapter.DeleteCommand != null)) {
  3387. this.Adapter.DeleteCommand.Connection = value;
  3388. }
  3389. if ((this.Adapter.UpdateCommand != null)) {
  3390. this.Adapter.UpdateCommand.Connection = value;
  3391. }
  3392. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3393. if ((this.CommandCollection[i] != null)) {
  3394. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3395. }
  3396. }
  3397. }
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3402. get {
  3403. return this._transaction;
  3404. }
  3405. set {
  3406. this._transaction = value;
  3407. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3408. this.CommandCollection[i].Transaction = this._transaction;
  3409. }
  3410. if (((this.Adapter != null)
  3411. && (this.Adapter.DeleteCommand != null))) {
  3412. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3413. }
  3414. if (((this.Adapter != null)
  3415. && (this.Adapter.InsertCommand != null))) {
  3416. this.Adapter.InsertCommand.Transaction = this._transaction;
  3417. }
  3418. if (((this.Adapter != null)
  3419. && (this.Adapter.UpdateCommand != null))) {
  3420. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3421. }
  3422. }
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3427. get {
  3428. if ((this._commandCollection == null)) {
  3429. this.InitCommandCollection();
  3430. }
  3431. return this._commandCollection;
  3432. }
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3436. public bool ClearBeforeFill {
  3437. get {
  3438. return this._clearBeforeFill;
  3439. }
  3440. set {
  3441. this._clearBeforeFill = value;
  3442. }
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3446. private void InitAdapter() {
  3447. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3448. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3449. tableMapping.SourceTable = "Table";
  3450. tableMapping.DataSetTable = "Студенты";
  3451. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  3452. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  3453. tableMapping.ColumnMappings.Add("Пол", "Пол");
  3454. tableMapping.ColumnMappings.Add("Дата рождения", "Дата рождения");
  3455. tableMapping.ColumnMappings.Add("Родители", "Родители");
  3456. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  3457. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3458. tableMapping.ColumnMappings.Add("Паспортные данные", "Паспортные данные");
  3459. tableMapping.ColumnMappings.Add("Номер зачетки", "Номер зачетки");
  3460. tableMapping.ColumnMappings.Add("Дата поступления", "Дата поступления");
  3461. tableMapping.ColumnMappings.Add("Группа", "Группа");
  3462. tableMapping.ColumnMappings.Add("Курс", "Курс");
  3463. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3464. tableMapping.ColumnMappings.Add("Очная форма обучения", "Очная форма обучения");
  3465. this._adapter.TableMappings.Add(tableMapping);
  3466. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3467. this._adapter.InsertCommand.Connection = this.Connection;
  3468. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Студенты] ([Код студента], [ФИО], [Пол], [Дата рождения], [Родители], [Адрес], [Телефон], [Паспортные данные], [Номер зачетки], [Дата поступления], [Группа], [Курс], [Код специальности], [Очная форма обучения]) VALUES (@Код_студента, @ФИО, @Пол, @Дата_рождения, @Родители, @Адрес, @Телефон, @Паспортные_данные, @Номер_зачетки, @Дата_поступления, @Группа, @Курс, @Код_специальности, @Очная_форма_обучения)";
  3469. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3470. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_студента", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3471. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ФИО", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3472. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3473. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3474. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Родители", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Родители", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3475. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3476. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3477. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Паспортные_данные", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Паспортные данные", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3478. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зачетки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зачетки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3479. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_поступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата поступления", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3480. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Группа", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3481. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3482. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3483. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Очная_форма_обучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Очная форма обучения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. private void InitConnection() {
  3488. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3489. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.IS31BorovikAndreyStudConnectionString;
  3490. }
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3493. private void InitCommandCollection() {
  3494. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3495. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3496. this._commandCollection[0].Connection = this.Connection;
  3497. this._commandCollection[0].CommandText = "SELECT [Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Пасп" +
  3498. "ортные данные], [Номер зачетки], [Дата поступления], Группа, Курс, [Код специаль" +
  3499. "ности], [Очная форма обучения] FROM dbo.Студенты";
  3500. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3501. }
  3502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3504. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3505. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3506. public virtual int Fill(IS31BorovikAndreyStudDataSet.СтудентыDataTable dataTable) {
  3507. this.Adapter.SelectCommand = this.CommandCollection[0];
  3508. if ((this.ClearBeforeFill == true)) {
  3509. dataTable.Clear();
  3510. }
  3511. int returnValue = this.Adapter.Fill(dataTable);
  3512. return returnValue;
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3517. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3518. public virtual IS31BorovikAndreyStudDataSet.СтудентыDataTable GetData() {
  3519. this.Adapter.SelectCommand = this.CommandCollection[0];
  3520. IS31BorovikAndreyStudDataSet.СтудентыDataTable dataTable = new IS31BorovikAndreyStudDataSet.СтудентыDataTable();
  3521. this.Adapter.Fill(dataTable);
  3522. return dataTable;
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3527. public virtual int Update(IS31BorovikAndreyStudDataSet.СтудентыDataTable dataTable) {
  3528. return this.Adapter.Update(dataTable);
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3533. public virtual int Update(IS31BorovikAndreyStudDataSet dataSet) {
  3534. return this.Adapter.Update(dataSet, "Студенты");
  3535. }
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3538. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3539. public virtual int Update(global::System.Data.DataRow dataRow) {
  3540. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3541. dataRow});
  3542. }
  3543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3546. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3547. return this.Adapter.Update(dataRows);
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3552. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3553. public virtual int Insert(global::System.Nullable<long> Код_студента, string ФИО, string Пол, global::System.Nullable<global::System.DateTime> Дата_рождения, string Родители, string Адрес, string Телефон, string Паспортные_данные, global::System.Nullable<long> Номер_зачетки, global::System.Nullable<global::System.DateTime> Дата_поступления, string Группа, global::System.Nullable<byte> Курс, global::System.Nullable<long> Код_специальности, global::System.Nullable<bool> Очная_форма_обучения) {
  3554. if ((Код_студента.HasValue == true)) {
  3555. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_студента.Value));
  3556. }
  3557. else {
  3558. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3559. }
  3560. if ((ФИО == null)) {
  3561. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3562. }
  3563. else {
  3564. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ФИО));
  3565. }
  3566. if ((Пол == null)) {
  3567. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3568. }
  3569. else {
  3570. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Пол));
  3571. }
  3572. if ((Дата_рождения.HasValue == true)) {
  3573. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата_рождения.Value));
  3574. }
  3575. else {
  3576. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3577. }
  3578. if ((Родители == null)) {
  3579. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3580. }
  3581. else {
  3582. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Родители));
  3583. }
  3584. if ((Адрес == null)) {
  3585. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3586. }
  3587. else {
  3588. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Адрес));
  3589. }
  3590. if ((Телефон == null)) {
  3591. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  3592. }
  3593. else {
  3594. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Телефон));
  3595. }
  3596. if ((Паспортные_данные == null)) {
  3597. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3598. }
  3599. else {
  3600. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Паспортные_данные));
  3601. }
  3602. if ((Номер_зачетки.HasValue == true)) {
  3603. this.Adapter.InsertCommand.Parameters[8].Value = ((long)(Номер_зачетки.Value));
  3604. }
  3605. else {
  3606. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  3607. }
  3608. if ((Дата_поступления.HasValue == true)) {
  3609. this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(Дата_поступления.Value));
  3610. }
  3611. else {
  3612. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  3613. }
  3614. if ((Группа == null)) {
  3615. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  3616. }
  3617. else {
  3618. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Группа));
  3619. }
  3620. if ((Курс.HasValue == true)) {
  3621. this.Adapter.InsertCommand.Parameters[11].Value = ((byte)(Курс.Value));
  3622. }
  3623. else {
  3624. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  3625. }
  3626. if ((Код_специальности.HasValue == true)) {
  3627. this.Adapter.InsertCommand.Parameters[12].Value = ((long)(Код_специальности.Value));
  3628. }
  3629. else {
  3630. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  3631. }
  3632. if ((Очная_форма_обучения.HasValue == true)) {
  3633. this.Adapter.InsertCommand.Parameters[13].Value = ((bool)(Очная_форма_обучения.Value));
  3634. }
  3635. else {
  3636. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  3637. }
  3638. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3639. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3640. != global::System.Data.ConnectionState.Open)) {
  3641. this.Adapter.InsertCommand.Connection.Open();
  3642. }
  3643. try {
  3644. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3645. return returnValue;
  3646. }
  3647. finally {
  3648. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3649. this.Adapter.InsertCommand.Connection.Close();
  3650. }
  3651. }
  3652. }
  3653. }
  3654. /// <summary>
  3655. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3656. ///</summary>
  3657. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3658. [global::System.ComponentModel.ToolboxItem(true)]
  3659. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3660. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3662. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3663. private UpdateOrderOption _updateOrder;
  3664. private ОценкиTableAdapter _оценкиTableAdapter;
  3665. private ПредметыTableAdapter _предметыTableAdapter;
  3666. private СпециальностиTableAdapter _специальностиTableAdapter;
  3667. private СтудентыTableAdapter _студентыTableAdapter;
  3668. private bool _backupDataSetBeforeUpdate;
  3669. private global::System.Data.IDbConnection _connection;
  3670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3672. public UpdateOrderOption UpdateOrder {
  3673. get {
  3674. return this._updateOrder;
  3675. }
  3676. set {
  3677. this._updateOrder = value;
  3678. }
  3679. }
  3680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3682. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3683. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3684. "a", "System.Drawing.Design.UITypeEditor")]
  3685. public ОценкиTableAdapter ОценкиTableAdapter {
  3686. get {
  3687. return this._оценкиTableAdapter;
  3688. }
  3689. set {
  3690. this._оценкиTableAdapter = value;
  3691. }
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3695. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3696. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3697. "a", "System.Drawing.Design.UITypeEditor")]
  3698. public ПредметыTableAdapter ПредметыTableAdapter {
  3699. get {
  3700. return this._предметыTableAdapter;
  3701. }
  3702. set {
  3703. this._предметыTableAdapter = value;
  3704. }
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3709. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3710. "a", "System.Drawing.Design.UITypeEditor")]
  3711. public СпециальностиTableAdapter СпециальностиTableAdapter {
  3712. get {
  3713. return this._специальностиTableAdapter;
  3714. }
  3715. set {
  3716. this._специальностиTableAdapter = value;
  3717. }
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3722. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3723. "a", "System.Drawing.Design.UITypeEditor")]
  3724. public СтудентыTableAdapter СтудентыTableAdapter {
  3725. get {
  3726. return this._студентыTableAdapter;
  3727. }
  3728. set {
  3729. this._студентыTableAdapter = value;
  3730. }
  3731. }
  3732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3734. public bool BackupDataSetBeforeUpdate {
  3735. get {
  3736. return this._backupDataSetBeforeUpdate;
  3737. }
  3738. set {
  3739. this._backupDataSetBeforeUpdate = value;
  3740. }
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. [global::System.ComponentModel.Browsable(false)]
  3745. public global::System.Data.IDbConnection Connection {
  3746. get {
  3747. if ((this._connection != null)) {
  3748. return this._connection;
  3749. }
  3750. if (((this._оценкиTableAdapter != null)
  3751. && (this._оценкиTableAdapter.Connection != null))) {
  3752. return this._оценкиTableAdapter.Connection;
  3753. }
  3754. if (((this._предметыTableAdapter != null)
  3755. && (this._предметыTableAdapter.Connection != null))) {
  3756. return this._предметыTableAdapter.Connection;
  3757. }
  3758. if (((this._специальностиTableAdapter != null)
  3759. && (this._специальностиTableAdapter.Connection != null))) {
  3760. return this._специальностиTableAdapter.Connection;
  3761. }
  3762. if (((this._студентыTableAdapter != null)
  3763. && (this._студентыTableAdapter.Connection != null))) {
  3764. return this._студентыTableAdapter.Connection;
  3765. }
  3766. return null;
  3767. }
  3768. set {
  3769. this._connection = value;
  3770. }
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3774. [global::System.ComponentModel.Browsable(false)]
  3775. public int TableAdapterInstanceCount {
  3776. get {
  3777. int count = 0;
  3778. if ((this._оценкиTableAdapter != null)) {
  3779. count = (count + 1);
  3780. }
  3781. if ((this._предметыTableAdapter != null)) {
  3782. count = (count + 1);
  3783. }
  3784. if ((this._специальностиTableAdapter != null)) {
  3785. count = (count + 1);
  3786. }
  3787. if ((this._студентыTableAdapter != null)) {
  3788. count = (count + 1);
  3789. }
  3790. return count;
  3791. }
  3792. }
  3793. /// <summary>
  3794. ///Update rows in top-down order.
  3795. ///</summary>
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3798. private int UpdateUpdatedRows(IS31BorovikAndreyStudDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3799. int result = 0;
  3800. if ((this._оценкиTableAdapter != null)) {
  3801. global::System.Data.DataRow[] updatedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3802. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3803. if (((updatedRows != null)
  3804. && (0 < updatedRows.Length))) {
  3805. result = (result + this._оценкиTableAdapter.Update(updatedRows));
  3806. allChangedRows.AddRange(updatedRows);
  3807. }
  3808. }
  3809. if ((this._предметыTableAdapter != null)) {
  3810. global::System.Data.DataRow[] updatedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3811. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3812. if (((updatedRows != null)
  3813. && (0 < updatedRows.Length))) {
  3814. result = (result + this._предметыTableAdapter.Update(updatedRows));
  3815. allChangedRows.AddRange(updatedRows);
  3816. }
  3817. }
  3818. if ((this._специальностиTableAdapter != null)) {
  3819. global::System.Data.DataRow[] updatedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3820. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3821. if (((updatedRows != null)
  3822. && (0 < updatedRows.Length))) {
  3823. result = (result + this._специальностиTableAdapter.Update(updatedRows));
  3824. allChangedRows.AddRange(updatedRows);
  3825. }
  3826. }
  3827. if ((this._студентыTableAdapter != null)) {
  3828. global::System.Data.DataRow[] updatedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3829. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3830. if (((updatedRows != null)
  3831. && (0 < updatedRows.Length))) {
  3832. result = (result + this._студентыTableAdapter.Update(updatedRows));
  3833. allChangedRows.AddRange(updatedRows);
  3834. }
  3835. }
  3836. return result;
  3837. }
  3838. /// <summary>
  3839. ///Insert rows in top-down order.
  3840. ///</summary>
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3843. private int UpdateInsertedRows(IS31BorovikAndreyStudDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3844. int result = 0;
  3845. if ((this._оценкиTableAdapter != null)) {
  3846. global::System.Data.DataRow[] addedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Added);
  3847. if (((addedRows != null)
  3848. && (0 < addedRows.Length))) {
  3849. result = (result + this._оценкиTableAdapter.Update(addedRows));
  3850. allAddedRows.AddRange(addedRows);
  3851. }
  3852. }
  3853. if ((this._предметыTableAdapter != null)) {
  3854. global::System.Data.DataRow[] addedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Added);
  3855. if (((addedRows != null)
  3856. && (0 < addedRows.Length))) {
  3857. result = (result + this._предметыTableAdapter.Update(addedRows));
  3858. allAddedRows.AddRange(addedRows);
  3859. }
  3860. }
  3861. if ((this._специальностиTableAdapter != null)) {
  3862. global::System.Data.DataRow[] addedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Added);
  3863. if (((addedRows != null)
  3864. && (0 < addedRows.Length))) {
  3865. result = (result + this._специальностиTableAdapter.Update(addedRows));
  3866. allAddedRows.AddRange(addedRows);
  3867. }
  3868. }
  3869. if ((this._студентыTableAdapter != null)) {
  3870. global::System.Data.DataRow[] addedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  3871. if (((addedRows != null)
  3872. && (0 < addedRows.Length))) {
  3873. result = (result + this._студентыTableAdapter.Update(addedRows));
  3874. allAddedRows.AddRange(addedRows);
  3875. }
  3876. }
  3877. return result;
  3878. }
  3879. /// <summary>
  3880. ///Delete rows in bottom-up order.
  3881. ///</summary>
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3884. private int UpdateDeletedRows(IS31BorovikAndreyStudDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  3885. int result = 0;
  3886. if ((this._студентыTableAdapter != null)) {
  3887. global::System.Data.DataRow[] deletedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3888. if (((deletedRows != null)
  3889. && (0 < deletedRows.Length))) {
  3890. result = (result + this._студентыTableAdapter.Update(deletedRows));
  3891. allChangedRows.AddRange(deletedRows);
  3892. }
  3893. }
  3894. if ((this._специальностиTableAdapter != null)) {
  3895. global::System.Data.DataRow[] deletedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3896. if (((deletedRows != null)
  3897. && (0 < deletedRows.Length))) {
  3898. result = (result + this._специальностиTableAdapter.Update(deletedRows));
  3899. allChangedRows.AddRange(deletedRows);
  3900. }
  3901. }
  3902. if ((this._предметыTableAdapter != null)) {
  3903. global::System.Data.DataRow[] deletedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3904. if (((deletedRows != null)
  3905. && (0 < deletedRows.Length))) {
  3906. result = (result + this._предметыTableAdapter.Update(deletedRows));
  3907. allChangedRows.AddRange(deletedRows);
  3908. }
  3909. }
  3910. if ((this._оценкиTableAdapter != null)) {
  3911. global::System.Data.DataRow[] deletedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3912. if (((deletedRows != null)
  3913. && (0 < deletedRows.Length))) {
  3914. result = (result + this._оценкиTableAdapter.Update(deletedRows));
  3915. allChangedRows.AddRange(deletedRows);
  3916. }
  3917. }
  3918. return result;
  3919. }
  3920. /// <summary>
  3921. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  3922. ///</summary>
  3923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3925. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3926. if (((updatedRows == null)
  3927. || (updatedRows.Length < 1))) {
  3928. return updatedRows;
  3929. }
  3930. if (((allAddedRows == null)
  3931. || (allAddedRows.Count < 1))) {
  3932. return updatedRows;
  3933. }
  3934. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3935. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  3936. global::System.Data.DataRow row = updatedRows[i];
  3937. if ((allAddedRows.Contains(row) == false)) {
  3938. realUpdatedRows.Add(row);
  3939. }
  3940. }
  3941. return realUpdatedRows.ToArray();
  3942. }
  3943. /// <summary>
  3944. ///Update all changes to the dataset.
  3945. ///</summary>
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3948. public virtual int UpdateAll(IS31BorovikAndreyStudDataSet dataSet) {
  3949. if ((dataSet == null)) {
  3950. throw new global::System.ArgumentNullException("dataSet");
  3951. }
  3952. if ((dataSet.HasChanges() == false)) {
  3953. return 0;
  3954. }
  3955. if (((this._оценкиTableAdapter != null)
  3956. && (this.MatchTableAdapterConnection(this._оценкиTableAdapter.Connection) == false))) {
  3957. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3958. "r, должны использовать одинаковую строку подключения.");
  3959. }
  3960. if (((this._предметыTableAdapter != null)
  3961. && (this.MatchTableAdapterConnection(this._предметыTableAdapter.Connection) == false))) {
  3962. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3963. "r, должны использовать одинаковую строку подключения.");
  3964. }
  3965. if (((this._специальностиTableAdapter != null)
  3966. && (this.MatchTableAdapterConnection(this._специальностиTableAdapter.Connection) == false))) {
  3967. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3968. "r, должны использовать одинаковую строку подключения.");
  3969. }
  3970. if (((this._студентыTableAdapter != null)
  3971. && (this.MatchTableAdapterConnection(this._студентыTableAdapter.Connection) == false))) {
  3972. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3973. "r, должны использовать одинаковую строку подключения.");
  3974. }
  3975. global::System.Data.IDbConnection workConnection = this.Connection;
  3976. if ((workConnection == null)) {
  3977. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  3978. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  3979. }
  3980. bool workConnOpened = false;
  3981. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  3982. == global::System.Data.ConnectionState.Broken)) {
  3983. workConnection.Close();
  3984. }
  3985. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  3986. workConnection.Open();
  3987. workConnOpened = true;
  3988. }
  3989. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  3990. if ((workTransaction == null)) {
  3991. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  3992. "и или текущее состояние не позволяет начать транзакцию.");
  3993. }
  3994. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3995. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3996. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  3997. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  3998. int result = 0;
  3999. global::System.Data.DataSet backupDataSet = null;
  4000. if (this.BackupDataSetBeforeUpdate) {
  4001. backupDataSet = new global::System.Data.DataSet();
  4002. backupDataSet.Merge(dataSet);
  4003. }
  4004. try {
  4005. // ---- Prepare for update -----------
  4006. //
  4007. if ((this._оценкиTableAdapter != null)) {
  4008. revertConnections.Add(this._оценкиTableAdapter, this._оценкиTableAdapter.Connection);
  4009. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4010. this._оценкиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4011. if (this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4012. this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4013. adaptersWithAcceptChangesDuringUpdate.Add(this._оценкиTableAdapter.Adapter);
  4014. }
  4015. }
  4016. if ((this._предметыTableAdapter != null)) {
  4017. revertConnections.Add(this._предметыTableAdapter, this._предметыTableAdapter.Connection);
  4018. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4019. this._предметыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4020. if (this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4021. this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4022. adaptersWithAcceptChangesDuringUpdate.Add(this._предметыTableAdapter.Adapter);
  4023. }
  4024. }
  4025. if ((this._специальностиTableAdapter != null)) {
  4026. revertConnections.Add(this._специальностиTableAdapter, this._специальностиTableAdapter.Connection);
  4027. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4028. this._специальностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4029. if (this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4030. this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4031. adaptersWithAcceptChangesDuringUpdate.Add(this._специальностиTableAdapter.Adapter);
  4032. }
  4033. }
  4034. if ((this._студентыTableAdapter != null)) {
  4035. revertConnections.Add(this._студентыTableAdapter, this._студентыTableAdapter.Connection);
  4036. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4037. this._студентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4038. if (this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4039. this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4040. adaptersWithAcceptChangesDuringUpdate.Add(this._студентыTableAdapter.Adapter);
  4041. }
  4042. }
  4043. //
  4044. //---- Perform updates -----------
  4045. //
  4046. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4047. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4048. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4049. }
  4050. else {
  4051. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4052. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4053. }
  4054. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4055. //
  4056. //---- Commit updates -----------
  4057. //
  4058. workTransaction.Commit();
  4059. if ((0 < allAddedRows.Count)) {
  4060. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4061. allAddedRows.CopyTo(rows);
  4062. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4063. global::System.Data.DataRow row = rows[i];
  4064. row.AcceptChanges();
  4065. }
  4066. }
  4067. if ((0 < allChangedRows.Count)) {
  4068. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4069. allChangedRows.CopyTo(rows);
  4070. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4071. global::System.Data.DataRow row = rows[i];
  4072. row.AcceptChanges();
  4073. }
  4074. }
  4075. }
  4076. catch (global::System.Exception ex) {
  4077. workTransaction.Rollback();
  4078. // ---- Restore the dataset -----------
  4079. if (this.BackupDataSetBeforeUpdate) {
  4080. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4081. dataSet.Clear();
  4082. dataSet.Merge(backupDataSet);
  4083. }
  4084. else {
  4085. if ((0 < allAddedRows.Count)) {
  4086. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4087. allAddedRows.CopyTo(rows);
  4088. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4089. global::System.Data.DataRow row = rows[i];
  4090. row.AcceptChanges();
  4091. row.SetAdded();
  4092. }
  4093. }
  4094. }
  4095. throw ex;
  4096. }
  4097. finally {
  4098. if (workConnOpened) {
  4099. workConnection.Close();
  4100. }
  4101. if ((this._оценкиTableAdapter != null)) {
  4102. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оценкиTableAdapter]));
  4103. this._оценкиTableAdapter.Transaction = null;
  4104. }
  4105. if ((this._предметыTableAdapter != null)) {
  4106. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._предметыTableAdapter]));
  4107. this._предметыTableAdapter.Transaction = null;
  4108. }
  4109. if ((this._специальностиTableAdapter != null)) {
  4110. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._специальностиTableAdapter]));
  4111. this._специальностиTableAdapter.Transaction = null;
  4112. }
  4113. if ((this._студентыTableAdapter != null)) {
  4114. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._студентыTableAdapter]));
  4115. this._студентыTableAdapter.Transaction = null;
  4116. }
  4117. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4118. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4119. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4120. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4121. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4122. adapter.AcceptChangesDuringUpdate = true;
  4123. }
  4124. }
  4125. }
  4126. return result;
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4130. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4131. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4136. if ((this._connection != null)) {
  4137. return true;
  4138. }
  4139. if (((this.Connection == null)
  4140. || (inputConnection == null))) {
  4141. return true;
  4142. }
  4143. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4144. return true;
  4145. }
  4146. return false;
  4147. }
  4148. /// <summary>
  4149. ///Update Order Option
  4150. ///</summary>
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. public enum UpdateOrderOption {
  4153. InsertUpdateDelete = 0,
  4154. UpdateInsertDelete = 1,
  4155. }
  4156. /// <summary>
  4157. ///Used to sort self-referenced table's rows
  4158. ///</summary>
  4159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4160. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4161. private global::System.Data.DataRelation _relation;
  4162. private int _childFirst;
  4163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4165. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  4166. this._relation = relation;
  4167. if (childFirst) {
  4168. this._childFirst = -1;
  4169. }
  4170. else {
  4171. this._childFirst = 1;
  4172. }
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4176. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  4177. global::System.Diagnostics.Debug.Assert((row != null));
  4178. global::System.Data.DataRow root = row;
  4179. distance = 0;
  4180. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  4181. traversedRows[row] = row;
  4182. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4183. for (
  4184. ; ((parent != null)
  4185. && (traversedRows.ContainsKey(parent) == false));
  4186. ) {
  4187. distance = (distance + 1);
  4188. root = parent;
  4189. traversedRows[parent] = parent;
  4190. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4191. }
  4192. if ((distance == 0)) {
  4193. traversedRows.Clear();
  4194. traversedRows[row] = row;
  4195. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4196. for (
  4197. ; ((parent != null)
  4198. && (traversedRows.ContainsKey(parent) == false));
  4199. ) {
  4200. distance = (distance + 1);
  4201. root = parent;
  4202. traversedRows[parent] = parent;
  4203. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4204. }
  4205. }
  4206. return root;
  4207. }
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4210. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  4211. if (object.ReferenceEquals(row1, row2)) {
  4212. return 0;
  4213. }
  4214. if ((row1 == null)) {
  4215. return -1;
  4216. }
  4217. if ((row2 == null)) {
  4218. return 1;
  4219. }
  4220. int distance1 = 0;
  4221. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  4222. int distance2 = 0;
  4223. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  4224. if (object.ReferenceEquals(root1, root2)) {
  4225. return (this._childFirst * distance1.CompareTo(distance2));
  4226. }
  4227. else {
  4228. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  4229. && (root2.Table != null)));
  4230. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  4231. return -1;
  4232. }
  4233. else {
  4234. return 1;
  4235. }
  4236. }
  4237. }
  4238. }
  4239. }
  4240. }
  4241. #pragma warning restore 1591