BuynitskiyStudentsDataSet1.Designer.cs 335 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace KachaevBuynitskiyStudents {
  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("BuynitskiyStudentsDataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BuynitskiyStudentsDataSet1 : 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 BuynitskiyStudentsDataSet1() {
  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 BuynitskiyStudentsDataSet1(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. BuynitskiyStudentsDataSet1 cln = ((BuynitskiyStudentsDataSet1)(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 = "BuynitskiyStudentsDataSet1";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/BuynitskiyStudentsDataSet1.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. BuynitskiyStudentsDataSet1 ds = new BuynitskiyStudentsDataSet1();
  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. this.columnОценка_2.AllowDBNull = false;
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  570. public ОценкиRow NewОценкиRow() {
  571. return ((ОценкиRow)(this.NewRow()));
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  576. return new ОценкиRow(builder);
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. protected override global::System.Type GetRowType() {
  581. return typeof(ОценкиRow);
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  586. base.OnRowChanged(e);
  587. if ((this.ОценкиRowChanged != null)) {
  588. this.ОценкиRowChanged(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  589. }
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  594. base.OnRowChanging(e);
  595. if ((this.ОценкиRowChanging != null)) {
  596. this.ОценкиRowChanging(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  597. }
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  602. base.OnRowDeleted(e);
  603. if ((this.ОценкиRowDeleted != null)) {
  604. this.ОценкиRowDeleted(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  605. }
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  610. base.OnRowDeleting(e);
  611. if ((this.ОценкиRowDeleting != null)) {
  612. this.ОценкиRowDeleting(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  613. }
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. public void RemoveОценкиRow(ОценкиRow row) {
  618. this.Rows.Remove(row);
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  623. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  624. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  625. BuynitskiyStudentsDataSet1 ds = new BuynitskiyStudentsDataSet1();
  626. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  627. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  628. any1.MinOccurs = new decimal(0);
  629. any1.MaxOccurs = decimal.MaxValue;
  630. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  631. sequence.Items.Add(any1);
  632. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  633. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  634. any2.MinOccurs = new decimal(1);
  635. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  636. sequence.Items.Add(any2);
  637. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  638. attribute1.Name = "namespace";
  639. attribute1.FixedValue = ds.Namespace;
  640. type.Attributes.Add(attribute1);
  641. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  642. attribute2.Name = "tableTypeName";
  643. attribute2.FixedValue = "ОценкиDataTable";
  644. type.Attributes.Add(attribute2);
  645. type.Particle = sequence;
  646. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  647. if (xs.Contains(dsSchema.TargetNamespace)) {
  648. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  649. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  650. try {
  651. global::System.Xml.Schema.XmlSchema schema = null;
  652. dsSchema.Write(s1);
  653. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  654. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  655. s2.SetLength(0);
  656. schema.Write(s2);
  657. if ((s1.Length == s2.Length)) {
  658. s1.Position = 0;
  659. s2.Position = 0;
  660. for (; ((s1.Position != s1.Length)
  661. && (s1.ReadByte() == s2.ReadByte())); ) {
  662. ;
  663. }
  664. if ((s1.Position == s1.Length)) {
  665. return type;
  666. }
  667. }
  668. }
  669. }
  670. finally {
  671. if ((s1 != null)) {
  672. s1.Close();
  673. }
  674. if ((s2 != null)) {
  675. s2.Close();
  676. }
  677. }
  678. }
  679. xs.Add(dsSchema);
  680. return type;
  681. }
  682. }
  683. /// <summary>
  684. ///Represents the strongly named DataTable class.
  685. ///</summary>
  686. [global::System.Serializable()]
  687. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  688. public partial class ПредметыDataTable : global::System.Data.TypedTableBase<ПредметыRow> {
  689. private global::System.Data.DataColumn columnКод_предмета;
  690. private global::System.Data.DataColumn columnНаименование_предмета;
  691. private global::System.Data.DataColumn columnОписание_предмета;
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public ПредметыDataTable() {
  695. this.TableName = "Предметы";
  696. this.BeginInit();
  697. this.InitClass();
  698. this.EndInit();
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. internal ПредметыDataTable(global::System.Data.DataTable table) {
  703. this.TableName = table.TableName;
  704. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  705. this.CaseSensitive = table.CaseSensitive;
  706. }
  707. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  708. this.Locale = table.Locale;
  709. }
  710. if ((table.Namespace != table.DataSet.Namespace)) {
  711. this.Namespace = table.Namespace;
  712. }
  713. this.Prefix = table.Prefix;
  714. this.MinimumCapacity = table.MinimumCapacity;
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. protected ПредметыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  719. base(info, context) {
  720. this.InitVars();
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public global::System.Data.DataColumn Код_предметаColumn {
  725. get {
  726. return this.columnКод_предмета;
  727. }
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. public global::System.Data.DataColumn Наименование_предметаColumn {
  732. get {
  733. return this.columnНаименование_предмета;
  734. }
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public global::System.Data.DataColumn Описание_предметаColumn {
  739. get {
  740. return this.columnОписание_предмета;
  741. }
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. [global::System.ComponentModel.Browsable(false)]
  746. public int Count {
  747. get {
  748. return this.Rows.Count;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. public ПредметыRow this[int index] {
  754. get {
  755. return ((ПредметыRow)(this.Rows[index]));
  756. }
  757. }
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. public event ПредметыRowChangeEventHandler ПредметыRowChanging;
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public event ПредметыRowChangeEventHandler ПредметыRowChanged;
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. public event ПредметыRowChangeEventHandler ПредметыRowDeleting;
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public event ПредметыRowChangeEventHandler ПредметыRowDeleted;
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  768. public void AddПредметыRow(ПредметыRow row) {
  769. this.Rows.Add(row);
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public ПредметыRow AddПредметыRow(string Наименование_предмета, string Описание_предмета) {
  774. ПредметыRow rowПредметыRow = ((ПредметыRow)(this.NewRow()));
  775. object[] columnValuesArray = new object[] {
  776. null,
  777. Наименование_предмета,
  778. Описание_предмета};
  779. rowПредметыRow.ItemArray = columnValuesArray;
  780. this.Rows.Add(rowПредметыRow);
  781. return rowПредметыRow;
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public ПредметыRow FindByКод_предмета(int Код_предмета) {
  786. return ((ПредметыRow)(this.Rows.Find(new object[] {
  787. Код_предмета})));
  788. }
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. public override global::System.Data.DataTable Clone() {
  792. ПредметыDataTable cln = ((ПредметыDataTable)(base.Clone()));
  793. cln.InitVars();
  794. return cln;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. protected override global::System.Data.DataTable CreateInstance() {
  799. return new ПредметыDataTable();
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  803. internal void InitVars() {
  804. this.columnКод_предмета = base.Columns["Код предмета"];
  805. this.columnНаименование_предмета = base.Columns["Наименование предмета"];
  806. this.columnОписание_предмета = base.Columns["Описание предмета"];
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. private void InitClass() {
  811. this.columnКод_предмета = new global::System.Data.DataColumn("Код предмета", typeof(int), null, global::System.Data.MappingType.Element);
  812. base.Columns.Add(this.columnКод_предмета);
  813. this.columnНаименование_предмета = new global::System.Data.DataColumn("Наименование предмета", typeof(string), null, global::System.Data.MappingType.Element);
  814. base.Columns.Add(this.columnНаименование_предмета);
  815. this.columnОписание_предмета = new global::System.Data.DataColumn("Описание предмета", typeof(string), null, global::System.Data.MappingType.Element);
  816. base.Columns.Add(this.columnОписание_предмета);
  817. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  818. this.columnКод_предмета}, true));
  819. this.columnКод_предмета.AutoIncrement = true;
  820. this.columnКод_предмета.AutoIncrementSeed = -1;
  821. this.columnКод_предмета.AutoIncrementStep = -1;
  822. this.columnКод_предмета.AllowDBNull = false;
  823. this.columnКод_предмета.ReadOnly = true;
  824. this.columnКод_предмета.Unique = true;
  825. this.columnНаименование_предмета.MaxLength = 50;
  826. this.columnОписание_предмета.MaxLength = 2147483647;
  827. }
  828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  830. public ПредметыRow NewПредметыRow() {
  831. return ((ПредметыRow)(this.NewRow()));
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  836. return new ПредметыRow(builder);
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  840. protected override global::System.Type GetRowType() {
  841. return typeof(ПредметыRow);
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  846. base.OnRowChanged(e);
  847. if ((this.ПредметыRowChanged != null)) {
  848. this.ПредметыRowChanged(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  849. }
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  854. base.OnRowChanging(e);
  855. if ((this.ПредметыRowChanging != null)) {
  856. this.ПредметыRowChanging(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  857. }
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  862. base.OnRowDeleted(e);
  863. if ((this.ПредметыRowDeleted != null)) {
  864. this.ПредметыRowDeleted(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  865. }
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  870. base.OnRowDeleting(e);
  871. if ((this.ПредметыRowDeleting != null)) {
  872. this.ПредметыRowDeleting(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  873. }
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  877. public void RemoveПредметыRow(ПредметыRow row) {
  878. this.Rows.Remove(row);
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  883. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  884. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  885. BuynitskiyStudentsDataSet1 ds = new BuynitskiyStudentsDataSet1();
  886. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  887. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  888. any1.MinOccurs = new decimal(0);
  889. any1.MaxOccurs = decimal.MaxValue;
  890. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  891. sequence.Items.Add(any1);
  892. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  893. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  894. any2.MinOccurs = new decimal(1);
  895. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  896. sequence.Items.Add(any2);
  897. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  898. attribute1.Name = "namespace";
  899. attribute1.FixedValue = ds.Namespace;
  900. type.Attributes.Add(attribute1);
  901. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  902. attribute2.Name = "tableTypeName";
  903. attribute2.FixedValue = "ПредметыDataTable";
  904. type.Attributes.Add(attribute2);
  905. type.Particle = sequence;
  906. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  907. if (xs.Contains(dsSchema.TargetNamespace)) {
  908. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  909. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  910. try {
  911. global::System.Xml.Schema.XmlSchema schema = null;
  912. dsSchema.Write(s1);
  913. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  914. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  915. s2.SetLength(0);
  916. schema.Write(s2);
  917. if ((s1.Length == s2.Length)) {
  918. s1.Position = 0;
  919. s2.Position = 0;
  920. for (; ((s1.Position != s1.Length)
  921. && (s1.ReadByte() == s2.ReadByte())); ) {
  922. ;
  923. }
  924. if ((s1.Position == s1.Length)) {
  925. return type;
  926. }
  927. }
  928. }
  929. }
  930. finally {
  931. if ((s1 != null)) {
  932. s1.Close();
  933. }
  934. if ((s2 != null)) {
  935. s2.Close();
  936. }
  937. }
  938. }
  939. xs.Add(dsSchema);
  940. return type;
  941. }
  942. }
  943. /// <summary>
  944. ///Represents the strongly named DataTable class.
  945. ///</summary>
  946. [global::System.Serializable()]
  947. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  948. public partial class СпециальностиDataTable : global::System.Data.TypedTableBase<СпециальностиRow> {
  949. private global::System.Data.DataColumn columnКод_специальности;
  950. private global::System.Data.DataColumn columnНаименование_специальности;
  951. private global::System.Data.DataColumn columnОписание_специальности;
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  954. public СпециальностиDataTable() {
  955. this.TableName = "Специальности";
  956. this.BeginInit();
  957. this.InitClass();
  958. this.EndInit();
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. internal СпециальностиDataTable(global::System.Data.DataTable table) {
  963. this.TableName = table.TableName;
  964. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  965. this.CaseSensitive = table.CaseSensitive;
  966. }
  967. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  968. this.Locale = table.Locale;
  969. }
  970. if ((table.Namespace != table.DataSet.Namespace)) {
  971. this.Namespace = table.Namespace;
  972. }
  973. this.Prefix = table.Prefix;
  974. this.MinimumCapacity = table.MinimumCapacity;
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  978. protected СпециальностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  979. base(info, context) {
  980. this.InitVars();
  981. }
  982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  984. public global::System.Data.DataColumn Код_специальностиColumn {
  985. get {
  986. return this.columnКод_специальности;
  987. }
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. public global::System.Data.DataColumn Наименование_специальностиColumn {
  992. get {
  993. return this.columnНаименование_специальности;
  994. }
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. public global::System.Data.DataColumn Описание_специальностиColumn {
  999. get {
  1000. return this.columnОписание_специальности;
  1001. }
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. [global::System.ComponentModel.Browsable(false)]
  1006. public int Count {
  1007. get {
  1008. return this.Rows.Count;
  1009. }
  1010. }
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. public СпециальностиRow this[int index] {
  1014. get {
  1015. return ((СпециальностиRow)(this.Rows[index]));
  1016. }
  1017. }
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. public event СпециальностиRowChangeEventHandler СпециальностиRowChanging;
  1020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1021. public event СпециальностиRowChangeEventHandler СпециальностиRowChanged;
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1023. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleting;
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleted;
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1028. public void AddСпециальностиRow(СпециальностиRow row) {
  1029. this.Rows.Add(row);
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1033. public СпециальностиRow AddСпециальностиRow(string Наименование_специальности, string Описание_специальности) {
  1034. СпециальностиRow rowСпециальностиRow = ((СпециальностиRow)(this.NewRow()));
  1035. object[] columnValuesArray = new object[] {
  1036. null,
  1037. Наименование_специальности,
  1038. Описание_специальности};
  1039. rowСпециальностиRow.ItemArray = columnValuesArray;
  1040. this.Rows.Add(rowСпециальностиRow);
  1041. return rowСпециальностиRow;
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. public СпециальностиRow FindByКод_специальности(int Код_специальности) {
  1046. return ((СпециальностиRow)(this.Rows.Find(new object[] {
  1047. Код_специальности})));
  1048. }
  1049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1051. public override global::System.Data.DataTable Clone() {
  1052. СпециальностиDataTable cln = ((СпециальностиDataTable)(base.Clone()));
  1053. cln.InitVars();
  1054. return cln;
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. protected override global::System.Data.DataTable CreateInstance() {
  1059. return new СпециальностиDataTable();
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. internal void InitVars() {
  1064. this.columnКод_специальности = base.Columns["Код специальности"];
  1065. this.columnНаименование_специальности = base.Columns["Наименование специальности"];
  1066. this.columnОписание_специальности = base.Columns["Описание специальности"];
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. private void InitClass() {
  1071. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(int), null, global::System.Data.MappingType.Element);
  1072. base.Columns.Add(this.columnКод_специальности);
  1073. this.columnНаименование_специальности = new global::System.Data.DataColumn("Наименование специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1074. base.Columns.Add(this.columnНаименование_специальности);
  1075. this.columnОписание_специальности = new global::System.Data.DataColumn("Описание специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1076. base.Columns.Add(this.columnОписание_специальности);
  1077. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1078. this.columnКод_специальности}, true));
  1079. this.columnКод_специальности.AutoIncrement = true;
  1080. this.columnКод_специальности.AutoIncrementSeed = -1;
  1081. this.columnКод_специальности.AutoIncrementStep = -1;
  1082. this.columnКод_специальности.AllowDBNull = false;
  1083. this.columnКод_специальности.ReadOnly = true;
  1084. this.columnКод_специальности.Unique = true;
  1085. this.columnНаименование_специальности.AllowDBNull = false;
  1086. this.columnНаименование_специальности.MaxLength = 50;
  1087. this.columnОписание_специальности.MaxLength = 2147483647;
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1091. public СпециальностиRow NewСпециальностиRow() {
  1092. return ((СпециальностиRow)(this.NewRow()));
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1096. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1097. return new СпециальностиRow(builder);
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. protected override global::System.Type GetRowType() {
  1102. return typeof(СпециальностиRow);
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1107. base.OnRowChanged(e);
  1108. if ((this.СпециальностиRowChanged != null)) {
  1109. this.СпециальностиRowChanged(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1110. }
  1111. }
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1114. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1115. base.OnRowChanging(e);
  1116. if ((this.СпециальностиRowChanging != null)) {
  1117. this.СпециальностиRowChanging(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1118. }
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1122. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1123. base.OnRowDeleted(e);
  1124. if ((this.СпециальностиRowDeleted != null)) {
  1125. this.СпециальностиRowDeleted(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1126. }
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1131. base.OnRowDeleting(e);
  1132. if ((this.СпециальностиRowDeleting != null)) {
  1133. this.СпециальностиRowDeleting(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1134. }
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1138. public void RemoveСпециальностиRow(СпециальностиRow row) {
  1139. this.Rows.Remove(row);
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1144. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1145. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1146. BuynitskiyStudentsDataSet1 ds = new BuynitskiyStudentsDataSet1();
  1147. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1148. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1149. any1.MinOccurs = new decimal(0);
  1150. any1.MaxOccurs = decimal.MaxValue;
  1151. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1152. sequence.Items.Add(any1);
  1153. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1154. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1155. any2.MinOccurs = new decimal(1);
  1156. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1157. sequence.Items.Add(any2);
  1158. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1159. attribute1.Name = "namespace";
  1160. attribute1.FixedValue = ds.Namespace;
  1161. type.Attributes.Add(attribute1);
  1162. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1163. attribute2.Name = "tableTypeName";
  1164. attribute2.FixedValue = "СпециальностиDataTable";
  1165. type.Attributes.Add(attribute2);
  1166. type.Particle = sequence;
  1167. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1168. if (xs.Contains(dsSchema.TargetNamespace)) {
  1169. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1170. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1171. try {
  1172. global::System.Xml.Schema.XmlSchema schema = null;
  1173. dsSchema.Write(s1);
  1174. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1175. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1176. s2.SetLength(0);
  1177. schema.Write(s2);
  1178. if ((s1.Length == s2.Length)) {
  1179. s1.Position = 0;
  1180. s2.Position = 0;
  1181. for (; ((s1.Position != s1.Length)
  1182. && (s1.ReadByte() == s2.ReadByte())); ) {
  1183. ;
  1184. }
  1185. if ((s1.Position == s1.Length)) {
  1186. return type;
  1187. }
  1188. }
  1189. }
  1190. }
  1191. finally {
  1192. if ((s1 != null)) {
  1193. s1.Close();
  1194. }
  1195. if ((s2 != null)) {
  1196. s2.Close();
  1197. }
  1198. }
  1199. }
  1200. xs.Add(dsSchema);
  1201. return type;
  1202. }
  1203. }
  1204. /// <summary>
  1205. ///Represents the strongly named DataTable class.
  1206. ///</summary>
  1207. [global::System.Serializable()]
  1208. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1209. public partial class СтудентыDataTable : global::System.Data.TypedTableBase<СтудентыRow> {
  1210. private global::System.Data.DataColumn columnКод_студента;
  1211. private global::System.Data.DataColumn columnФИО;
  1212. private global::System.Data.DataColumn columnПол;
  1213. private global::System.Data.DataColumn columnДата_рождения;
  1214. private global::System.Data.DataColumn columnРодители;
  1215. private global::System.Data.DataColumn columnАдрес;
  1216. private global::System.Data.DataColumn columnТелефон;
  1217. private global::System.Data.DataColumn columnПаспортные_данные;
  1218. private global::System.Data.DataColumn columnНумер_зачётки;
  1219. private global::System.Data.DataColumn columnДата_поступления;
  1220. private global::System.Data.DataColumn columnГруппа;
  1221. private global::System.Data.DataColumn columnКурс;
  1222. private global::System.Data.DataColumn columnКод_специальности;
  1223. private global::System.Data.DataColumn columnОчная_форма_обучения;
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1226. public СтудентыDataTable() {
  1227. this.TableName = "Студенты";
  1228. this.BeginInit();
  1229. this.InitClass();
  1230. this.EndInit();
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1234. internal СтудентыDataTable(global::System.Data.DataTable table) {
  1235. this.TableName = table.TableName;
  1236. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1237. this.CaseSensitive = table.CaseSensitive;
  1238. }
  1239. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1240. this.Locale = table.Locale;
  1241. }
  1242. if ((table.Namespace != table.DataSet.Namespace)) {
  1243. this.Namespace = table.Namespace;
  1244. }
  1245. this.Prefix = table.Prefix;
  1246. this.MinimumCapacity = table.MinimumCapacity;
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. protected СтудентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1251. base(info, context) {
  1252. this.InitVars();
  1253. }
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1256. public global::System.Data.DataColumn Код_студентаColumn {
  1257. get {
  1258. return this.columnКод_студента;
  1259. }
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. public global::System.Data.DataColumn ФИОColumn {
  1264. get {
  1265. return this.columnФИО;
  1266. }
  1267. }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1270. public global::System.Data.DataColumn ПолColumn {
  1271. get {
  1272. return this.columnПол;
  1273. }
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1277. public global::System.Data.DataColumn Дата_рожденияColumn {
  1278. get {
  1279. return this.columnДата_рождения;
  1280. }
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public global::System.Data.DataColumn РодителиColumn {
  1285. get {
  1286. return this.columnРодители;
  1287. }
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public global::System.Data.DataColumn АдресColumn {
  1292. get {
  1293. return this.columnАдрес;
  1294. }
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1298. public global::System.Data.DataColumn ТелефонColumn {
  1299. get {
  1300. return this.columnТелефон;
  1301. }
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. public global::System.Data.DataColumn Паспортные_данныеColumn {
  1306. get {
  1307. return this.columnПаспортные_данные;
  1308. }
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public global::System.Data.DataColumn Нумер_зачёткиColumn {
  1313. get {
  1314. return this.columnНумер_зачётки;
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public global::System.Data.DataColumn Дата_поступленияColumn {
  1320. get {
  1321. return this.columnДата_поступления;
  1322. }
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. public global::System.Data.DataColumn ГруппаColumn {
  1327. get {
  1328. return this.columnГруппа;
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public global::System.Data.DataColumn КурсColumn {
  1334. get {
  1335. return this.columnКурс;
  1336. }
  1337. }
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. public global::System.Data.DataColumn Код_специальностиColumn {
  1341. get {
  1342. return this.columnКод_специальности;
  1343. }
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. public global::System.Data.DataColumn Очная_форма_обученияColumn {
  1348. get {
  1349. return this.columnОчная_форма_обучения;
  1350. }
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. [global::System.ComponentModel.Browsable(false)]
  1355. public int Count {
  1356. get {
  1357. return this.Rows.Count;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. public СтудентыRow this[int index] {
  1363. get {
  1364. return ((СтудентыRow)(this.Rows[index]));
  1365. }
  1366. }
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1368. public event СтудентыRowChangeEventHandler СтудентыRowChanging;
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. public event СтудентыRowChangeEventHandler СтудентыRowChanged;
  1371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1372. public event СтудентыRowChangeEventHandler СтудентыRowDeleting;
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public event СтудентыRowChangeEventHandler СтудентыRowDeleted;
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. public void AddСтудентыRow(СтудентыRow row) {
  1378. this.Rows.Add(row);
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. public СтудентыRow AddСтудентыRow(string ФИО, string Пол, System.DateTime Дата_рождения, string Родители, string Адрес, string Телефон, string Паспортные_данные, long Нумер_зачётки, System.DateTime Дата_поступления, string Группа, byte Курс, long Код_специальности, bool Очная_форма_обучения) {
  1383. СтудентыRow rowСтудентыRow = ((СтудентыRow)(this.NewRow()));
  1384. object[] columnValuesArray = new object[] {
  1385. null,
  1386. ФИО,
  1387. Пол,
  1388. Дата_рождения,
  1389. Родители,
  1390. Адрес,
  1391. Телефон,
  1392. Паспортные_данные,
  1393. Нумер_зачётки,
  1394. Дата_поступления,
  1395. Группа,
  1396. Курс,
  1397. Код_специальности,
  1398. Очная_форма_обучения};
  1399. rowСтудентыRow.ItemArray = columnValuesArray;
  1400. this.Rows.Add(rowСтудентыRow);
  1401. return rowСтудентыRow;
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1405. public СтудентыRow FindByКод_студента(int Код_студента) {
  1406. return ((СтудентыRow)(this.Rows.Find(new object[] {
  1407. Код_студента})));
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public override global::System.Data.DataTable Clone() {
  1412. СтудентыDataTable cln = ((СтудентыDataTable)(base.Clone()));
  1413. cln.InitVars();
  1414. return cln;
  1415. }
  1416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1418. protected override global::System.Data.DataTable CreateInstance() {
  1419. return new СтудентыDataTable();
  1420. }
  1421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1423. internal void InitVars() {
  1424. this.columnКод_студента = base.Columns["Код студента"];
  1425. this.columnФИО = base.Columns["ФИО"];
  1426. this.columnПол = base.Columns["Пол"];
  1427. this.columnДата_рождения = base.Columns["Дата рождения"];
  1428. this.columnРодители = base.Columns["Родители"];
  1429. this.columnАдрес = base.Columns["Адрес"];
  1430. this.columnТелефон = base.Columns["Телефон"];
  1431. this.columnПаспортные_данные = base.Columns["Паспортные данные"];
  1432. this.columnНумер_зачётки = base.Columns["Нумер зачётки"];
  1433. this.columnДата_поступления = base.Columns["Дата поступления"];
  1434. this.columnГруппа = base.Columns["Группа"];
  1435. this.columnКурс = base.Columns["Курс"];
  1436. this.columnКод_специальности = base.Columns["Код специальности"];
  1437. this.columnОчная_форма_обучения = base.Columns["Очная форма обучения"];
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. private void InitClass() {
  1442. this.columnКод_студента = new global::System.Data.DataColumn("Код студента", typeof(int), null, global::System.Data.MappingType.Element);
  1443. base.Columns.Add(this.columnКод_студента);
  1444. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1445. base.Columns.Add(this.columnФИО);
  1446. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1447. base.Columns.Add(this.columnПол);
  1448. this.columnДата_рождения = new global::System.Data.DataColumn("Дата рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1449. base.Columns.Add(this.columnДата_рождения);
  1450. this.columnРодители = new global::System.Data.DataColumn("Родители", typeof(string), null, global::System.Data.MappingType.Element);
  1451. base.Columns.Add(this.columnРодители);
  1452. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1453. base.Columns.Add(this.columnАдрес);
  1454. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1455. base.Columns.Add(this.columnТелефон);
  1456. this.columnПаспортные_данные = new global::System.Data.DataColumn("Паспортные данные", typeof(string), null, global::System.Data.MappingType.Element);
  1457. base.Columns.Add(this.columnПаспортные_данные);
  1458. this.columnНумер_зачётки = new global::System.Data.DataColumn("Нумер зачётки", typeof(long), null, global::System.Data.MappingType.Element);
  1459. base.Columns.Add(this.columnНумер_зачётки);
  1460. this.columnДата_поступления = new global::System.Data.DataColumn("Дата поступления", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnДата_поступления);
  1462. this.columnГруппа = new global::System.Data.DataColumn("Группа", typeof(string), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnГруппа);
  1464. this.columnКурс = new global::System.Data.DataColumn("Курс", typeof(byte), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnКурс);
  1466. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(long), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnКод_специальности);
  1468. this.columnОчная_форма_обучения = new global::System.Data.DataColumn("Очная форма обучения", typeof(bool), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnОчная_форма_обучения);
  1470. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1471. this.columnКод_студента}, true));
  1472. this.columnКод_студента.AutoIncrement = true;
  1473. this.columnКод_студента.AutoIncrementSeed = -1;
  1474. this.columnКод_студента.AutoIncrementStep = -1;
  1475. this.columnКод_студента.AllowDBNull = false;
  1476. this.columnКод_студента.ReadOnly = true;
  1477. this.columnКод_студента.Unique = true;
  1478. this.columnФИО.MaxLength = 50;
  1479. this.columnПол.MaxLength = 50;
  1480. this.columnРодители.MaxLength = 50;
  1481. this.columnАдрес.MaxLength = 2147483647;
  1482. this.columnТелефон.MaxLength = 15;
  1483. this.columnПаспортные_данные.MaxLength = 2147483647;
  1484. this.columnГруппа.MaxLength = 50;
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public СтудентыRow NewСтудентыRow() {
  1489. return ((СтудентыRow)(this.NewRow()));
  1490. }
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1493. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1494. return new СтудентыRow(builder);
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1498. protected override global::System.Type GetRowType() {
  1499. return typeof(СтудентыRow);
  1500. }
  1501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1503. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1504. base.OnRowChanged(e);
  1505. if ((this.СтудентыRowChanged != null)) {
  1506. this.СтудентыRowChanged(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1507. }
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1512. base.OnRowChanging(e);
  1513. if ((this.СтудентыRowChanging != null)) {
  1514. this.СтудентыRowChanging(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1515. }
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1520. base.OnRowDeleted(e);
  1521. if ((this.СтудентыRowDeleted != null)) {
  1522. this.СтудентыRowDeleted(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1523. }
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1528. base.OnRowDeleting(e);
  1529. if ((this.СтудентыRowDeleting != null)) {
  1530. this.СтудентыRowDeleting(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1531. }
  1532. }
  1533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1535. public void RemoveСтудентыRow(СтудентыRow row) {
  1536. this.Rows.Remove(row);
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1541. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1542. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1543. BuynitskiyStudentsDataSet1 ds = new BuynitskiyStudentsDataSet1();
  1544. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1545. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1546. any1.MinOccurs = new decimal(0);
  1547. any1.MaxOccurs = decimal.MaxValue;
  1548. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1549. sequence.Items.Add(any1);
  1550. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1551. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1552. any2.MinOccurs = new decimal(1);
  1553. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1554. sequence.Items.Add(any2);
  1555. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1556. attribute1.Name = "namespace";
  1557. attribute1.FixedValue = ds.Namespace;
  1558. type.Attributes.Add(attribute1);
  1559. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1560. attribute2.Name = "tableTypeName";
  1561. attribute2.FixedValue = "СтудентыDataTable";
  1562. type.Attributes.Add(attribute2);
  1563. type.Particle = sequence;
  1564. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1565. if (xs.Contains(dsSchema.TargetNamespace)) {
  1566. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1567. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1568. try {
  1569. global::System.Xml.Schema.XmlSchema schema = null;
  1570. dsSchema.Write(s1);
  1571. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1572. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1573. s2.SetLength(0);
  1574. schema.Write(s2);
  1575. if ((s1.Length == s2.Length)) {
  1576. s1.Position = 0;
  1577. s2.Position = 0;
  1578. for (; ((s1.Position != s1.Length)
  1579. && (s1.ReadByte() == s2.ReadByte())); ) {
  1580. ;
  1581. }
  1582. if ((s1.Position == s1.Length)) {
  1583. return type;
  1584. }
  1585. }
  1586. }
  1587. }
  1588. finally {
  1589. if ((s1 != null)) {
  1590. s1.Close();
  1591. }
  1592. if ((s2 != null)) {
  1593. s2.Close();
  1594. }
  1595. }
  1596. }
  1597. xs.Add(dsSchema);
  1598. return type;
  1599. }
  1600. }
  1601. /// <summary>
  1602. ///Represents strongly named DataRow class.
  1603. ///</summary>
  1604. public partial class ОценкиRow : global::System.Data.DataRow {
  1605. private ОценкиDataTable tableОценки;
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. internal ОценкиRow(global::System.Data.DataRowBuilder rb) :
  1609. base(rb) {
  1610. this.tableОценки = ((ОценкиDataTable)(this.Table));
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. public long Код_студента {
  1615. get {
  1616. try {
  1617. return ((long)(this[this.tableОценки.Код_студентаColumn]));
  1618. }
  1619. catch (global::System.InvalidCastException e) {
  1620. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код студента\' в таблице \'Оценки\' равно DBNull.", e);
  1621. }
  1622. }
  1623. set {
  1624. this[this.tableОценки.Код_студентаColumn] = value;
  1625. }
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. public System.DateTime Дата_экзамена_1 {
  1630. get {
  1631. try {
  1632. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_1Column]));
  1633. }
  1634. catch (global::System.InvalidCastException e) {
  1635. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 1\' в таблице \'Оценки\' равно DBNull.", e);
  1636. }
  1637. }
  1638. set {
  1639. this[this.tableОценки.Дата_экзамена_1Column] = value;
  1640. }
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1644. public long Код_предмета_1 {
  1645. get {
  1646. try {
  1647. return ((long)(this[this.tableОценки.Код_предмета_1Column]));
  1648. }
  1649. catch (global::System.InvalidCastException e) {
  1650. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 1\' в таблице \'Оценки\' равно DBNull.", e);
  1651. }
  1652. }
  1653. set {
  1654. this[this.tableОценки.Код_предмета_1Column] = value;
  1655. }
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. public byte Оценка_1 {
  1660. get {
  1661. try {
  1662. return ((byte)(this[this.tableОценки.Оценка_1Column]));
  1663. }
  1664. catch (global::System.InvalidCastException e) {
  1665. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка 1\' в таблице \'Оценки\' равно DBNull.", e);
  1666. }
  1667. }
  1668. set {
  1669. this[this.tableОценки.Оценка_1Column] = value;
  1670. }
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. public System.DateTime Дата_экзамена_2 {
  1675. get {
  1676. try {
  1677. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_2Column]));
  1678. }
  1679. catch (global::System.InvalidCastException e) {
  1680. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 2\' в таблице \'Оценки\' равно DBNull.", e);
  1681. }
  1682. }
  1683. set {
  1684. this[this.tableОценки.Дата_экзамена_2Column] = value;
  1685. }
  1686. }
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1689. public long Код_предмета_2 {
  1690. get {
  1691. try {
  1692. return ((long)(this[this.tableОценки.Код_предмета_2Column]));
  1693. }
  1694. catch (global::System.InvalidCastException e) {
  1695. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 2\' в таблице \'Оценки\' равно DBNull.", e);
  1696. }
  1697. }
  1698. set {
  1699. this[this.tableОценки.Код_предмета_2Column] = value;
  1700. }
  1701. }
  1702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1704. public byte Оценка_2 {
  1705. get {
  1706. return ((byte)(this[this.tableОценки.Оценка_2Column]));
  1707. }
  1708. set {
  1709. this[this.tableОценки.Оценка_2Column] = value;
  1710. }
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1714. public System.DateTime Дата_экзамена_3 {
  1715. get {
  1716. try {
  1717. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_3Column]));
  1718. }
  1719. catch (global::System.InvalidCastException e) {
  1720. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата экзамена 3\' в таблице \'Оценки\' равно DBNull.", e);
  1721. }
  1722. }
  1723. set {
  1724. this[this.tableОценки.Дата_экзамена_3Column] = value;
  1725. }
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1729. public long Код_предмета_3 {
  1730. get {
  1731. try {
  1732. return ((long)(this[this.tableОценки.Код_предмета_3Column]));
  1733. }
  1734. catch (global::System.InvalidCastException e) {
  1735. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код предмета 3\' в таблице \'Оценки\' равно DBNull.", e);
  1736. }
  1737. }
  1738. set {
  1739. this[this.tableОценки.Код_предмета_3Column] = value;
  1740. }
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1744. public byte Оценка_3 {
  1745. get {
  1746. try {
  1747. return ((byte)(this[this.tableОценки.Оценка_3Column]));
  1748. }
  1749. catch (global::System.InvalidCastException e) {
  1750. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка 3\' в таблице \'Оценки\' равно DBNull.", e);
  1751. }
  1752. }
  1753. set {
  1754. this[this.tableОценки.Оценка_3Column] = value;
  1755. }
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. public float Средний_балл {
  1760. get {
  1761. try {
  1762. return ((float)(this[this.tableОценки.Средний_баллColumn]));
  1763. }
  1764. catch (global::System.InvalidCastException e) {
  1765. throw new global::System.Data.StrongTypingException("Значение для столбца \'Средний балл\' в таблице \'Оценки\' равно DBNull.", e);
  1766. }
  1767. }
  1768. set {
  1769. this[this.tableОценки.Средний_баллColumn] = value;
  1770. }
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. public bool IsКод_студентаNull() {
  1775. return this.IsNull(this.tableОценки.Код_студентаColumn);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. public void SetКод_студентаNull() {
  1780. this[this.tableОценки.Код_студентаColumn] = global::System.Convert.DBNull;
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. public bool IsДата_экзамена_1Null() {
  1785. return this.IsNull(this.tableОценки.Дата_экзамена_1Column);
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1789. public void SetДата_экзамена_1Null() {
  1790. this[this.tableОценки.Дата_экзамена_1Column] = global::System.Convert.DBNull;
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1794. public bool IsКод_предмета_1Null() {
  1795. return this.IsNull(this.tableОценки.Код_предмета_1Column);
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public void SetКод_предмета_1Null() {
  1800. this[this.tableОценки.Код_предмета_1Column] = global::System.Convert.DBNull;
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1804. public bool IsОценка_1Null() {
  1805. return this.IsNull(this.tableОценки.Оценка_1Column);
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. public void SetОценка_1Null() {
  1810. this[this.tableОценки.Оценка_1Column] = global::System.Convert.DBNull;
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1814. public bool IsДата_экзамена_2Null() {
  1815. return this.IsNull(this.tableОценки.Дата_экзамена_2Column);
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1819. public void SetДата_экзамена_2Null() {
  1820. this[this.tableОценки.Дата_экзамена_2Column] = global::System.Convert.DBNull;
  1821. }
  1822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1824. public bool IsКод_предмета_2Null() {
  1825. return this.IsNull(this.tableОценки.Код_предмета_2Column);
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. public void SetКод_предмета_2Null() {
  1830. this[this.tableОценки.Код_предмета_2Column] = global::System.Convert.DBNull;
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public bool IsДата_экзамена_3Null() {
  1835. return this.IsNull(this.tableОценки.Дата_экзамена_3Column);
  1836. }
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1839. public void SetДата_экзамена_3Null() {
  1840. this[this.tableОценки.Дата_экзамена_3Column] = global::System.Convert.DBNull;
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1844. public bool IsКод_предмета_3Null() {
  1845. return this.IsNull(this.tableОценки.Код_предмета_3Column);
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1849. public void SetКод_предмета_3Null() {
  1850. this[this.tableОценки.Код_предмета_3Column] = global::System.Convert.DBNull;
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. public bool IsОценка_3Null() {
  1855. return this.IsNull(this.tableОценки.Оценка_3Column);
  1856. }
  1857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. public void SetОценка_3Null() {
  1860. this[this.tableОценки.Оценка_3Column] = global::System.Convert.DBNull;
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1864. public bool IsСредний_баллNull() {
  1865. return this.IsNull(this.tableОценки.Средний_баллColumn);
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1869. public void SetСредний_баллNull() {
  1870. this[this.tableОценки.Средний_баллColumn] = global::System.Convert.DBNull;
  1871. }
  1872. }
  1873. /// <summary>
  1874. ///Represents strongly named DataRow class.
  1875. ///</summary>
  1876. public partial class ПредметыRow : global::System.Data.DataRow {
  1877. private ПредметыDataTable tableПредметы;
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. internal ПредметыRow(global::System.Data.DataRowBuilder rb) :
  1881. base(rb) {
  1882. this.tableПредметы = ((ПредметыDataTable)(this.Table));
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1886. public int Код_предмета {
  1887. get {
  1888. return ((int)(this[this.tableПредметы.Код_предметаColumn]));
  1889. }
  1890. set {
  1891. this[this.tableПредметы.Код_предметаColumn] = value;
  1892. }
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. public string Наименование_предмета {
  1897. get {
  1898. try {
  1899. return ((string)(this[this.tableПредметы.Наименование_предметаColumn]));
  1900. }
  1901. catch (global::System.InvalidCastException e) {
  1902. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование предмета\' в таблице \'Предметы\' равно DBNull.", e);
  1903. }
  1904. }
  1905. set {
  1906. this[this.tableПредметы.Наименование_предметаColumn] = value;
  1907. }
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1911. public string Описание_предмета {
  1912. get {
  1913. try {
  1914. return ((string)(this[this.tableПредметы.Описание_предметаColumn]));
  1915. }
  1916. catch (global::System.InvalidCastException e) {
  1917. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание предмета\' в таблице \'Предметы\' равно DBNull.", e);
  1918. }
  1919. }
  1920. set {
  1921. this[this.tableПредметы.Описание_предметаColumn] = value;
  1922. }
  1923. }
  1924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1926. public bool IsНаименование_предметаNull() {
  1927. return this.IsNull(this.tableПредметы.Наименование_предметаColumn);
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public void SetНаименование_предметаNull() {
  1932. this[this.tableПредметы.Наименование_предметаColumn] = global::System.Convert.DBNull;
  1933. }
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. public bool IsОписание_предметаNull() {
  1937. return this.IsNull(this.tableПредметы.Описание_предметаColumn);
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1941. public void SetОписание_предметаNull() {
  1942. this[this.tableПредметы.Описание_предметаColumn] = global::System.Convert.DBNull;
  1943. }
  1944. }
  1945. /// <summary>
  1946. ///Represents strongly named DataRow class.
  1947. ///</summary>
  1948. public partial class СпециальностиRow : global::System.Data.DataRow {
  1949. private СпециальностиDataTable tableСпециальности;
  1950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1952. internal СпециальностиRow(global::System.Data.DataRowBuilder rb) :
  1953. base(rb) {
  1954. this.tableСпециальности = ((СпециальностиDataTable)(this.Table));
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1958. public int Код_специальности {
  1959. get {
  1960. return ((int)(this[this.tableСпециальности.Код_специальностиColumn]));
  1961. }
  1962. set {
  1963. this[this.tableСпециальности.Код_специальностиColumn] = value;
  1964. }
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1968. public string Наименование_специальности {
  1969. get {
  1970. return ((string)(this[this.tableСпециальности.Наименование_специальностиColumn]));
  1971. }
  1972. set {
  1973. this[this.tableСпециальности.Наименование_специальностиColumn] = value;
  1974. }
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. public string Описание_специальности {
  1979. get {
  1980. try {
  1981. return ((string)(this[this.tableСпециальности.Описание_специальностиColumn]));
  1982. }
  1983. catch (global::System.InvalidCastException e) {
  1984. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание специальности\' в таблице \'Специальности\' равно DBN" +
  1985. "ull.", e);
  1986. }
  1987. }
  1988. set {
  1989. this[this.tableСпециальности.Описание_специальностиColumn] = value;
  1990. }
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1994. public bool IsОписание_специальностиNull() {
  1995. return this.IsNull(this.tableСпециальности.Описание_специальностиColumn);
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1999. public void SetОписание_специальностиNull() {
  2000. this[this.tableСпециальности.Описание_специальностиColumn] = global::System.Convert.DBNull;
  2001. }
  2002. }
  2003. /// <summary>
  2004. ///Represents strongly named DataRow class.
  2005. ///</summary>
  2006. public partial class СтудентыRow : global::System.Data.DataRow {
  2007. private СтудентыDataTable tableСтуденты;
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2010. internal СтудентыRow(global::System.Data.DataRowBuilder rb) :
  2011. base(rb) {
  2012. this.tableСтуденты = ((СтудентыDataTable)(this.Table));
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public int Код_студента {
  2017. get {
  2018. return ((int)(this[this.tableСтуденты.Код_студентаColumn]));
  2019. }
  2020. set {
  2021. this[this.tableСтуденты.Код_студентаColumn] = value;
  2022. }
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public string ФИО {
  2027. get {
  2028. try {
  2029. return ((string)(this[this.tableСтуденты.ФИОColumn]));
  2030. }
  2031. catch (global::System.InvalidCastException e) {
  2032. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Студенты\' равно DBNull.", e);
  2033. }
  2034. }
  2035. set {
  2036. this[this.tableСтуденты.ФИОColumn] = value;
  2037. }
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public string Пол {
  2042. get {
  2043. try {
  2044. return ((string)(this[this.tableСтуденты.ПолColumn]));
  2045. }
  2046. catch (global::System.InvalidCastException e) {
  2047. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пол\' в таблице \'Студенты\' равно DBNull.", e);
  2048. }
  2049. }
  2050. set {
  2051. this[this.tableСтуденты.ПолColumn] = value;
  2052. }
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. public System.DateTime Дата_рождения {
  2057. get {
  2058. try {
  2059. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_рожденияColumn]));
  2060. }
  2061. catch (global::System.InvalidCastException e) {
  2062. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата рождения\' в таблице \'Студенты\' равно DBNull.", e);
  2063. }
  2064. }
  2065. set {
  2066. this[this.tableСтуденты.Дата_рожденияColumn] = value;
  2067. }
  2068. }
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2071. public string Родители {
  2072. get {
  2073. try {
  2074. return ((string)(this[this.tableСтуденты.РодителиColumn]));
  2075. }
  2076. catch (global::System.InvalidCastException e) {
  2077. throw new global::System.Data.StrongTypingException("Значение для столбца \'Родители\' в таблице \'Студенты\' равно DBNull.", e);
  2078. }
  2079. }
  2080. set {
  2081. this[this.tableСтуденты.РодителиColumn] = value;
  2082. }
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public string Адрес {
  2087. get {
  2088. try {
  2089. return ((string)(this[this.tableСтуденты.АдресColumn]));
  2090. }
  2091. catch (global::System.InvalidCastException e) {
  2092. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Студенты\' равно DBNull.", e);
  2093. }
  2094. }
  2095. set {
  2096. this[this.tableСтуденты.АдресColumn] = value;
  2097. }
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. public string Телефон {
  2102. get {
  2103. try {
  2104. return ((string)(this[this.tableСтуденты.ТелефонColumn]));
  2105. }
  2106. catch (global::System.InvalidCastException e) {
  2107. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Студенты\' равно DBNull.", e);
  2108. }
  2109. }
  2110. set {
  2111. this[this.tableСтуденты.ТелефонColumn] = value;
  2112. }
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public string Паспортные_данные {
  2117. get {
  2118. try {
  2119. return ((string)(this[this.tableСтуденты.Паспортные_данныеColumn]));
  2120. }
  2121. catch (global::System.InvalidCastException e) {
  2122. throw new global::System.Data.StrongTypingException("Значение для столбца \'Паспортные данные\' в таблице \'Студенты\' равно DBNull.", e);
  2123. }
  2124. }
  2125. set {
  2126. this[this.tableСтуденты.Паспортные_данныеColumn] = value;
  2127. }
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2131. public long Нумер_зачётки {
  2132. get {
  2133. try {
  2134. return ((long)(this[this.tableСтуденты.Нумер_зачёткиColumn]));
  2135. }
  2136. catch (global::System.InvalidCastException e) {
  2137. throw new global::System.Data.StrongTypingException("Значение для столбца \'Нумер зачётки\' в таблице \'Студенты\' равно DBNull.", e);
  2138. }
  2139. }
  2140. set {
  2141. this[this.tableСтуденты.Нумер_зачёткиColumn] = value;
  2142. }
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public System.DateTime Дата_поступления {
  2147. get {
  2148. try {
  2149. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_поступленияColumn]));
  2150. }
  2151. catch (global::System.InvalidCastException e) {
  2152. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата поступления\' в таблице \'Студенты\' равно DBNull.", e);
  2153. }
  2154. }
  2155. set {
  2156. this[this.tableСтуденты.Дата_поступленияColumn] = value;
  2157. }
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. public string Группа {
  2162. get {
  2163. try {
  2164. return ((string)(this[this.tableСтуденты.ГруппаColumn]));
  2165. }
  2166. catch (global::System.InvalidCastException e) {
  2167. throw new global::System.Data.StrongTypingException("Значение для столбца \'Группа\' в таблице \'Студенты\' равно DBNull.", e);
  2168. }
  2169. }
  2170. set {
  2171. this[this.tableСтуденты.ГруппаColumn] = value;
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. public byte Курс {
  2177. get {
  2178. try {
  2179. return ((byte)(this[this.tableСтуденты.КурсColumn]));
  2180. }
  2181. catch (global::System.InvalidCastException e) {
  2182. throw new global::System.Data.StrongTypingException("Значение для столбца \'Курс\' в таблице \'Студенты\' равно DBNull.", e);
  2183. }
  2184. }
  2185. set {
  2186. this[this.tableСтуденты.КурсColumn] = value;
  2187. }
  2188. }
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public long Код_специальности {
  2192. get {
  2193. try {
  2194. return ((long)(this[this.tableСтуденты.Код_специальностиColumn]));
  2195. }
  2196. catch (global::System.InvalidCastException e) {
  2197. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код специальности\' в таблице \'Студенты\' равно DBNull.", e);
  2198. }
  2199. }
  2200. set {
  2201. this[this.tableСтуденты.Код_специальностиColumn] = value;
  2202. }
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public bool Очная_форма_обучения {
  2207. get {
  2208. try {
  2209. return ((bool)(this[this.tableСтуденты.Очная_форма_обученияColumn]));
  2210. }
  2211. catch (global::System.InvalidCastException e) {
  2212. throw new global::System.Data.StrongTypingException("Значение для столбца \'Очная форма обучения\' в таблице \'Студенты\' равно DBNull.", e);
  2213. }
  2214. }
  2215. set {
  2216. this[this.tableСтуденты.Очная_форма_обученияColumn] = value;
  2217. }
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. public bool IsФИОNull() {
  2222. return this.IsNull(this.tableСтуденты.ФИОColumn);
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2226. public void SetФИОNull() {
  2227. this[this.tableСтуденты.ФИОColumn] = global::System.Convert.DBNull;
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2231. public bool IsПолNull() {
  2232. return this.IsNull(this.tableСтуденты.ПолColumn);
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2236. public void SetПолNull() {
  2237. this[this.tableСтуденты.ПолColumn] = global::System.Convert.DBNull;
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2241. public bool IsДата_рожденияNull() {
  2242. return this.IsNull(this.tableСтуденты.Дата_рожденияColumn);
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2246. public void SetДата_рожденияNull() {
  2247. this[this.tableСтуденты.Дата_рожденияColumn] = global::System.Convert.DBNull;
  2248. }
  2249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2251. public bool IsРодителиNull() {
  2252. return this.IsNull(this.tableСтуденты.РодителиColumn);
  2253. }
  2254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2256. public void SetРодителиNull() {
  2257. this[this.tableСтуденты.РодителиColumn] = global::System.Convert.DBNull;
  2258. }
  2259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2261. public bool IsАдресNull() {
  2262. return this.IsNull(this.tableСтуденты.АдресColumn);
  2263. }
  2264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2266. public void SetАдресNull() {
  2267. this[this.tableСтуденты.АдресColumn] = global::System.Convert.DBNull;
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. public bool IsТелефонNull() {
  2272. return this.IsNull(this.tableСтуденты.ТелефонColumn);
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. public void SetТелефонNull() {
  2277. this[this.tableСтуденты.ТелефонColumn] = global::System.Convert.DBNull;
  2278. }
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2281. public bool IsПаспортные_данныеNull() {
  2282. return this.IsNull(this.tableСтуденты.Паспортные_данныеColumn);
  2283. }
  2284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2286. public void SetПаспортные_данныеNull() {
  2287. this[this.tableСтуденты.Паспортные_данныеColumn] = global::System.Convert.DBNull;
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. public bool IsНумер_зачёткиNull() {
  2292. return this.IsNull(this.tableСтуденты.Нумер_зачёткиColumn);
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. public void SetНумер_зачёткиNull() {
  2297. this[this.tableСтуденты.Нумер_зачёткиColumn] = global::System.Convert.DBNull;
  2298. }
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2301. public bool IsДата_поступленияNull() {
  2302. return this.IsNull(this.tableСтуденты.Дата_поступленияColumn);
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. public void SetДата_поступленияNull() {
  2307. this[this.tableСтуденты.Дата_поступленияColumn] = global::System.Convert.DBNull;
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2311. public bool IsГруппаNull() {
  2312. return this.IsNull(this.tableСтуденты.ГруппаColumn);
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. public void SetГруппаNull() {
  2317. this[this.tableСтуденты.ГруппаColumn] = global::System.Convert.DBNull;
  2318. }
  2319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2321. public bool IsКурсNull() {
  2322. return this.IsNull(this.tableСтуденты.КурсColumn);
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. public void SetКурсNull() {
  2327. this[this.tableСтуденты.КурсColumn] = global::System.Convert.DBNull;
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public bool IsКод_специальностиNull() {
  2332. return this.IsNull(this.tableСтуденты.Код_специальностиColumn);
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2336. public void SetКод_специальностиNull() {
  2337. this[this.tableСтуденты.Код_специальностиColumn] = global::System.Convert.DBNull;
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public bool IsОчная_форма_обученияNull() {
  2342. return this.IsNull(this.tableСтуденты.Очная_форма_обученияColumn);
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. public void SetОчная_форма_обученияNull() {
  2347. this[this.tableСтуденты.Очная_форма_обученияColumn] = global::System.Convert.DBNull;
  2348. }
  2349. }
  2350. /// <summary>
  2351. ///Row event argument class
  2352. ///</summary>
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2354. public class ОценкиRowChangeEvent : global::System.EventArgs {
  2355. private ОценкиRow eventRow;
  2356. private global::System.Data.DataRowAction eventAction;
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. public ОценкиRowChangeEvent(ОценкиRow row, global::System.Data.DataRowAction action) {
  2360. this.eventRow = row;
  2361. this.eventAction = action;
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. public ОценкиRow Row {
  2366. get {
  2367. return this.eventRow;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public global::System.Data.DataRowAction Action {
  2373. get {
  2374. return this.eventAction;
  2375. }
  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. }
  2463. }
  2464. namespace KachaevBuynitskiyStudents.BuynitskiyStudentsDataSet1TableAdapters {
  2465. /// <summary>
  2466. ///Represents the connection and commands used to retrieve and save data.
  2467. ///</summary>
  2468. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2469. [global::System.ComponentModel.ToolboxItem(true)]
  2470. [global::System.ComponentModel.DataObjectAttribute(true)]
  2471. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2472. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2474. public partial class ОценкиTableAdapter : global::System.ComponentModel.Component {
  2475. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2476. private global::System.Data.SqlClient.SqlConnection _connection;
  2477. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2478. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2479. private bool _clearBeforeFill;
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. public ОценкиTableAdapter() {
  2483. this.ClearBeforeFill = true;
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2487. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2488. get {
  2489. if ((this._adapter == null)) {
  2490. this.InitAdapter();
  2491. }
  2492. return this._adapter;
  2493. }
  2494. }
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2497. internal global::System.Data.SqlClient.SqlConnection Connection {
  2498. get {
  2499. if ((this._connection == null)) {
  2500. this.InitConnection();
  2501. }
  2502. return this._connection;
  2503. }
  2504. set {
  2505. this._connection = value;
  2506. if ((this.Adapter.InsertCommand != null)) {
  2507. this.Adapter.InsertCommand.Connection = value;
  2508. }
  2509. if ((this.Adapter.DeleteCommand != null)) {
  2510. this.Adapter.DeleteCommand.Connection = value;
  2511. }
  2512. if ((this.Adapter.UpdateCommand != null)) {
  2513. this.Adapter.UpdateCommand.Connection = value;
  2514. }
  2515. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2516. if ((this.CommandCollection[i] != null)) {
  2517. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2518. }
  2519. }
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2525. get {
  2526. return this._transaction;
  2527. }
  2528. set {
  2529. this._transaction = value;
  2530. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2531. this.CommandCollection[i].Transaction = this._transaction;
  2532. }
  2533. if (((this.Adapter != null)
  2534. && (this.Adapter.DeleteCommand != null))) {
  2535. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2536. }
  2537. if (((this.Adapter != null)
  2538. && (this.Adapter.InsertCommand != null))) {
  2539. this.Adapter.InsertCommand.Transaction = this._transaction;
  2540. }
  2541. if (((this.Adapter != null)
  2542. && (this.Adapter.UpdateCommand != null))) {
  2543. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2544. }
  2545. }
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2550. get {
  2551. if ((this._commandCollection == null)) {
  2552. this.InitCommandCollection();
  2553. }
  2554. return this._commandCollection;
  2555. }
  2556. }
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2559. public bool ClearBeforeFill {
  2560. get {
  2561. return this._clearBeforeFill;
  2562. }
  2563. set {
  2564. this._clearBeforeFill = value;
  2565. }
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. private void InitAdapter() {
  2570. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2571. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2572. tableMapping.SourceTable = "Table";
  2573. tableMapping.DataSetTable = "Оценки";
  2574. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  2575. tableMapping.ColumnMappings.Add("Дата экзамена 1", "Дата экзамена 1");
  2576. tableMapping.ColumnMappings.Add("Код предмета 1", "Код предмета 1");
  2577. tableMapping.ColumnMappings.Add("Оценка 1", "Оценка 1");
  2578. tableMapping.ColumnMappings.Add("Дата экзамена 2", "Дата экзамена 2");
  2579. tableMapping.ColumnMappings.Add("Код предмета 2", "Код предмета 2");
  2580. tableMapping.ColumnMappings.Add("Оценка 2", "Оценка 2");
  2581. tableMapping.ColumnMappings.Add("Дата экзамена 3", "Дата экзамена 3");
  2582. tableMapping.ColumnMappings.Add("Код предмета 3", "Код предмета 3");
  2583. tableMapping.ColumnMappings.Add("Оценка 3", "Оценка 3");
  2584. tableMapping.ColumnMappings.Add("Средний балл", "Средний балл");
  2585. this._adapter.TableMappings.Add(tableMapping);
  2586. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2587. this._adapter.InsertCommand.Connection = this.Connection;
  2588. 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, @Средний_балл)";
  2589. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2590. 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, "", "", ""));
  2591. 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, "", "", ""));
  2592. 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, "", "", ""));
  2593. 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, "", "", ""));
  2594. 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, "", "", ""));
  2595. 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, "", "", ""));
  2596. 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, "", "", ""));
  2597. 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, "", "", ""));
  2598. 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, "", "", ""));
  2599. 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, "", "", ""));
  2600. 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, "", "", ""));
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. private void InitConnection() {
  2605. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2606. this._connection.ConnectionString = global::KachaevBuynitskiyStudents.Properties.Settings.Default.BuynitskiyStudentsConnectionString;
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. private void InitCommandCollection() {
  2611. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2612. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2613. this._commandCollection[0].Connection = this.Connection;
  2614. this._commandCollection[0].CommandText = "SELECT [Код студента], [Дата экзамена 1], [Код предмета 1], [Оценка 1], [Дата экз" +
  2615. "амена 2], [Код предмета 2], [Оценка 2], [Дата экзамена 3], [Код предмета 3], [Оц" +
  2616. "енка 3], [Средний балл] FROM dbo.Оценки";
  2617. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2622. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2623. public virtual int Fill(BuynitskiyStudentsDataSet1.ОценкиDataTable dataTable) {
  2624. this.Adapter.SelectCommand = this.CommandCollection[0];
  2625. if ((this.ClearBeforeFill == true)) {
  2626. dataTable.Clear();
  2627. }
  2628. int returnValue = this.Adapter.Fill(dataTable);
  2629. return returnValue;
  2630. }
  2631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2634. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2635. public virtual BuynitskiyStudentsDataSet1.ОценкиDataTable GetData() {
  2636. this.Adapter.SelectCommand = this.CommandCollection[0];
  2637. BuynitskiyStudentsDataSet1.ОценкиDataTable dataTable = new BuynitskiyStudentsDataSet1.ОценкиDataTable();
  2638. this.Adapter.Fill(dataTable);
  2639. return dataTable;
  2640. }
  2641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2643. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2644. public virtual int Update(BuynitskiyStudentsDataSet1.ОценкиDataTable dataTable) {
  2645. return this.Adapter.Update(dataTable);
  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. public virtual int Update(BuynitskiyStudentsDataSet1 dataSet) {
  2651. return this.Adapter.Update(dataSet, "Оценки");
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2656. public virtual int Update(global::System.Data.DataRow dataRow) {
  2657. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2658. dataRow});
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2663. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2664. return this.Adapter.Update(dataRows);
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2669. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2670. 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, byte Оценка_2, global::System.Nullable<global::System.DateTime> Дата_экзамена_3, global::System.Nullable<long> Код_предмета_3, global::System.Nullable<byte> Оценка_3, global::System.Nullable<float> Средний_балл) {
  2671. if ((Код_студента.HasValue == true)) {
  2672. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_студента.Value));
  2673. }
  2674. else {
  2675. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2676. }
  2677. if ((Дата_экзамена_1.HasValue == true)) {
  2678. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_экзамена_1.Value));
  2679. }
  2680. else {
  2681. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2682. }
  2683. if ((Код_предмета_1.HasValue == true)) {
  2684. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(Код_предмета_1.Value));
  2685. }
  2686. else {
  2687. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2688. }
  2689. if ((Оценка_1.HasValue == true)) {
  2690. this.Adapter.InsertCommand.Parameters[3].Value = ((byte)(Оценка_1.Value));
  2691. }
  2692. else {
  2693. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2694. }
  2695. if ((Дата_экзамена_2.HasValue == true)) {
  2696. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата_экзамена_2.Value));
  2697. }
  2698. else {
  2699. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  2700. }
  2701. if ((Код_предмета_2.HasValue == true)) {
  2702. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(Код_предмета_2.Value));
  2703. }
  2704. else {
  2705. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2706. }
  2707. this.Adapter.InsertCommand.Parameters[6].Value = ((byte)(Оценка_2));
  2708. if ((Дата_экзамена_3.HasValue == true)) {
  2709. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_экзамена_3.Value));
  2710. }
  2711. else {
  2712. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  2713. }
  2714. if ((Код_предмета_3.HasValue == true)) {
  2715. this.Adapter.InsertCommand.Parameters[8].Value = ((long)(Код_предмета_3.Value));
  2716. }
  2717. else {
  2718. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  2719. }
  2720. if ((Оценка_3.HasValue == true)) {
  2721. this.Adapter.InsertCommand.Parameters[9].Value = ((byte)(Оценка_3.Value));
  2722. }
  2723. else {
  2724. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  2725. }
  2726. if ((Средний_балл.HasValue == true)) {
  2727. this.Adapter.InsertCommand.Parameters[10].Value = ((float)(Средний_балл.Value));
  2728. }
  2729. else {
  2730. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  2731. }
  2732. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2733. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2734. != global::System.Data.ConnectionState.Open)) {
  2735. this.Adapter.InsertCommand.Connection.Open();
  2736. }
  2737. try {
  2738. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2739. return returnValue;
  2740. }
  2741. finally {
  2742. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2743. this.Adapter.InsertCommand.Connection.Close();
  2744. }
  2745. }
  2746. }
  2747. }
  2748. /// <summary>
  2749. ///Represents the connection and commands used to retrieve and save data.
  2750. ///</summary>
  2751. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2752. [global::System.ComponentModel.ToolboxItem(true)]
  2753. [global::System.ComponentModel.DataObjectAttribute(true)]
  2754. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2755. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2756. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2757. public partial class ПредметыTableAdapter : global::System.ComponentModel.Component {
  2758. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2759. private global::System.Data.SqlClient.SqlConnection _connection;
  2760. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2761. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2762. private bool _clearBeforeFill;
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public ПредметыTableAdapter() {
  2766. this.ClearBeforeFill = true;
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2771. get {
  2772. if ((this._adapter == null)) {
  2773. this.InitAdapter();
  2774. }
  2775. return this._adapter;
  2776. }
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2780. internal global::System.Data.SqlClient.SqlConnection Connection {
  2781. get {
  2782. if ((this._connection == null)) {
  2783. this.InitConnection();
  2784. }
  2785. return this._connection;
  2786. }
  2787. set {
  2788. this._connection = value;
  2789. if ((this.Adapter.InsertCommand != null)) {
  2790. this.Adapter.InsertCommand.Connection = value;
  2791. }
  2792. if ((this.Adapter.DeleteCommand != null)) {
  2793. this.Adapter.DeleteCommand.Connection = value;
  2794. }
  2795. if ((this.Adapter.UpdateCommand != null)) {
  2796. this.Adapter.UpdateCommand.Connection = value;
  2797. }
  2798. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2799. if ((this.CommandCollection[i] != null)) {
  2800. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2801. }
  2802. }
  2803. }
  2804. }
  2805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2807. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2808. get {
  2809. return this._transaction;
  2810. }
  2811. set {
  2812. this._transaction = value;
  2813. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2814. this.CommandCollection[i].Transaction = this._transaction;
  2815. }
  2816. if (((this.Adapter != null)
  2817. && (this.Adapter.DeleteCommand != null))) {
  2818. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2819. }
  2820. if (((this.Adapter != null)
  2821. && (this.Adapter.InsertCommand != null))) {
  2822. this.Adapter.InsertCommand.Transaction = this._transaction;
  2823. }
  2824. if (((this.Adapter != null)
  2825. && (this.Adapter.UpdateCommand != null))) {
  2826. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2827. }
  2828. }
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2832. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2833. get {
  2834. if ((this._commandCollection == null)) {
  2835. this.InitCommandCollection();
  2836. }
  2837. return this._commandCollection;
  2838. }
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. public bool ClearBeforeFill {
  2843. get {
  2844. return this._clearBeforeFill;
  2845. }
  2846. set {
  2847. this._clearBeforeFill = value;
  2848. }
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. private void InitAdapter() {
  2853. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2854. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2855. tableMapping.SourceTable = "Table";
  2856. tableMapping.DataSetTable = "Предметы";
  2857. tableMapping.ColumnMappings.Add("Код предмета", "Код предмета");
  2858. tableMapping.ColumnMappings.Add("Наименование предмета", "Наименование предмета");
  2859. tableMapping.ColumnMappings.Add("Описание предмета", "Описание предмета");
  2860. this._adapter.TableMappings.Add(tableMapping);
  2861. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2862. this._adapter.DeleteCommand.Connection = this.Connection;
  2863. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Предметы] WHERE (([Код предмета] = @Original_Код_предмета) AND" +
  2864. " ((@IsNull_Наименование_предмета = 1 AND [Наименование предмета] IS NULL) OR ([Н" +
  2865. "аименование предмета] = @Original_Наименование_предмета)))";
  2866. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2867. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_предмета", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2868. 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, "", "", ""));
  2869. 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, "", "", ""));
  2870. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2871. this._adapter.InsertCommand.Connection = this.Connection;
  2872. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Предметы] ([Наименование предмета], [Описание предмета]) VALUE" +
  2873. "S (@Наименование_предмета, @Описание_предмета);\r\nSELECT [Код предмета], [Наимено" +
  2874. "вание предмета], [Описание предмета] FROM Предметы WHERE ([Код предмета] = SCOPE" +
  2875. "_IDENTITY())";
  2876. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2877. 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, "", "", ""));
  2878. 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, "", "", ""));
  2879. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2880. this._adapter.UpdateCommand.Connection = this.Connection;
  2881. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Предметы] SET [Наименование предмета] = @Наименование_предмета, [Описание предмета] = @Описание_предмета WHERE (([Код предмета] = @Original_Код_предмета) AND ((@IsNull_Наименование_предмета = 1 AND [Наименование предмета] IS NULL) OR ([Наименование предмета] = @Original_Наименование_предмета)));
  2882. SELECT [Код предмета], [Наименование предмета], [Описание предмета] FROM Предметы WHERE ([Код предмета] = @Код_предмета)";
  2883. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2884. 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, "", "", ""));
  2885. 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, "", "", ""));
  2886. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_предмета", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2887. 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, "", "", ""));
  2888. 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, "", "", ""));
  2889. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. private void InitConnection() {
  2894. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2895. this._connection.ConnectionString = global::KachaevBuynitskiyStudents.Properties.Settings.Default.BuynitskiyStudentsConnectionString;
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. private void InitCommandCollection() {
  2900. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2901. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2902. this._commandCollection[0].Connection = this.Connection;
  2903. this._commandCollection[0].CommandText = "SELECT [Код предмета], [Наименование предмета], [Описание предмета] FROM dbo.Пред" +
  2904. "меты";
  2905. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2906. }
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2911. public virtual int Fill(BuynitskiyStudentsDataSet1.ПредметыDataTable dataTable) {
  2912. this.Adapter.SelectCommand = this.CommandCollection[0];
  2913. if ((this.ClearBeforeFill == true)) {
  2914. dataTable.Clear();
  2915. }
  2916. int returnValue = this.Adapter.Fill(dataTable);
  2917. return returnValue;
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2923. public virtual BuynitskiyStudentsDataSet1.ПредметыDataTable GetData() {
  2924. this.Adapter.SelectCommand = this.CommandCollection[0];
  2925. BuynitskiyStudentsDataSet1.ПредметыDataTable dataTable = new BuynitskiyStudentsDataSet1.ПредметыDataTable();
  2926. this.Adapter.Fill(dataTable);
  2927. return dataTable;
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2932. public virtual int Update(BuynitskiyStudentsDataSet1.ПредметыDataTable dataTable) {
  2933. return this.Adapter.Update(dataTable);
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2938. public virtual int Update(BuynitskiyStudentsDataSet1 dataSet) {
  2939. return this.Adapter.Update(dataSet, "Предметы");
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2943. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2944. public virtual int Update(global::System.Data.DataRow dataRow) {
  2945. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2946. dataRow});
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2951. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2952. return this.Adapter.Update(dataRows);
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2957. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2958. public virtual int Delete(int Original_Код_предмета, string Original_Наименование_предмета) {
  2959. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_предмета));
  2960. if ((Original_Наименование_предмета == null)) {
  2961. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2962. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2963. }
  2964. else {
  2965. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2966. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование_предмета));
  2967. }
  2968. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2969. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2970. != global::System.Data.ConnectionState.Open)) {
  2971. this.Adapter.DeleteCommand.Connection.Open();
  2972. }
  2973. try {
  2974. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2975. return returnValue;
  2976. }
  2977. finally {
  2978. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2979. this.Adapter.DeleteCommand.Connection.Close();
  2980. }
  2981. }
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2987. public virtual int Insert(string Наименование_предмета, string Описание_предмета) {
  2988. if ((Наименование_предмета == null)) {
  2989. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2990. }
  2991. else {
  2992. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_предмета));
  2993. }
  2994. if ((Описание_предмета == null)) {
  2995. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2996. }
  2997. else {
  2998. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Описание_предмета));
  2999. }
  3000. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3001. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3002. != global::System.Data.ConnectionState.Open)) {
  3003. this.Adapter.InsertCommand.Connection.Open();
  3004. }
  3005. try {
  3006. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3007. return returnValue;
  3008. }
  3009. finally {
  3010. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3011. this.Adapter.InsertCommand.Connection.Close();
  3012. }
  3013. }
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3018. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3019. public virtual int Update(string Наименование_предмета, string Описание_предмета, int Original_Код_предмета, string Original_Наименование_предмета, int Код_предмета) {
  3020. if ((Наименование_предмета == null)) {
  3021. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3022. }
  3023. else {
  3024. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_предмета));
  3025. }
  3026. if ((Описание_предмета == null)) {
  3027. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3028. }
  3029. else {
  3030. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Описание_предмета));
  3031. }
  3032. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Код_предмета));
  3033. if ((Original_Наименование_предмета == null)) {
  3034. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  3035. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3036. }
  3037. else {
  3038. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  3039. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование_предмета));
  3040. }
  3041. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Код_предмета));
  3042. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3043. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3044. != global::System.Data.ConnectionState.Open)) {
  3045. this.Adapter.UpdateCommand.Connection.Open();
  3046. }
  3047. try {
  3048. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3049. return returnValue;
  3050. }
  3051. finally {
  3052. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3053. this.Adapter.UpdateCommand.Connection.Close();
  3054. }
  3055. }
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3060. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3061. public virtual int Update(string Наименование_предмета, string Описание_предмета, int Original_Код_предмета, string Original_Наименование_предмета) {
  3062. return this.Update(Наименование_предмета, Описание_предмета, Original_Код_предмета, Original_Наименование_предмета, Original_Код_предмета);
  3063. }
  3064. }
  3065. /// <summary>
  3066. ///Represents the connection and commands used to retrieve and save data.
  3067. ///</summary>
  3068. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3069. [global::System.ComponentModel.ToolboxItem(true)]
  3070. [global::System.ComponentModel.DataObjectAttribute(true)]
  3071. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3072. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3074. public partial class СпециальностиTableAdapter : global::System.ComponentModel.Component {
  3075. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3076. private global::System.Data.SqlClient.SqlConnection _connection;
  3077. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3078. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3079. private bool _clearBeforeFill;
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3082. public СпециальностиTableAdapter() {
  3083. this.ClearBeforeFill = true;
  3084. }
  3085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3087. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3088. get {
  3089. if ((this._adapter == null)) {
  3090. this.InitAdapter();
  3091. }
  3092. return this._adapter;
  3093. }
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. internal global::System.Data.SqlClient.SqlConnection Connection {
  3098. get {
  3099. if ((this._connection == null)) {
  3100. this.InitConnection();
  3101. }
  3102. return this._connection;
  3103. }
  3104. set {
  3105. this._connection = value;
  3106. if ((this.Adapter.InsertCommand != null)) {
  3107. this.Adapter.InsertCommand.Connection = value;
  3108. }
  3109. if ((this.Adapter.DeleteCommand != null)) {
  3110. this.Adapter.DeleteCommand.Connection = value;
  3111. }
  3112. if ((this.Adapter.UpdateCommand != null)) {
  3113. this.Adapter.UpdateCommand.Connection = value;
  3114. }
  3115. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3116. if ((this.CommandCollection[i] != null)) {
  3117. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3118. }
  3119. }
  3120. }
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3124. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3125. get {
  3126. return this._transaction;
  3127. }
  3128. set {
  3129. this._transaction = value;
  3130. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3131. this.CommandCollection[i].Transaction = this._transaction;
  3132. }
  3133. if (((this.Adapter != null)
  3134. && (this.Adapter.DeleteCommand != null))) {
  3135. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3136. }
  3137. if (((this.Adapter != null)
  3138. && (this.Adapter.InsertCommand != null))) {
  3139. this.Adapter.InsertCommand.Transaction = this._transaction;
  3140. }
  3141. if (((this.Adapter != null)
  3142. && (this.Adapter.UpdateCommand != null))) {
  3143. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3144. }
  3145. }
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3150. get {
  3151. if ((this._commandCollection == null)) {
  3152. this.InitCommandCollection();
  3153. }
  3154. return this._commandCollection;
  3155. }
  3156. }
  3157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3159. public bool ClearBeforeFill {
  3160. get {
  3161. return this._clearBeforeFill;
  3162. }
  3163. set {
  3164. this._clearBeforeFill = value;
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. private void InitAdapter() {
  3170. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3171. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3172. tableMapping.SourceTable = "Table";
  3173. tableMapping.DataSetTable = "Специальности";
  3174. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3175. tableMapping.ColumnMappings.Add("Наименование специальности", "Наименование специальности");
  3176. tableMapping.ColumnMappings.Add("Описание специальности", "Описание специальности");
  3177. this._adapter.TableMappings.Add(tableMapping);
  3178. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3179. this._adapter.DeleteCommand.Connection = this.Connection;
  3180. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Специальности] WHERE (([Код специальности] = @Original_Код_спе" +
  3181. "циальности) AND ([Наименование специальности] = @Original_Наименование_специальн" +
  3182. "ости))";
  3183. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3184. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3185. 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, "", "", ""));
  3186. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3187. this._adapter.InsertCommand.Connection = this.Connection;
  3188. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Специальности] ([Наименование специальности], [Описание специальности]) VALUES (@Наименование_специальности, @Описание_специальности);
  3189. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = SCOPE_IDENTITY())";
  3190. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3191. 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, "", "", ""));
  3192. 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, "", "", ""));
  3193. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3194. this._adapter.UpdateCommand.Connection = this.Connection;
  3195. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Специальности] SET [Наименование специальности] = @Наименование_специальности, [Описание специальности] = @Описание_специальности WHERE (([Код специальности] = @Original_Код_специальности) AND ([Наименование специальности] = @Original_Наименование_специальности));
  3196. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = @Код_специальности)";
  3197. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3198. 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, "", "", ""));
  3199. 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, "", "", ""));
  3200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3201. 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, "", "", ""));
  3202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3206. private void InitConnection() {
  3207. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3208. this._connection.ConnectionString = global::KachaevBuynitskiyStudents.Properties.Settings.Default.BuynitskiyStudentsConnectionString;
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3212. private void InitCommandCollection() {
  3213. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3214. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3215. this._commandCollection[0].Connection = this.Connection;
  3216. this._commandCollection[0].CommandText = "SELECT [Код специальности], [Наименование специальности], [Описание специальности" +
  3217. "] FROM dbo.Специальности";
  3218. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3219. }
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3223. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3224. public virtual int Fill(BuynitskiyStudentsDataSet1.СпециальностиDataTable dataTable) {
  3225. this.Adapter.SelectCommand = this.CommandCollection[0];
  3226. if ((this.ClearBeforeFill == true)) {
  3227. dataTable.Clear();
  3228. }
  3229. int returnValue = this.Adapter.Fill(dataTable);
  3230. return returnValue;
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3235. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3236. public virtual BuynitskiyStudentsDataSet1.СпециальностиDataTable GetData() {
  3237. this.Adapter.SelectCommand = this.CommandCollection[0];
  3238. BuynitskiyStudentsDataSet1.СпециальностиDataTable dataTable = new BuynitskiyStudentsDataSet1.СпециальностиDataTable();
  3239. this.Adapter.Fill(dataTable);
  3240. return dataTable;
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3245. public virtual int Update(BuynitskiyStudentsDataSet1.СпециальностиDataTable dataTable) {
  3246. return this.Adapter.Update(dataTable);
  3247. }
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3251. public virtual int Update(BuynitskiyStudentsDataSet1 dataSet) {
  3252. return this.Adapter.Update(dataSet, "Специальности");
  3253. }
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3257. public virtual int Update(global::System.Data.DataRow dataRow) {
  3258. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3259. dataRow});
  3260. }
  3261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3264. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3265. return this.Adapter.Update(dataRows);
  3266. }
  3267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3269. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3270. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3271. public virtual int Delete(int Original_Код_специальности, string Original_Наименование_специальности) {
  3272. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_специальности));
  3273. if ((Original_Наименование_специальности == null)) {
  3274. throw new global::System.ArgumentNullException("Original_Наименование_специальности");
  3275. }
  3276. else {
  3277. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_специальности));
  3278. }
  3279. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3280. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3281. != global::System.Data.ConnectionState.Open)) {
  3282. this.Adapter.DeleteCommand.Connection.Open();
  3283. }
  3284. try {
  3285. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3286. return returnValue;
  3287. }
  3288. finally {
  3289. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3290. this.Adapter.DeleteCommand.Connection.Close();
  3291. }
  3292. }
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3297. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3298. public virtual int Insert(string Наименование_специальности, string Описание_специальности) {
  3299. if ((Наименование_специальности == null)) {
  3300. throw new global::System.ArgumentNullException("Наименование_специальности");
  3301. }
  3302. else {
  3303. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_специальности));
  3304. }
  3305. if ((Описание_специальности == null)) {
  3306. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3307. }
  3308. else {
  3309. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Описание_специальности));
  3310. }
  3311. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3312. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3313. != global::System.Data.ConnectionState.Open)) {
  3314. this.Adapter.InsertCommand.Connection.Open();
  3315. }
  3316. try {
  3317. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3318. return returnValue;
  3319. }
  3320. finally {
  3321. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3322. this.Adapter.InsertCommand.Connection.Close();
  3323. }
  3324. }
  3325. }
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3328. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3329. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3330. public virtual int Update(string Наименование_специальности, string Описание_специальности, int Original_Код_специальности, string Original_Наименование_специальности, int Код_специальности) {
  3331. if ((Наименование_специальности == null)) {
  3332. throw new global::System.ArgumentNullException("Наименование_специальности");
  3333. }
  3334. else {
  3335. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_специальности));
  3336. }
  3337. if ((Описание_специальности == null)) {
  3338. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3339. }
  3340. else {
  3341. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Описание_специальности));
  3342. }
  3343. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Код_специальности));
  3344. if ((Original_Наименование_специальности == null)) {
  3345. throw new global::System.ArgumentNullException("Original_Наименование_специальности");
  3346. }
  3347. else {
  3348. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Наименование_специальности));
  3349. }
  3350. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Код_специальности));
  3351. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3352. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3353. != global::System.Data.ConnectionState.Open)) {
  3354. this.Adapter.UpdateCommand.Connection.Open();
  3355. }
  3356. try {
  3357. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3358. return returnValue;
  3359. }
  3360. finally {
  3361. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3362. this.Adapter.UpdateCommand.Connection.Close();
  3363. }
  3364. }
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3369. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3370. public virtual int Update(string Наименование_специальности, string Описание_специальности, int Original_Код_специальности, string Original_Наименование_специальности) {
  3371. return this.Update(Наименование_специальности, Описание_специальности, Original_Код_специальности, Original_Наименование_специальности, Original_Код_специальности);
  3372. }
  3373. }
  3374. /// <summary>
  3375. ///Represents the connection and commands used to retrieve and save data.
  3376. ///</summary>
  3377. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3378. [global::System.ComponentModel.ToolboxItem(true)]
  3379. [global::System.ComponentModel.DataObjectAttribute(true)]
  3380. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3381. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3382. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3383. public partial class СтудентыTableAdapter : global::System.ComponentModel.Component {
  3384. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3385. private global::System.Data.SqlClient.SqlConnection _connection;
  3386. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3387. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3388. private bool _clearBeforeFill;
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. public СтудентыTableAdapter() {
  3392. this.ClearBeforeFill = true;
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3396. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3397. get {
  3398. if ((this._adapter == null)) {
  3399. this.InitAdapter();
  3400. }
  3401. return this._adapter;
  3402. }
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3406. internal global::System.Data.SqlClient.SqlConnection Connection {
  3407. get {
  3408. if ((this._connection == null)) {
  3409. this.InitConnection();
  3410. }
  3411. return this._connection;
  3412. }
  3413. set {
  3414. this._connection = value;
  3415. if ((this.Adapter.InsertCommand != null)) {
  3416. this.Adapter.InsertCommand.Connection = value;
  3417. }
  3418. if ((this.Adapter.DeleteCommand != null)) {
  3419. this.Adapter.DeleteCommand.Connection = value;
  3420. }
  3421. if ((this.Adapter.UpdateCommand != null)) {
  3422. this.Adapter.UpdateCommand.Connection = value;
  3423. }
  3424. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3425. if ((this.CommandCollection[i] != null)) {
  3426. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3427. }
  3428. }
  3429. }
  3430. }
  3431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3433. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3434. get {
  3435. return this._transaction;
  3436. }
  3437. set {
  3438. this._transaction = value;
  3439. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3440. this.CommandCollection[i].Transaction = this._transaction;
  3441. }
  3442. if (((this.Adapter != null)
  3443. && (this.Adapter.DeleteCommand != null))) {
  3444. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3445. }
  3446. if (((this.Adapter != null)
  3447. && (this.Adapter.InsertCommand != null))) {
  3448. this.Adapter.InsertCommand.Transaction = this._transaction;
  3449. }
  3450. if (((this.Adapter != null)
  3451. && (this.Adapter.UpdateCommand != null))) {
  3452. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3453. }
  3454. }
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3458. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3459. get {
  3460. if ((this._commandCollection == null)) {
  3461. this.InitCommandCollection();
  3462. }
  3463. return this._commandCollection;
  3464. }
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3468. public bool ClearBeforeFill {
  3469. get {
  3470. return this._clearBeforeFill;
  3471. }
  3472. set {
  3473. this._clearBeforeFill = value;
  3474. }
  3475. }
  3476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3478. private void InitAdapter() {
  3479. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3480. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3481. tableMapping.SourceTable = "Table";
  3482. tableMapping.DataSetTable = "Студенты";
  3483. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  3484. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  3485. tableMapping.ColumnMappings.Add("Пол", "Пол");
  3486. tableMapping.ColumnMappings.Add("Дата рождения", "Дата рождения");
  3487. tableMapping.ColumnMappings.Add("Родители", "Родители");
  3488. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  3489. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3490. tableMapping.ColumnMappings.Add("Паспортные данные", "Паспортные данные");
  3491. tableMapping.ColumnMappings.Add("Нумер зачётки", "Нумер зачётки");
  3492. tableMapping.ColumnMappings.Add("Дата поступления", "Дата поступления");
  3493. tableMapping.ColumnMappings.Add("Группа", "Группа");
  3494. tableMapping.ColumnMappings.Add("Курс", "Курс");
  3495. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3496. tableMapping.ColumnMappings.Add("Очная форма обучения", "Очная форма обучения");
  3497. this._adapter.TableMappings.Add(tableMapping);
  3498. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3499. this._adapter.DeleteCommand.Connection = this.Connection;
  3500. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Студенты] WHERE (([Код студента] = @Original_Код_студента) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([Пол] = @Original_Пол)) AND ((@IsNull_Дата_рождения = 1 AND [Дата рождения] IS NULL) OR ([Дата рождения] = @Original_Дата_рождения)) AND ((@IsNull_Родители = 1 AND [Родители] IS NULL) OR ([Родители] = @Original_Родители)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Нумер_зачётки = 1 AND [Нумер зачётки] IS NULL) OR ([Нумер зачётки] = @Original_Нумер_зачётки)) AND ((@IsNull_Дата_поступления = 1 AND [Дата поступления] IS NULL) OR ([Дата поступления] = @Original_Дата_поступления)) AND ((@IsNull_Группа = 1 AND [Группа] IS NULL) OR ([Группа] = @Original_Группа)) AND ((@IsNull_Курс = 1 AND [Курс] IS NULL) OR ([Курс] = @Original_Курс)) AND ((@IsNull_Код_специальности = 1 AND [Код специальности] IS NULL) OR ([Код специальности] = @Original_Код_специальности)) AND ((@IsNull_Очная_форма_обучения = 1 AND [Очная форма обучения] IS NULL) OR ([Очная форма обучения] = @Original_Очная_форма_обучения)))";
  3501. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3502. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_студента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3503. 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, "", "", ""));
  3504. 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, "", "", ""));
  3505. 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, "", "", ""));
  3506. 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, "", "", ""));
  3507. 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, "", "", ""));
  3508. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3509. 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, "", "", ""));
  3510. 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, "", "", ""));
  3511. 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, "", "", ""));
  3512. 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, "", "", ""));
  3513. 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, "", "", ""));
  3514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Нумер_зачётки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Нумер зачётки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3515. 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, "", "", ""));
  3516. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_поступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата поступления", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3517. 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, "", "", ""));
  3518. 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, "", "", ""));
  3519. 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, "", "", ""));
  3520. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3521. 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, "", "", ""));
  3522. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3523. 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, "", "", ""));
  3524. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Очная_форма_обучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Очная форма обучения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3525. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3526. this._adapter.InsertCommand.Connection = this.Connection;
  3527. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Студенты] ([ФИО], [Пол], [Дата рождения], [Родители], [Адрес], [Телефон], [Паспортные данные], [Нумер зачётки], [Дата поступления], [Группа], [Курс], [Код специальности], [Очная форма обучения]) VALUES (@ФИО, @Пол, @Дата_рождения, @Родители, @Адрес, @Телефон, @Паспортные_данные, @Нумер_зачётки, @Дата_поступления, @Группа, @Курс, @Код_специальности, @Очная_форма_обучения);
  3528. SELECT [Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Паспортные данные], [Нумер зачётки], [Дата поступления], Группа, Курс, [Код специальности], [Очная форма обучения] FROM Студенты WHERE ([Код студента] = SCOPE_IDENTITY())";
  3529. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3530. 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, "", "", ""));
  3531. 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, "", "", ""));
  3532. 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, "", "", ""));
  3533. 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, "", "", ""));
  3534. 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, "", "", ""));
  3535. 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, "", "", ""));
  3536. 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, "", "", ""));
  3537. 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, "", "", ""));
  3538. 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, "", "", ""));
  3539. 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, "", "", ""));
  3540. 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, "", "", ""));
  3541. 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, "", "", ""));
  3542. 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, "", "", ""));
  3543. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3544. this._adapter.UpdateCommand.Connection = this.Connection;
  3545. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Студенты] SET [ФИО] = @ФИО, [Пол] = @Пол, [Дата рождения] = @Дата_р" +
  3546. "ождения, [Родители] = @Родители, [Адрес] = @Адрес, [Телефон] = @Телефон, [Паспор" +
  3547. "тные данные] = @Паспортные_данные, [Нумер зачётки] = @Нумер_зачётки, [Дата посту" +
  3548. "пления] = @Дата_поступления, [Группа] = @Группа, [Курс] = @Курс, [Код специально" +
  3549. "сти] = @Код_специальности, [Очная форма обучения] = @Очная_форма_обучения WHERE " +
  3550. "(([Код студента] = @Original_Код_студента) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NU" +
  3551. "LL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([По" +
  3552. "л] = @Original_Пол)) AND ((@IsNull_Дата_рождения = 1 AND [Дата рождения] IS NULL" +
  3553. ") OR ([Дата рождения] = @Original_Дата_рождения)) AND ((@IsNull_Родители = 1 AND" +
  3554. " [Родители] IS NULL) OR ([Родители] = @Original_Родители)) AND ((@IsNull_Телефон" +
  3555. " = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Ну" +
  3556. "мер_зачётки = 1 AND [Нумер зачётки] IS NULL) OR ([Нумер зачётки] = @Original_Нум" +
  3557. "ер_зачётки)) AND ((@IsNull_Дата_поступления = 1 AND [Дата поступления] IS NULL) " +
  3558. "OR ([Дата поступления] = @Original_Дата_поступления)) AND ((@IsNull_Группа = 1 A" +
  3559. "ND [Группа] IS NULL) OR ([Группа] = @Original_Группа)) AND ((@IsNull_Курс = 1 AN" +
  3560. "D [Курс] IS NULL) OR ([Курс] = @Original_Курс)) AND ((@IsNull_Код_специальности " +
  3561. "= 1 AND [Код специальности] IS NULL) OR ([Код специальности] = @Original_Код_спе" +
  3562. "циальности)) AND ((@IsNull_Очная_форма_обучения = 1 AND [Очная форма обучения] I" +
  3563. "S NULL) OR ([Очная форма обучения] = @Original_Очная_форма_обучения)));\r\nSELECT " +
  3564. "[Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Паспортные" +
  3565. " данные], [Нумер зачётки], [Дата поступления], Группа, Курс, [Код специальности]" +
  3566. ", [Очная форма обучения] FROM Студенты WHERE ([Код студента] = @Код_студента)";
  3567. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3568. 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, "", "", ""));
  3569. 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, "", "", ""));
  3570. this._adapter.UpdateCommand.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, "", "", ""));
  3571. 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, "", "", ""));
  3572. 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, "", "", ""));
  3573. 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, "", "", ""));
  3574. 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, "", "", ""));
  3575. this._adapter.UpdateCommand.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, "", "", ""));
  3576. this._adapter.UpdateCommand.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, "", "", ""));
  3577. 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, "", "", ""));
  3578. this._adapter.UpdateCommand.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, "", "", ""));
  3579. this._adapter.UpdateCommand.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, "", "", ""));
  3580. this._adapter.UpdateCommand.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, "", "", ""));
  3581. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_студента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3582. 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, "", "", ""));
  3583. 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, "", "", ""));
  3584. 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, "", "", ""));
  3585. 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, "", "", ""));
  3586. 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, "", "", ""));
  3587. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3588. 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, "", "", ""));
  3589. 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, "", "", ""));
  3590. 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, "", "", ""));
  3591. 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, "", "", ""));
  3592. 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, "", "", ""));
  3593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Нумер_зачётки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Нумер зачётки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3594. 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, "", "", ""));
  3595. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_поступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата поступления", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3596. 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, "", "", ""));
  3597. 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, "", "", ""));
  3598. 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, "", "", ""));
  3599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3600. 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, "", "", ""));
  3601. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_специальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3602. 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, "", "", ""));
  3603. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Очная_форма_обучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Очная форма обучения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3604. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_студента", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3605. }
  3606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3608. private void InitConnection() {
  3609. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3610. this._connection.ConnectionString = global::KachaevBuynitskiyStudents.Properties.Settings.Default.BuynitskiyStudentsConnectionString;
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3614. private void InitCommandCollection() {
  3615. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3616. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3617. this._commandCollection[0].Connection = this.Connection;
  3618. this._commandCollection[0].CommandText = "SELECT [Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Пасп" +
  3619. "ортные данные], [Нумер зачётки], [Дата поступления], Группа, Курс, [Код специаль" +
  3620. "ности], [Очная форма обучения] FROM dbo.Студенты";
  3621. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3627. public virtual int Fill(BuynitskiyStudentsDataSet1.СтудентыDataTable dataTable) {
  3628. this.Adapter.SelectCommand = this.CommandCollection[0];
  3629. if ((this.ClearBeforeFill == true)) {
  3630. dataTable.Clear();
  3631. }
  3632. int returnValue = this.Adapter.Fill(dataTable);
  3633. return returnValue;
  3634. }
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3638. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3639. public virtual BuynitskiyStudentsDataSet1.СтудентыDataTable GetData() {
  3640. this.Adapter.SelectCommand = this.CommandCollection[0];
  3641. BuynitskiyStudentsDataSet1.СтудентыDataTable dataTable = new BuynitskiyStudentsDataSet1.СтудентыDataTable();
  3642. this.Adapter.Fill(dataTable);
  3643. return dataTable;
  3644. }
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3648. public virtual int Update(BuynitskiyStudentsDataSet1.СтудентыDataTable dataTable) {
  3649. return this.Adapter.Update(dataTable);
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3654. public virtual int Update(BuynitskiyStudentsDataSet1 dataSet) {
  3655. return this.Adapter.Update(dataSet, "Студенты");
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3660. public virtual int Update(global::System.Data.DataRow dataRow) {
  3661. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3662. dataRow});
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3667. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3668. return this.Adapter.Update(dataRows);
  3669. }
  3670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3672. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3673. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3674. public virtual int Delete(int Original_Код_студента, string Original_ФИО, string Original_Пол, global::System.Nullable<global::System.DateTime> Original_Дата_рождения, string Original_Родители, string Original_Телефон, global::System.Nullable<long> Original_Нумер_зачётки, global::System.Nullable<global::System.DateTime> Original_Дата_поступления, string Original_Группа, global::System.Nullable<byte> Original_Курс, global::System.Nullable<long> Original_Код_специальности, global::System.Nullable<bool> Original_Очная_форма_обучения) {
  3675. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_студента));
  3676. if ((Original_ФИО == null)) {
  3677. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3678. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3679. }
  3680. else {
  3681. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3682. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  3683. }
  3684. if ((Original_Пол == null)) {
  3685. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3686. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3687. }
  3688. else {
  3689. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3690. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пол));
  3691. }
  3692. if ((Original_Дата_рождения.HasValue == true)) {
  3693. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3694. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения.Value));
  3695. }
  3696. else {
  3697. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3698. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3699. }
  3700. if ((Original_Родители == null)) {
  3701. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3702. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3703. }
  3704. else {
  3705. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3706. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Родители));
  3707. }
  3708. if ((Original_Телефон == null)) {
  3709. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3710. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3711. }
  3712. else {
  3713. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3714. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Телефон));
  3715. }
  3716. if ((Original_Нумер_зачётки.HasValue == true)) {
  3717. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  3718. this.Adapter.DeleteCommand.Parameters[12].Value = ((long)(Original_Нумер_зачётки.Value));
  3719. }
  3720. else {
  3721. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  3722. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  3723. }
  3724. if ((Original_Дата_поступления.HasValue == true)) {
  3725. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  3726. this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_Дата_поступления.Value));
  3727. }
  3728. else {
  3729. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  3730. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  3731. }
  3732. if ((Original_Группа == null)) {
  3733. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  3734. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  3735. }
  3736. else {
  3737. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  3738. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Группа));
  3739. }
  3740. if ((Original_Курс.HasValue == true)) {
  3741. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  3742. this.Adapter.DeleteCommand.Parameters[18].Value = ((byte)(Original_Курс.Value));
  3743. }
  3744. else {
  3745. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  3746. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  3747. }
  3748. if ((Original_Код_специальности.HasValue == true)) {
  3749. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  3750. this.Adapter.DeleteCommand.Parameters[20].Value = ((long)(Original_Код_специальности.Value));
  3751. }
  3752. else {
  3753. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  3754. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  3755. }
  3756. if ((Original_Очная_форма_обучения.HasValue == true)) {
  3757. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  3758. this.Adapter.DeleteCommand.Parameters[22].Value = ((bool)(Original_Очная_форма_обучения.Value));
  3759. }
  3760. else {
  3761. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  3762. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  3763. }
  3764. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3765. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3766. != global::System.Data.ConnectionState.Open)) {
  3767. this.Adapter.DeleteCommand.Connection.Open();
  3768. }
  3769. try {
  3770. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3771. return returnValue;
  3772. }
  3773. finally {
  3774. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3775. this.Adapter.DeleteCommand.Connection.Close();
  3776. }
  3777. }
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3783. public virtual int Insert(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> Очная_форма_обучения) {
  3784. if ((ФИО == null)) {
  3785. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3786. }
  3787. else {
  3788. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  3789. }
  3790. if ((Пол == null)) {
  3791. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3792. }
  3793. else {
  3794. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пол));
  3795. }
  3796. if ((Дата_рождения.HasValue == true)) {
  3797. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_рождения.Value));
  3798. }
  3799. else {
  3800. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3801. }
  3802. if ((Родители == null)) {
  3803. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3804. }
  3805. else {
  3806. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Родители));
  3807. }
  3808. if ((Адрес == null)) {
  3809. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3810. }
  3811. else {
  3812. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  3813. }
  3814. if ((Телефон == null)) {
  3815. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3816. }
  3817. else {
  3818. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  3819. }
  3820. if ((Паспортные_данные == null)) {
  3821. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  3822. }
  3823. else {
  3824. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Паспортные_данные));
  3825. }
  3826. if ((Нумер_зачётки.HasValue == true)) {
  3827. this.Adapter.InsertCommand.Parameters[7].Value = ((long)(Нумер_зачётки.Value));
  3828. }
  3829. else {
  3830. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3831. }
  3832. if ((Дата_поступления.HasValue == true)) {
  3833. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Дата_поступления.Value));
  3834. }
  3835. else {
  3836. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  3837. }
  3838. if ((Группа == null)) {
  3839. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  3840. }
  3841. else {
  3842. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Группа));
  3843. }
  3844. if ((Курс.HasValue == true)) {
  3845. this.Adapter.InsertCommand.Parameters[10].Value = ((byte)(Курс.Value));
  3846. }
  3847. else {
  3848. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  3849. }
  3850. if ((Код_специальности.HasValue == true)) {
  3851. this.Adapter.InsertCommand.Parameters[11].Value = ((long)(Код_специальности.Value));
  3852. }
  3853. else {
  3854. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  3855. }
  3856. if ((Очная_форма_обучения.HasValue == true)) {
  3857. this.Adapter.InsertCommand.Parameters[12].Value = ((bool)(Очная_форма_обучения.Value));
  3858. }
  3859. else {
  3860. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  3861. }
  3862. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3863. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3864. != global::System.Data.ConnectionState.Open)) {
  3865. this.Adapter.InsertCommand.Connection.Open();
  3866. }
  3867. try {
  3868. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3869. return returnValue;
  3870. }
  3871. finally {
  3872. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3873. this.Adapter.InsertCommand.Connection.Close();
  3874. }
  3875. }
  3876. }
  3877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3879. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3880. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3881. public virtual int Update(
  3882. string ФИО,
  3883. string Пол,
  3884. global::System.Nullable<global::System.DateTime> Дата_рождения,
  3885. string Родители,
  3886. string Адрес,
  3887. string Телефон,
  3888. string Паспортные_данные,
  3889. global::System.Nullable<long> Нумер_зачётки,
  3890. global::System.Nullable<global::System.DateTime> Дата_поступления,
  3891. string Группа,
  3892. global::System.Nullable<byte> Курс,
  3893. global::System.Nullable<long> Код_специальности,
  3894. global::System.Nullable<bool> Очная_форма_обучения,
  3895. int Original_Код_студента,
  3896. string Original_ФИО,
  3897. string Original_Пол,
  3898. global::System.Nullable<global::System.DateTime> Original_Дата_рождения,
  3899. string Original_Родители,
  3900. string Original_Телефон,
  3901. global::System.Nullable<long> Original_Нумер_зачётки,
  3902. global::System.Nullable<global::System.DateTime> Original_Дата_поступления,
  3903. string Original_Группа,
  3904. global::System.Nullable<byte> Original_Курс,
  3905. global::System.Nullable<long> Original_Код_специальности,
  3906. global::System.Nullable<bool> Original_Очная_форма_обучения,
  3907. int Код_студента) {
  3908. if ((ФИО == null)) {
  3909. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3910. }
  3911. else {
  3912. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  3913. }
  3914. if ((Пол == null)) {
  3915. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3916. }
  3917. else {
  3918. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пол));
  3919. }
  3920. if ((Дата_рождения.HasValue == true)) {
  3921. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Дата_рождения.Value));
  3922. }
  3923. else {
  3924. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3925. }
  3926. if ((Родители == null)) {
  3927. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3928. }
  3929. else {
  3930. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Родители));
  3931. }
  3932. if ((Адрес == null)) {
  3933. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3934. }
  3935. else {
  3936. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  3937. }
  3938. if ((Телефон == null)) {
  3939. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3940. }
  3941. else {
  3942. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  3943. }
  3944. if ((Паспортные_данные == null)) {
  3945. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3946. }
  3947. else {
  3948. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Паспортные_данные));
  3949. }
  3950. if ((Нумер_зачётки.HasValue == true)) {
  3951. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(Нумер_зачётки.Value));
  3952. }
  3953. else {
  3954. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3955. }
  3956. if ((Дата_поступления.HasValue == true)) {
  3957. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Дата_поступления.Value));
  3958. }
  3959. else {
  3960. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3961. }
  3962. if ((Группа == null)) {
  3963. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3964. }
  3965. else {
  3966. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Группа));
  3967. }
  3968. if ((Курс.HasValue == true)) {
  3969. this.Adapter.UpdateCommand.Parameters[10].Value = ((byte)(Курс.Value));
  3970. }
  3971. else {
  3972. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3973. }
  3974. if ((Код_специальности.HasValue == true)) {
  3975. this.Adapter.UpdateCommand.Parameters[11].Value = ((long)(Код_специальности.Value));
  3976. }
  3977. else {
  3978. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  3979. }
  3980. if ((Очная_форма_обучения.HasValue == true)) {
  3981. this.Adapter.UpdateCommand.Parameters[12].Value = ((bool)(Очная_форма_обучения.Value));
  3982. }
  3983. else {
  3984. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3985. }
  3986. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Код_студента));
  3987. if ((Original_ФИО == null)) {
  3988. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  3989. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  3990. }
  3991. else {
  3992. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  3993. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_ФИО));
  3994. }
  3995. if ((Original_Пол == null)) {
  3996. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  3997. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  3998. }
  3999. else {
  4000. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4001. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Пол));
  4002. }
  4003. if ((Original_Дата_рождения.HasValue == true)) {
  4004. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  4005. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_Дата_рождения.Value));
  4006. }
  4007. else {
  4008. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  4009. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  4010. }
  4011. if ((Original_Родители == null)) {
  4012. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  4013. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  4014. }
  4015. else {
  4016. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  4017. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Родители));
  4018. }
  4019. if ((Original_Телефон == null)) {
  4020. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  4021. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  4022. }
  4023. else {
  4024. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  4025. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Телефон));
  4026. }
  4027. if ((Original_Нумер_зачётки.HasValue == true)) {
  4028. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  4029. this.Adapter.UpdateCommand.Parameters[25].Value = ((long)(Original_Нумер_зачётки.Value));
  4030. }
  4031. else {
  4032. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  4033. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  4034. }
  4035. if ((Original_Дата_поступления.HasValue == true)) {
  4036. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  4037. this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_Дата_поступления.Value));
  4038. }
  4039. else {
  4040. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  4041. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  4042. }
  4043. if ((Original_Группа == null)) {
  4044. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  4045. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  4046. }
  4047. else {
  4048. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  4049. this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Группа));
  4050. }
  4051. if ((Original_Курс.HasValue == true)) {
  4052. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  4053. this.Adapter.UpdateCommand.Parameters[31].Value = ((byte)(Original_Курс.Value));
  4054. }
  4055. else {
  4056. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  4057. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  4058. }
  4059. if ((Original_Код_специальности.HasValue == true)) {
  4060. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  4061. this.Adapter.UpdateCommand.Parameters[33].Value = ((long)(Original_Код_специальности.Value));
  4062. }
  4063. else {
  4064. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  4065. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  4066. }
  4067. if ((Original_Очная_форма_обучения.HasValue == true)) {
  4068. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  4069. this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(Original_Очная_форма_обучения.Value));
  4070. }
  4071. else {
  4072. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  4073. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  4074. }
  4075. this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Код_студента));
  4076. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4077. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4078. != global::System.Data.ConnectionState.Open)) {
  4079. this.Adapter.UpdateCommand.Connection.Open();
  4080. }
  4081. try {
  4082. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4083. return returnValue;
  4084. }
  4085. finally {
  4086. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4087. this.Adapter.UpdateCommand.Connection.Close();
  4088. }
  4089. }
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4094. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4095. public virtual int Update(
  4096. string ФИО,
  4097. string Пол,
  4098. global::System.Nullable<global::System.DateTime> Дата_рождения,
  4099. string Родители,
  4100. string Адрес,
  4101. string Телефон,
  4102. string Паспортные_данные,
  4103. global::System.Nullable<long> Нумер_зачётки,
  4104. global::System.Nullable<global::System.DateTime> Дата_поступления,
  4105. string Группа,
  4106. global::System.Nullable<byte> Курс,
  4107. global::System.Nullable<long> Код_специальности,
  4108. global::System.Nullable<bool> Очная_форма_обучения,
  4109. int Original_Код_студента,
  4110. string Original_ФИО,
  4111. string Original_Пол,
  4112. global::System.Nullable<global::System.DateTime> Original_Дата_рождения,
  4113. string Original_Родители,
  4114. string Original_Телефон,
  4115. global::System.Nullable<long> Original_Нумер_зачётки,
  4116. global::System.Nullable<global::System.DateTime> Original_Дата_поступления,
  4117. string Original_Группа,
  4118. global::System.Nullable<byte> Original_Курс,
  4119. global::System.Nullable<long> Original_Код_специальности,
  4120. global::System.Nullable<bool> Original_Очная_форма_обучения) {
  4121. return this.Update(ФИО, Пол, Дата_рождения, Родители, Адрес, Телефон, Паспортные_данные, Нумер_зачётки, Дата_поступления, Группа, Курс, Код_специальности, Очная_форма_обучения, Original_Код_студента, Original_ФИО, Original_Пол, Original_Дата_рождения, Original_Родители, Original_Телефон, Original_Нумер_зачётки, Original_Дата_поступления, Original_Группа, Original_Курс, Original_Код_специальности, Original_Очная_форма_обучения, Original_Код_студента);
  4122. }
  4123. }
  4124. /// <summary>
  4125. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4126. ///</summary>
  4127. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4128. [global::System.ComponentModel.ToolboxItem(true)]
  4129. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4130. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4132. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4133. private UpdateOrderOption _updateOrder;
  4134. private ОценкиTableAdapter _оценкиTableAdapter;
  4135. private ПредметыTableAdapter _предметыTableAdapter;
  4136. private СпециальностиTableAdapter _специальностиTableAdapter;
  4137. private СтудентыTableAdapter _студентыTableAdapter;
  4138. private bool _backupDataSetBeforeUpdate;
  4139. private global::System.Data.IDbConnection _connection;
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. public UpdateOrderOption UpdateOrder {
  4143. get {
  4144. return this._updateOrder;
  4145. }
  4146. set {
  4147. this._updateOrder = value;
  4148. }
  4149. }
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4153. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4154. "a", "System.Drawing.Design.UITypeEditor")]
  4155. public ОценкиTableAdapter ОценкиTableAdapter {
  4156. get {
  4157. return this._оценкиTableAdapter;
  4158. }
  4159. set {
  4160. this._оценкиTableAdapter = value;
  4161. }
  4162. }
  4163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4165. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4166. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4167. "a", "System.Drawing.Design.UITypeEditor")]
  4168. public ПредметыTableAdapter ПредметыTableAdapter {
  4169. get {
  4170. return this._предметыTableAdapter;
  4171. }
  4172. set {
  4173. this._предметыTableAdapter = value;
  4174. }
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4179. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4180. "a", "System.Drawing.Design.UITypeEditor")]
  4181. public СпециальностиTableAdapter СпециальностиTableAdapter {
  4182. get {
  4183. return this._специальностиTableAdapter;
  4184. }
  4185. set {
  4186. this._специальностиTableAdapter = value;
  4187. }
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4192. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4193. "a", "System.Drawing.Design.UITypeEditor")]
  4194. public СтудентыTableAdapter СтудентыTableAdapter {
  4195. get {
  4196. return this._студентыTableAdapter;
  4197. }
  4198. set {
  4199. this._студентыTableAdapter = value;
  4200. }
  4201. }
  4202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4204. public bool BackupDataSetBeforeUpdate {
  4205. get {
  4206. return this._backupDataSetBeforeUpdate;
  4207. }
  4208. set {
  4209. this._backupDataSetBeforeUpdate = value;
  4210. }
  4211. }
  4212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4214. [global::System.ComponentModel.Browsable(false)]
  4215. public global::System.Data.IDbConnection Connection {
  4216. get {
  4217. if ((this._connection != null)) {
  4218. return this._connection;
  4219. }
  4220. if (((this._оценкиTableAdapter != null)
  4221. && (this._оценкиTableAdapter.Connection != null))) {
  4222. return this._оценкиTableAdapter.Connection;
  4223. }
  4224. if (((this._предметыTableAdapter != null)
  4225. && (this._предметыTableAdapter.Connection != null))) {
  4226. return this._предметыTableAdapter.Connection;
  4227. }
  4228. if (((this._специальностиTableAdapter != null)
  4229. && (this._специальностиTableAdapter.Connection != null))) {
  4230. return this._специальностиTableAdapter.Connection;
  4231. }
  4232. if (((this._студентыTableAdapter != null)
  4233. && (this._студентыTableAdapter.Connection != null))) {
  4234. return this._студентыTableAdapter.Connection;
  4235. }
  4236. return null;
  4237. }
  4238. set {
  4239. this._connection = value;
  4240. }
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. [global::System.ComponentModel.Browsable(false)]
  4245. public int TableAdapterInstanceCount {
  4246. get {
  4247. int count = 0;
  4248. if ((this._оценкиTableAdapter != null)) {
  4249. count = (count + 1);
  4250. }
  4251. if ((this._предметыTableAdapter != null)) {
  4252. count = (count + 1);
  4253. }
  4254. if ((this._специальностиTableAdapter != null)) {
  4255. count = (count + 1);
  4256. }
  4257. if ((this._студентыTableAdapter != null)) {
  4258. count = (count + 1);
  4259. }
  4260. return count;
  4261. }
  4262. }
  4263. /// <summary>
  4264. ///Update rows in top-down order.
  4265. ///</summary>
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. private int UpdateUpdatedRows(BuynitskiyStudentsDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4269. int result = 0;
  4270. if ((this._оценкиTableAdapter != null)) {
  4271. global::System.Data.DataRow[] updatedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4272. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4273. if (((updatedRows != null)
  4274. && (0 < updatedRows.Length))) {
  4275. result = (result + this._оценкиTableAdapter.Update(updatedRows));
  4276. allChangedRows.AddRange(updatedRows);
  4277. }
  4278. }
  4279. if ((this._предметыTableAdapter != null)) {
  4280. global::System.Data.DataRow[] updatedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4281. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4282. if (((updatedRows != null)
  4283. && (0 < updatedRows.Length))) {
  4284. result = (result + this._предметыTableAdapter.Update(updatedRows));
  4285. allChangedRows.AddRange(updatedRows);
  4286. }
  4287. }
  4288. if ((this._специальностиTableAdapter != null)) {
  4289. global::System.Data.DataRow[] updatedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4290. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4291. if (((updatedRows != null)
  4292. && (0 < updatedRows.Length))) {
  4293. result = (result + this._специальностиTableAdapter.Update(updatedRows));
  4294. allChangedRows.AddRange(updatedRows);
  4295. }
  4296. }
  4297. if ((this._студентыTableAdapter != null)) {
  4298. global::System.Data.DataRow[] updatedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4299. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4300. if (((updatedRows != null)
  4301. && (0 < updatedRows.Length))) {
  4302. result = (result + this._студентыTableAdapter.Update(updatedRows));
  4303. allChangedRows.AddRange(updatedRows);
  4304. }
  4305. }
  4306. return result;
  4307. }
  4308. /// <summary>
  4309. ///Insert rows in top-down order.
  4310. ///</summary>
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4313. private int UpdateInsertedRows(BuynitskiyStudentsDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4314. int result = 0;
  4315. if ((this._оценкиTableAdapter != null)) {
  4316. global::System.Data.DataRow[] addedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Added);
  4317. if (((addedRows != null)
  4318. && (0 < addedRows.Length))) {
  4319. result = (result + this._оценкиTableAdapter.Update(addedRows));
  4320. allAddedRows.AddRange(addedRows);
  4321. }
  4322. }
  4323. if ((this._предметыTableAdapter != null)) {
  4324. global::System.Data.DataRow[] addedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Added);
  4325. if (((addedRows != null)
  4326. && (0 < addedRows.Length))) {
  4327. result = (result + this._предметыTableAdapter.Update(addedRows));
  4328. allAddedRows.AddRange(addedRows);
  4329. }
  4330. }
  4331. if ((this._специальностиTableAdapter != null)) {
  4332. global::System.Data.DataRow[] addedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Added);
  4333. if (((addedRows != null)
  4334. && (0 < addedRows.Length))) {
  4335. result = (result + this._специальностиTableAdapter.Update(addedRows));
  4336. allAddedRows.AddRange(addedRows);
  4337. }
  4338. }
  4339. if ((this._студентыTableAdapter != null)) {
  4340. global::System.Data.DataRow[] addedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  4341. if (((addedRows != null)
  4342. && (0 < addedRows.Length))) {
  4343. result = (result + this._студентыTableAdapter.Update(addedRows));
  4344. allAddedRows.AddRange(addedRows);
  4345. }
  4346. }
  4347. return result;
  4348. }
  4349. /// <summary>
  4350. ///Delete rows in bottom-up order.
  4351. ///</summary>
  4352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4354. private int UpdateDeletedRows(BuynitskiyStudentsDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4355. int result = 0;
  4356. if ((this._студентыTableAdapter != null)) {
  4357. global::System.Data.DataRow[] deletedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4358. if (((deletedRows != null)
  4359. && (0 < deletedRows.Length))) {
  4360. result = (result + this._студентыTableAdapter.Update(deletedRows));
  4361. allChangedRows.AddRange(deletedRows);
  4362. }
  4363. }
  4364. if ((this._специальностиTableAdapter != null)) {
  4365. global::System.Data.DataRow[] deletedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4366. if (((deletedRows != null)
  4367. && (0 < deletedRows.Length))) {
  4368. result = (result + this._специальностиTableAdapter.Update(deletedRows));
  4369. allChangedRows.AddRange(deletedRows);
  4370. }
  4371. }
  4372. if ((this._предметыTableAdapter != null)) {
  4373. global::System.Data.DataRow[] deletedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4374. if (((deletedRows != null)
  4375. && (0 < deletedRows.Length))) {
  4376. result = (result + this._предметыTableAdapter.Update(deletedRows));
  4377. allChangedRows.AddRange(deletedRows);
  4378. }
  4379. }
  4380. if ((this._оценкиTableAdapter != null)) {
  4381. global::System.Data.DataRow[] deletedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4382. if (((deletedRows != null)
  4383. && (0 < deletedRows.Length))) {
  4384. result = (result + this._оценкиTableAdapter.Update(deletedRows));
  4385. allChangedRows.AddRange(deletedRows);
  4386. }
  4387. }
  4388. return result;
  4389. }
  4390. /// <summary>
  4391. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4392. ///</summary>
  4393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4395. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4396. if (((updatedRows == null)
  4397. || (updatedRows.Length < 1))) {
  4398. return updatedRows;
  4399. }
  4400. if (((allAddedRows == null)
  4401. || (allAddedRows.Count < 1))) {
  4402. return updatedRows;
  4403. }
  4404. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4405. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4406. global::System.Data.DataRow row = updatedRows[i];
  4407. if ((allAddedRows.Contains(row) == false)) {
  4408. realUpdatedRows.Add(row);
  4409. }
  4410. }
  4411. return realUpdatedRows.ToArray();
  4412. }
  4413. /// <summary>
  4414. ///Update all changes to the dataset.
  4415. ///</summary>
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public virtual int UpdateAll(BuynitskiyStudentsDataSet1 dataSet) {
  4419. if ((dataSet == null)) {
  4420. throw new global::System.ArgumentNullException("dataSet");
  4421. }
  4422. if ((dataSet.HasChanges() == false)) {
  4423. return 0;
  4424. }
  4425. if (((this._оценкиTableAdapter != null)
  4426. && (this.MatchTableAdapterConnection(this._оценкиTableAdapter.Connection) == false))) {
  4427. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4428. "r, должны использовать одинаковую строку подключения.");
  4429. }
  4430. if (((this._предметыTableAdapter != null)
  4431. && (this.MatchTableAdapterConnection(this._предметыTableAdapter.Connection) == false))) {
  4432. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4433. "r, должны использовать одинаковую строку подключения.");
  4434. }
  4435. if (((this._специальностиTableAdapter != null)
  4436. && (this.MatchTableAdapterConnection(this._специальностиTableAdapter.Connection) == false))) {
  4437. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4438. "r, должны использовать одинаковую строку подключения.");
  4439. }
  4440. if (((this._студентыTableAdapter != null)
  4441. && (this.MatchTableAdapterConnection(this._студентыTableAdapter.Connection) == false))) {
  4442. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4443. "r, должны использовать одинаковую строку подключения.");
  4444. }
  4445. global::System.Data.IDbConnection workConnection = this.Connection;
  4446. if ((workConnection == null)) {
  4447. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4448. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4449. }
  4450. bool workConnOpened = false;
  4451. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4452. == global::System.Data.ConnectionState.Broken)) {
  4453. workConnection.Close();
  4454. }
  4455. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4456. workConnection.Open();
  4457. workConnOpened = true;
  4458. }
  4459. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4460. if ((workTransaction == null)) {
  4461. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4462. "и или текущее состояние не позволяет начать транзакцию.");
  4463. }
  4464. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4465. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4466. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4467. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4468. int result = 0;
  4469. global::System.Data.DataSet backupDataSet = null;
  4470. if (this.BackupDataSetBeforeUpdate) {
  4471. backupDataSet = new global::System.Data.DataSet();
  4472. backupDataSet.Merge(dataSet);
  4473. }
  4474. try {
  4475. // ---- Prepare for update -----------
  4476. //
  4477. if ((this._оценкиTableAdapter != null)) {
  4478. revertConnections.Add(this._оценкиTableAdapter, this._оценкиTableAdapter.Connection);
  4479. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4480. this._оценкиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4481. if (this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4482. this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4483. adaptersWithAcceptChangesDuringUpdate.Add(this._оценкиTableAdapter.Adapter);
  4484. }
  4485. }
  4486. if ((this._предметыTableAdapter != null)) {
  4487. revertConnections.Add(this._предметыTableAdapter, this._предметыTableAdapter.Connection);
  4488. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4489. this._предметыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4490. if (this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4491. this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4492. adaptersWithAcceptChangesDuringUpdate.Add(this._предметыTableAdapter.Adapter);
  4493. }
  4494. }
  4495. if ((this._специальностиTableAdapter != null)) {
  4496. revertConnections.Add(this._специальностиTableAdapter, this._специальностиTableAdapter.Connection);
  4497. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4498. this._специальностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4499. if (this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4500. this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4501. adaptersWithAcceptChangesDuringUpdate.Add(this._специальностиTableAdapter.Adapter);
  4502. }
  4503. }
  4504. if ((this._студентыTableAdapter != null)) {
  4505. revertConnections.Add(this._студентыTableAdapter, this._студентыTableAdapter.Connection);
  4506. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4507. this._студентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4508. if (this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4509. this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4510. adaptersWithAcceptChangesDuringUpdate.Add(this._студентыTableAdapter.Adapter);
  4511. }
  4512. }
  4513. //
  4514. //---- Perform updates -----------
  4515. //
  4516. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4517. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4518. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4519. }
  4520. else {
  4521. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4522. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4523. }
  4524. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4525. //
  4526. //---- Commit updates -----------
  4527. //
  4528. workTransaction.Commit();
  4529. if ((0 < allAddedRows.Count)) {
  4530. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4531. allAddedRows.CopyTo(rows);
  4532. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4533. global::System.Data.DataRow row = rows[i];
  4534. row.AcceptChanges();
  4535. }
  4536. }
  4537. if ((0 < allChangedRows.Count)) {
  4538. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4539. allChangedRows.CopyTo(rows);
  4540. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4541. global::System.Data.DataRow row = rows[i];
  4542. row.AcceptChanges();
  4543. }
  4544. }
  4545. }
  4546. catch (global::System.Exception ex) {
  4547. workTransaction.Rollback();
  4548. // ---- Restore the dataset -----------
  4549. if (this.BackupDataSetBeforeUpdate) {
  4550. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4551. dataSet.Clear();
  4552. dataSet.Merge(backupDataSet);
  4553. }
  4554. else {
  4555. if ((0 < allAddedRows.Count)) {
  4556. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4557. allAddedRows.CopyTo(rows);
  4558. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4559. global::System.Data.DataRow row = rows[i];
  4560. row.AcceptChanges();
  4561. row.SetAdded();
  4562. }
  4563. }
  4564. }
  4565. throw ex;
  4566. }
  4567. finally {
  4568. if (workConnOpened) {
  4569. workConnection.Close();
  4570. }
  4571. if ((this._оценкиTableAdapter != null)) {
  4572. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оценкиTableAdapter]));
  4573. this._оценкиTableAdapter.Transaction = null;
  4574. }
  4575. if ((this._предметыTableAdapter != null)) {
  4576. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._предметыTableAdapter]));
  4577. this._предметыTableAdapter.Transaction = null;
  4578. }
  4579. if ((this._специальностиTableAdapter != null)) {
  4580. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._специальностиTableAdapter]));
  4581. this._специальностиTableAdapter.Transaction = null;
  4582. }
  4583. if ((this._студентыTableAdapter != null)) {
  4584. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._студентыTableAdapter]));
  4585. this._студентыTableAdapter.Transaction = null;
  4586. }
  4587. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4588. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4589. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4590. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4591. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4592. adapter.AcceptChangesDuringUpdate = true;
  4593. }
  4594. }
  4595. }
  4596. return result;
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4601. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4602. }
  4603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4605. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4606. if ((this._connection != null)) {
  4607. return true;
  4608. }
  4609. if (((this.Connection == null)
  4610. || (inputConnection == null))) {
  4611. return true;
  4612. }
  4613. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4614. return true;
  4615. }
  4616. return false;
  4617. }
  4618. /// <summary>
  4619. ///Update Order Option
  4620. ///</summary>
  4621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4622. public enum UpdateOrderOption {
  4623. InsertUpdateDelete = 0,
  4624. UpdateInsertDelete = 1,
  4625. }
  4626. /// <summary>
  4627. ///Used to sort self-referenced table's rows
  4628. ///</summary>
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4630. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4631. private global::System.Data.DataRelation _relation;
  4632. private int _childFirst;
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  4636. this._relation = relation;
  4637. if (childFirst) {
  4638. this._childFirst = -1;
  4639. }
  4640. else {
  4641. this._childFirst = 1;
  4642. }
  4643. }
  4644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4646. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  4647. global::System.Diagnostics.Debug.Assert((row != null));
  4648. global::System.Data.DataRow root = row;
  4649. distance = 0;
  4650. 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>();
  4651. traversedRows[row] = row;
  4652. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4653. for (
  4654. ; ((parent != null)
  4655. && (traversedRows.ContainsKey(parent) == false));
  4656. ) {
  4657. distance = (distance + 1);
  4658. root = parent;
  4659. traversedRows[parent] = parent;
  4660. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4661. }
  4662. if ((distance == 0)) {
  4663. traversedRows.Clear();
  4664. traversedRows[row] = row;
  4665. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4666. for (
  4667. ; ((parent != null)
  4668. && (traversedRows.ContainsKey(parent) == false));
  4669. ) {
  4670. distance = (distance + 1);
  4671. root = parent;
  4672. traversedRows[parent] = parent;
  4673. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4674. }
  4675. }
  4676. return root;
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  4681. if (object.ReferenceEquals(row1, row2)) {
  4682. return 0;
  4683. }
  4684. if ((row1 == null)) {
  4685. return -1;
  4686. }
  4687. if ((row2 == null)) {
  4688. return 1;
  4689. }
  4690. int distance1 = 0;
  4691. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  4692. int distance2 = 0;
  4693. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  4694. if (object.ReferenceEquals(root1, root2)) {
  4695. return (this._childFirst * distance1.CompareTo(distance2));
  4696. }
  4697. else {
  4698. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  4699. && (root2.Table != null)));
  4700. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  4701. return -1;
  4702. }
  4703. else {
  4704. return 1;
  4705. }
  4706. }
  4707. }
  4708. }
  4709. }
  4710. }
  4711. #pragma warning restore 1591