BookClubKMADataSet.Designer.cs 454 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Книжный_клуб {
  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("BookClubKMADataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BookClubKMADataSet : global::System.Data.DataSet {
  22. private ManufacturerDataTable tableManufacturer;
  23. private OrderDataTable tableOrder;
  24. private OrderProductDataTable tableOrderProduct;
  25. private OrderStatusDataTable tableOrderStatus;
  26. private PickupPointDataTable tablePickupPoint;
  27. private ProductDataTable tableProduct;
  28. private TypeUserDataTable tableTypeUser;
  29. private UserDataTable tableUser;
  30. private global::System.Data.DataRelation relationFK_Order_OrderStatus;
  31. private global::System.Data.DataRelation relationFK_Order_PickupPoint;
  32. private global::System.Data.DataRelation relationFK_Order_User;
  33. private global::System.Data.DataRelation relationFK_OrderProduct_Order;
  34. private global::System.Data.DataRelation relationFK_OrderProduct_Product;
  35. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  36. private global::System.Data.DataRelation relationFK_User_TypeUser;
  37. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  38. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  39. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  40. public BookClubKMADataSet() {
  41. this.BeginInit();
  42. this.InitClass();
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. base.Tables.CollectionChanged += schemaChangedHandler;
  45. base.Relations.CollectionChanged += schemaChangedHandler;
  46. this.EndInit();
  47. }
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  49. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  50. protected BookClubKMADataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  51. base(info, context, false) {
  52. if ((this.IsBinarySerialized(info, context) == true)) {
  53. this.InitVars(false);
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. this.Tables.CollectionChanged += schemaChangedHandler1;
  56. this.Relations.CollectionChanged += schemaChangedHandler1;
  57. return;
  58. }
  59. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  60. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  61. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  62. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  63. if ((ds.Tables["Manufacturer"] != null)) {
  64. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  65. }
  66. if ((ds.Tables["Order"] != null)) {
  67. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  68. }
  69. if ((ds.Tables["OrderProduct"] != null)) {
  70. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  71. }
  72. if ((ds.Tables["OrderStatus"] != null)) {
  73. base.Tables.Add(new OrderStatusDataTable(ds.Tables["OrderStatus"]));
  74. }
  75. if ((ds.Tables["PickupPoint"] != null)) {
  76. base.Tables.Add(new PickupPointDataTable(ds.Tables["PickupPoint"]));
  77. }
  78. if ((ds.Tables["Product"] != null)) {
  79. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  80. }
  81. if ((ds.Tables["TypeUser"] != null)) {
  82. base.Tables.Add(new TypeUserDataTable(ds.Tables["TypeUser"]));
  83. }
  84. if ((ds.Tables["User"] != null)) {
  85. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  86. }
  87. this.DataSetName = ds.DataSetName;
  88. this.Prefix = ds.Prefix;
  89. this.Namespace = ds.Namespace;
  90. this.Locale = ds.Locale;
  91. this.CaseSensitive = ds.CaseSensitive;
  92. this.EnforceConstraints = ds.EnforceConstraints;
  93. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  94. this.InitVars();
  95. }
  96. else {
  97. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  98. }
  99. this.GetSerializationData(info, context);
  100. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  101. base.Tables.CollectionChanged += schemaChangedHandler;
  102. this.Relations.CollectionChanged += schemaChangedHandler;
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  106. [global::System.ComponentModel.Browsable(false)]
  107. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  108. public ManufacturerDataTable Manufacturer {
  109. get {
  110. return this.tableManufacturer;
  111. }
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  115. [global::System.ComponentModel.Browsable(false)]
  116. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  117. public OrderDataTable Order {
  118. get {
  119. return this.tableOrder;
  120. }
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  124. [global::System.ComponentModel.Browsable(false)]
  125. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  126. public OrderProductDataTable OrderProduct {
  127. get {
  128. return this.tableOrderProduct;
  129. }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  133. [global::System.ComponentModel.Browsable(false)]
  134. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  135. public OrderStatusDataTable OrderStatus {
  136. get {
  137. return this.tableOrderStatus;
  138. }
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  142. [global::System.ComponentModel.Browsable(false)]
  143. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  144. public PickupPointDataTable PickupPoint {
  145. get {
  146. return this.tablePickupPoint;
  147. }
  148. }
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  151. [global::System.ComponentModel.Browsable(false)]
  152. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  153. public ProductDataTable Product {
  154. get {
  155. return this.tableProduct;
  156. }
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  160. [global::System.ComponentModel.Browsable(false)]
  161. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  162. public TypeUserDataTable TypeUser {
  163. get {
  164. return this.tableTypeUser;
  165. }
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  169. [global::System.ComponentModel.Browsable(false)]
  170. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  171. public UserDataTable User {
  172. get {
  173. return this.tableUser;
  174. }
  175. }
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  178. [global::System.ComponentModel.BrowsableAttribute(true)]
  179. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  180. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  181. get {
  182. return this._schemaSerializationMode;
  183. }
  184. set {
  185. this._schemaSerializationMode = value;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  190. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  191. public new global::System.Data.DataTableCollection Tables {
  192. get {
  193. return base.Tables;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  198. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  199. public new global::System.Data.DataRelationCollection Relations {
  200. get {
  201. return base.Relations;
  202. }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  206. protected override void InitializeDerivedDataSet() {
  207. this.BeginInit();
  208. this.InitClass();
  209. this.EndInit();
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. public override global::System.Data.DataSet Clone() {
  214. BookClubKMADataSet cln = ((BookClubKMADataSet)(base.Clone()));
  215. cln.InitVars();
  216. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  217. return cln;
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  221. protected override bool ShouldSerializeTables() {
  222. return false;
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  226. protected override bool ShouldSerializeRelations() {
  227. return false;
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  231. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  232. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  233. this.Reset();
  234. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  235. ds.ReadXml(reader);
  236. if ((ds.Tables["Manufacturer"] != null)) {
  237. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  238. }
  239. if ((ds.Tables["Order"] != null)) {
  240. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  241. }
  242. if ((ds.Tables["OrderProduct"] != null)) {
  243. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  244. }
  245. if ((ds.Tables["OrderStatus"] != null)) {
  246. base.Tables.Add(new OrderStatusDataTable(ds.Tables["OrderStatus"]));
  247. }
  248. if ((ds.Tables["PickupPoint"] != null)) {
  249. base.Tables.Add(new PickupPointDataTable(ds.Tables["PickupPoint"]));
  250. }
  251. if ((ds.Tables["Product"] != null)) {
  252. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  253. }
  254. if ((ds.Tables["TypeUser"] != null)) {
  255. base.Tables.Add(new TypeUserDataTable(ds.Tables["TypeUser"]));
  256. }
  257. if ((ds.Tables["User"] != null)) {
  258. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  259. }
  260. this.DataSetName = ds.DataSetName;
  261. this.Prefix = ds.Prefix;
  262. this.Namespace = ds.Namespace;
  263. this.Locale = ds.Locale;
  264. this.CaseSensitive = ds.CaseSensitive;
  265. this.EnforceConstraints = ds.EnforceConstraints;
  266. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  267. this.InitVars();
  268. }
  269. else {
  270. this.ReadXml(reader);
  271. this.InitVars();
  272. }
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  276. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  277. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  278. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  279. stream.Position = 0;
  280. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  284. internal void InitVars() {
  285. this.InitVars(true);
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  289. internal void InitVars(bool initTable) {
  290. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  291. if ((initTable == true)) {
  292. if ((this.tableManufacturer != null)) {
  293. this.tableManufacturer.InitVars();
  294. }
  295. }
  296. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  297. if ((initTable == true)) {
  298. if ((this.tableOrder != null)) {
  299. this.tableOrder.InitVars();
  300. }
  301. }
  302. this.tableOrderProduct = ((OrderProductDataTable)(base.Tables["OrderProduct"]));
  303. if ((initTable == true)) {
  304. if ((this.tableOrderProduct != null)) {
  305. this.tableOrderProduct.InitVars();
  306. }
  307. }
  308. this.tableOrderStatus = ((OrderStatusDataTable)(base.Tables["OrderStatus"]));
  309. if ((initTable == true)) {
  310. if ((this.tableOrderStatus != null)) {
  311. this.tableOrderStatus.InitVars();
  312. }
  313. }
  314. this.tablePickupPoint = ((PickupPointDataTable)(base.Tables["PickupPoint"]));
  315. if ((initTable == true)) {
  316. if ((this.tablePickupPoint != null)) {
  317. this.tablePickupPoint.InitVars();
  318. }
  319. }
  320. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  321. if ((initTable == true)) {
  322. if ((this.tableProduct != null)) {
  323. this.tableProduct.InitVars();
  324. }
  325. }
  326. this.tableTypeUser = ((TypeUserDataTable)(base.Tables["TypeUser"]));
  327. if ((initTable == true)) {
  328. if ((this.tableTypeUser != null)) {
  329. this.tableTypeUser.InitVars();
  330. }
  331. }
  332. this.tableUser = ((UserDataTable)(base.Tables["User"]));
  333. if ((initTable == true)) {
  334. if ((this.tableUser != null)) {
  335. this.tableUser.InitVars();
  336. }
  337. }
  338. this.relationFK_Order_OrderStatus = this.Relations["FK_Order_OrderStatus"];
  339. this.relationFK_Order_PickupPoint = this.Relations["FK_Order_PickupPoint"];
  340. this.relationFK_Order_User = this.Relations["FK_Order_User"];
  341. this.relationFK_OrderProduct_Order = this.Relations["FK_OrderProduct_Order"];
  342. this.relationFK_OrderProduct_Product = this.Relations["FK_OrderProduct_Product"];
  343. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  344. this.relationFK_User_TypeUser = this.Relations["FK_User_TypeUser"];
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  348. private void InitClass() {
  349. this.DataSetName = "BookClubKMADataSet";
  350. this.Prefix = "";
  351. this.Namespace = "http://tempuri.org/BookClubKMADataSet.xsd";
  352. this.EnforceConstraints = true;
  353. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  354. this.tableManufacturer = new ManufacturerDataTable();
  355. base.Tables.Add(this.tableManufacturer);
  356. this.tableOrder = new OrderDataTable();
  357. base.Tables.Add(this.tableOrder);
  358. this.tableOrderProduct = new OrderProductDataTable();
  359. base.Tables.Add(this.tableOrderProduct);
  360. this.tableOrderStatus = new OrderStatusDataTable();
  361. base.Tables.Add(this.tableOrderStatus);
  362. this.tablePickupPoint = new PickupPointDataTable();
  363. base.Tables.Add(this.tablePickupPoint);
  364. this.tableProduct = new ProductDataTable();
  365. base.Tables.Add(this.tableProduct);
  366. this.tableTypeUser = new TypeUserDataTable();
  367. base.Tables.Add(this.tableTypeUser);
  368. this.tableUser = new UserDataTable();
  369. base.Tables.Add(this.tableUser);
  370. this.relationFK_Order_OrderStatus = new global::System.Data.DataRelation("FK_Order_OrderStatus", new global::System.Data.DataColumn[] {
  371. this.tableOrderStatus.IdOrderStatusColumn}, new global::System.Data.DataColumn[] {
  372. this.tableOrder.IdOrderStatusColumn}, false);
  373. this.Relations.Add(this.relationFK_Order_OrderStatus);
  374. this.relationFK_Order_PickupPoint = new global::System.Data.DataRelation("FK_Order_PickupPoint", new global::System.Data.DataColumn[] {
  375. this.tablePickupPoint.IdPickupPointColumn}, new global::System.Data.DataColumn[] {
  376. this.tableOrder.IdPickupPointColumn}, false);
  377. this.Relations.Add(this.relationFK_Order_PickupPoint);
  378. this.relationFK_Order_User = new global::System.Data.DataRelation("FK_Order_User", new global::System.Data.DataColumn[] {
  379. this.tableUser.IdUserColumn}, new global::System.Data.DataColumn[] {
  380. this.tableOrder.IdUserColumn}, false);
  381. this.Relations.Add(this.relationFK_Order_User);
  382. this.relationFK_OrderProduct_Order = new global::System.Data.DataRelation("FK_OrderProduct_Order", new global::System.Data.DataColumn[] {
  383. this.tableOrder.IdOrderColumn}, new global::System.Data.DataColumn[] {
  384. this.tableOrderProduct.IdOrderColumn}, false);
  385. this.Relations.Add(this.relationFK_OrderProduct_Order);
  386. this.relationFK_OrderProduct_Product = new global::System.Data.DataRelation("FK_OrderProduct_Product", new global::System.Data.DataColumn[] {
  387. this.tableProduct.IdProductColumn}, new global::System.Data.DataColumn[] {
  388. this.tableOrderProduct.IdProductColumn}, false);
  389. this.Relations.Add(this.relationFK_OrderProduct_Product);
  390. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  391. this.tableManufacturer.IdManufacturerColumn}, new global::System.Data.DataColumn[] {
  392. this.tableProduct.IdManufacturerColumn}, false);
  393. this.Relations.Add(this.relationFK_Product_Manufacturer);
  394. this.relationFK_User_TypeUser = new global::System.Data.DataRelation("FK_User_TypeUser", new global::System.Data.DataColumn[] {
  395. this.tableTypeUser.IdTypeUserColumn}, new global::System.Data.DataColumn[] {
  396. this.tableUser.IdTypeUserColumn}, false);
  397. this.Relations.Add(this.relationFK_User_TypeUser);
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  401. private bool ShouldSerializeManufacturer() {
  402. return false;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  406. private bool ShouldSerializeOrder() {
  407. return false;
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  411. private bool ShouldSerializeOrderProduct() {
  412. return false;
  413. }
  414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  416. private bool ShouldSerializeOrderStatus() {
  417. return false;
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  421. private bool ShouldSerializePickupPoint() {
  422. return false;
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  426. private bool ShouldSerializeProduct() {
  427. return false;
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  431. private bool ShouldSerializeTypeUser() {
  432. return false;
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. private bool ShouldSerializeUser() {
  437. return false;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  441. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  442. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  443. this.InitVars();
  444. }
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  448. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  449. BookClubKMADataSet ds = new BookClubKMADataSet();
  450. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  451. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  452. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  453. any.Namespace = ds.Namespace;
  454. sequence.Items.Add(any);
  455. type.Particle = sequence;
  456. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  457. if (xs.Contains(dsSchema.TargetNamespace)) {
  458. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  459. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  460. try {
  461. global::System.Xml.Schema.XmlSchema schema = null;
  462. dsSchema.Write(s1);
  463. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  464. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  465. s2.SetLength(0);
  466. schema.Write(s2);
  467. if ((s1.Length == s2.Length)) {
  468. s1.Position = 0;
  469. s2.Position = 0;
  470. for (; ((s1.Position != s1.Length)
  471. && (s1.ReadByte() == s2.ReadByte())); ) {
  472. ;
  473. }
  474. if ((s1.Position == s1.Length)) {
  475. return type;
  476. }
  477. }
  478. }
  479. }
  480. finally {
  481. if ((s1 != null)) {
  482. s1.Close();
  483. }
  484. if ((s2 != null)) {
  485. s2.Close();
  486. }
  487. }
  488. }
  489. xs.Add(dsSchema);
  490. return type;
  491. }
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  493. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  495. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  497. public delegate void OrderProductRowChangeEventHandler(object sender, OrderProductRowChangeEvent e);
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  499. public delegate void OrderStatusRowChangeEventHandler(object sender, OrderStatusRowChangeEvent e);
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  501. public delegate void PickupPointRowChangeEventHandler(object sender, PickupPointRowChangeEvent e);
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  503. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  505. public delegate void TypeUserRowChangeEventHandler(object sender, TypeUserRowChangeEvent e);
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  507. public delegate void UserRowChangeEventHandler(object sender, UserRowChangeEvent e);
  508. /// <summary>
  509. ///Represents the strongly named DataTable class.
  510. ///</summary>
  511. [global::System.Serializable()]
  512. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  513. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  514. private global::System.Data.DataColumn columnIdManufacturer;
  515. private global::System.Data.DataColumn columnNameManufacturer;
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  518. public ManufacturerDataTable() {
  519. this.TableName = "Manufacturer";
  520. this.BeginInit();
  521. this.InitClass();
  522. this.EndInit();
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  526. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  527. this.TableName = table.TableName;
  528. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  529. this.CaseSensitive = table.CaseSensitive;
  530. }
  531. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  532. this.Locale = table.Locale;
  533. }
  534. if ((table.Namespace != table.DataSet.Namespace)) {
  535. this.Namespace = table.Namespace;
  536. }
  537. this.Prefix = table.Prefix;
  538. this.MinimumCapacity = table.MinimumCapacity;
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  542. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  543. base(info, context) {
  544. this.InitVars();
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  548. public global::System.Data.DataColumn IdManufacturerColumn {
  549. get {
  550. return this.columnIdManufacturer;
  551. }
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  555. public global::System.Data.DataColumn NameManufacturerColumn {
  556. get {
  557. return this.columnNameManufacturer;
  558. }
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  562. [global::System.ComponentModel.Browsable(false)]
  563. public int Count {
  564. get {
  565. return this.Rows.Count;
  566. }
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public ManufacturerRow this[int index] {
  571. get {
  572. return ((ManufacturerRow)(this.Rows[index]));
  573. }
  574. }
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  576. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  578. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  580. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  582. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  585. public void AddManufacturerRow(ManufacturerRow row) {
  586. this.Rows.Add(row);
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  590. public ManufacturerRow AddManufacturerRow(string NameManufacturer) {
  591. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  592. object[] columnValuesArray = new object[] {
  593. null,
  594. NameManufacturer};
  595. rowManufacturerRow.ItemArray = columnValuesArray;
  596. this.Rows.Add(rowManufacturerRow);
  597. return rowManufacturerRow;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  601. public ManufacturerRow FindByIdManufacturer(int IdManufacturer) {
  602. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  603. IdManufacturer})));
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  607. public override global::System.Data.DataTable Clone() {
  608. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  609. cln.InitVars();
  610. return cln;
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  614. protected override global::System.Data.DataTable CreateInstance() {
  615. return new ManufacturerDataTable();
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. internal void InitVars() {
  620. this.columnIdManufacturer = base.Columns["IdManufacturer"];
  621. this.columnNameManufacturer = base.Columns["NameManufacturer"];
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. private void InitClass() {
  626. this.columnIdManufacturer = new global::System.Data.DataColumn("IdManufacturer", typeof(int), null, global::System.Data.MappingType.Element);
  627. base.Columns.Add(this.columnIdManufacturer);
  628. this.columnNameManufacturer = new global::System.Data.DataColumn("NameManufacturer", typeof(string), null, global::System.Data.MappingType.Element);
  629. base.Columns.Add(this.columnNameManufacturer);
  630. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  631. this.columnIdManufacturer}, true));
  632. this.columnIdManufacturer.AutoIncrement = true;
  633. this.columnIdManufacturer.AutoIncrementSeed = 1;
  634. this.columnIdManufacturer.AllowDBNull = false;
  635. this.columnIdManufacturer.ReadOnly = true;
  636. this.columnIdManufacturer.Unique = true;
  637. this.columnNameManufacturer.AllowDBNull = false;
  638. this.columnNameManufacturer.MaxLength = 50;
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  642. public ManufacturerRow NewManufacturerRow() {
  643. return ((ManufacturerRow)(this.NewRow()));
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  647. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  648. return new ManufacturerRow(builder);
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  652. protected override global::System.Type GetRowType() {
  653. return typeof(ManufacturerRow);
  654. }
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  657. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  658. base.OnRowChanged(e);
  659. if ((this.ManufacturerRowChanged != null)) {
  660. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  661. }
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  665. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  666. base.OnRowChanging(e);
  667. if ((this.ManufacturerRowChanging != null)) {
  668. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  669. }
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  673. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  674. base.OnRowDeleted(e);
  675. if ((this.ManufacturerRowDeleted != null)) {
  676. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  677. }
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  681. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  682. base.OnRowDeleting(e);
  683. if ((this.ManufacturerRowDeleting != null)) {
  684. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  685. }
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  689. public void RemoveManufacturerRow(ManufacturerRow row) {
  690. this.Rows.Remove(row);
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  694. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  695. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  696. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  697. BookClubKMADataSet ds = new BookClubKMADataSet();
  698. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  699. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  700. any1.MinOccurs = new decimal(0);
  701. any1.MaxOccurs = decimal.MaxValue;
  702. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  703. sequence.Items.Add(any1);
  704. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  705. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  706. any2.MinOccurs = new decimal(1);
  707. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  708. sequence.Items.Add(any2);
  709. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  710. attribute1.Name = "namespace";
  711. attribute1.FixedValue = ds.Namespace;
  712. type.Attributes.Add(attribute1);
  713. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  714. attribute2.Name = "tableTypeName";
  715. attribute2.FixedValue = "ManufacturerDataTable";
  716. type.Attributes.Add(attribute2);
  717. type.Particle = sequence;
  718. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  719. if (xs.Contains(dsSchema.TargetNamespace)) {
  720. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  721. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  722. try {
  723. global::System.Xml.Schema.XmlSchema schema = null;
  724. dsSchema.Write(s1);
  725. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  726. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  727. s2.SetLength(0);
  728. schema.Write(s2);
  729. if ((s1.Length == s2.Length)) {
  730. s1.Position = 0;
  731. s2.Position = 0;
  732. for (; ((s1.Position != s1.Length)
  733. && (s1.ReadByte() == s2.ReadByte())); ) {
  734. ;
  735. }
  736. if ((s1.Position == s1.Length)) {
  737. return type;
  738. }
  739. }
  740. }
  741. }
  742. finally {
  743. if ((s1 != null)) {
  744. s1.Close();
  745. }
  746. if ((s2 != null)) {
  747. s2.Close();
  748. }
  749. }
  750. }
  751. xs.Add(dsSchema);
  752. return type;
  753. }
  754. }
  755. /// <summary>
  756. ///Represents the strongly named DataTable class.
  757. ///</summary>
  758. [global::System.Serializable()]
  759. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  760. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  761. private global::System.Data.DataColumn columnIdOrder;
  762. private global::System.Data.DataColumn columnIdUser;
  763. private global::System.Data.DataColumn columnIdPickupPoint;
  764. private global::System.Data.DataColumn columnDateOrder;
  765. private global::System.Data.DataColumn columnCode;
  766. private global::System.Data.DataColumn columnIdOrderStatus;
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  769. public OrderDataTable() {
  770. this.TableName = "Order";
  771. this.BeginInit();
  772. this.InitClass();
  773. this.EndInit();
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  777. internal OrderDataTable(global::System.Data.DataTable table) {
  778. this.TableName = table.TableName;
  779. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  780. this.CaseSensitive = table.CaseSensitive;
  781. }
  782. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  783. this.Locale = table.Locale;
  784. }
  785. if ((table.Namespace != table.DataSet.Namespace)) {
  786. this.Namespace = table.Namespace;
  787. }
  788. this.Prefix = table.Prefix;
  789. this.MinimumCapacity = table.MinimumCapacity;
  790. }
  791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  793. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  794. base(info, context) {
  795. this.InitVars();
  796. }
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  799. public global::System.Data.DataColumn IdOrderColumn {
  800. get {
  801. return this.columnIdOrder;
  802. }
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  806. public global::System.Data.DataColumn IdUserColumn {
  807. get {
  808. return this.columnIdUser;
  809. }
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  813. public global::System.Data.DataColumn IdPickupPointColumn {
  814. get {
  815. return this.columnIdPickupPoint;
  816. }
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  820. public global::System.Data.DataColumn DateOrderColumn {
  821. get {
  822. return this.columnDateOrder;
  823. }
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  827. public global::System.Data.DataColumn CodeColumn {
  828. get {
  829. return this.columnCode;
  830. }
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  834. public global::System.Data.DataColumn IdOrderStatusColumn {
  835. get {
  836. return this.columnIdOrderStatus;
  837. }
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  841. [global::System.ComponentModel.Browsable(false)]
  842. public int Count {
  843. get {
  844. return this.Rows.Count;
  845. }
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  849. public OrderRow this[int index] {
  850. get {
  851. return ((OrderRow)(this.Rows[index]));
  852. }
  853. }
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. public event OrderRowChangeEventHandler OrderRowChanging;
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  857. public event OrderRowChangeEventHandler OrderRowChanged;
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  859. public event OrderRowChangeEventHandler OrderRowDeleting;
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  861. public event OrderRowChangeEventHandler OrderRowDeleted;
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  864. public void AddOrderRow(OrderRow row) {
  865. this.Rows.Add(row);
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  869. public OrderRow AddOrderRow(UserRow parentUserRowByFK_Order_User, PickupPointRow parentPickupPointRowByFK_Order_PickupPoint, System.DateTime DateOrder, int Code, OrderStatusRow parentOrderStatusRowByFK_Order_OrderStatus) {
  870. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  871. object[] columnValuesArray = new object[] {
  872. null,
  873. null,
  874. null,
  875. DateOrder,
  876. Code,
  877. null};
  878. if ((parentUserRowByFK_Order_User != null)) {
  879. columnValuesArray[1] = parentUserRowByFK_Order_User[0];
  880. }
  881. if ((parentPickupPointRowByFK_Order_PickupPoint != null)) {
  882. columnValuesArray[2] = parentPickupPointRowByFK_Order_PickupPoint[0];
  883. }
  884. if ((parentOrderStatusRowByFK_Order_OrderStatus != null)) {
  885. columnValuesArray[5] = parentOrderStatusRowByFK_Order_OrderStatus[0];
  886. }
  887. rowOrderRow.ItemArray = columnValuesArray;
  888. this.Rows.Add(rowOrderRow);
  889. return rowOrderRow;
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  893. public OrderRow FindByIdOrder(int IdOrder) {
  894. return ((OrderRow)(this.Rows.Find(new object[] {
  895. IdOrder})));
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  899. public override global::System.Data.DataTable Clone() {
  900. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  901. cln.InitVars();
  902. return cln;
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. protected override global::System.Data.DataTable CreateInstance() {
  907. return new OrderDataTable();
  908. }
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  911. internal void InitVars() {
  912. this.columnIdOrder = base.Columns["IdOrder"];
  913. this.columnIdUser = base.Columns["IdUser"];
  914. this.columnIdPickupPoint = base.Columns["IdPickupPoint"];
  915. this.columnDateOrder = base.Columns["DateOrder"];
  916. this.columnCode = base.Columns["Code"];
  917. this.columnIdOrderStatus = base.Columns["IdOrderStatus"];
  918. }
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  921. private void InitClass() {
  922. this.columnIdOrder = new global::System.Data.DataColumn("IdOrder", typeof(int), null, global::System.Data.MappingType.Element);
  923. base.Columns.Add(this.columnIdOrder);
  924. this.columnIdUser = new global::System.Data.DataColumn("IdUser", typeof(int), null, global::System.Data.MappingType.Element);
  925. base.Columns.Add(this.columnIdUser);
  926. this.columnIdPickupPoint = new global::System.Data.DataColumn("IdPickupPoint", typeof(int), null, global::System.Data.MappingType.Element);
  927. base.Columns.Add(this.columnIdPickupPoint);
  928. this.columnDateOrder = new global::System.Data.DataColumn("DateOrder", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  929. base.Columns.Add(this.columnDateOrder);
  930. this.columnCode = new global::System.Data.DataColumn("Code", typeof(int), null, global::System.Data.MappingType.Element);
  931. base.Columns.Add(this.columnCode);
  932. this.columnIdOrderStatus = new global::System.Data.DataColumn("IdOrderStatus", typeof(int), null, global::System.Data.MappingType.Element);
  933. base.Columns.Add(this.columnIdOrderStatus);
  934. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  935. this.columnIdOrder}, true));
  936. this.columnIdOrder.AutoIncrement = true;
  937. this.columnIdOrder.AutoIncrementSeed = 1;
  938. this.columnIdOrder.AllowDBNull = false;
  939. this.columnIdOrder.ReadOnly = true;
  940. this.columnIdOrder.Unique = true;
  941. this.columnIdUser.AllowDBNull = false;
  942. this.columnIdPickupPoint.AllowDBNull = false;
  943. this.columnIdOrderStatus.AllowDBNull = false;
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  947. public OrderRow NewOrderRow() {
  948. return ((OrderRow)(this.NewRow()));
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  952. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  953. return new OrderRow(builder);
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  957. protected override global::System.Type GetRowType() {
  958. return typeof(OrderRow);
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  962. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  963. base.OnRowChanged(e);
  964. if ((this.OrderRowChanged != null)) {
  965. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  966. }
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  970. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  971. base.OnRowChanging(e);
  972. if ((this.OrderRowChanging != null)) {
  973. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  974. }
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  978. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  979. base.OnRowDeleted(e);
  980. if ((this.OrderRowDeleted != null)) {
  981. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  982. }
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  986. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  987. base.OnRowDeleting(e);
  988. if ((this.OrderRowDeleting != null)) {
  989. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  990. }
  991. }
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  994. public void RemoveOrderRow(OrderRow row) {
  995. this.Rows.Remove(row);
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  999. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1000. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1001. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1002. BookClubKMADataSet ds = new BookClubKMADataSet();
  1003. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1004. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1005. any1.MinOccurs = new decimal(0);
  1006. any1.MaxOccurs = decimal.MaxValue;
  1007. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1008. sequence.Items.Add(any1);
  1009. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1010. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1011. any2.MinOccurs = new decimal(1);
  1012. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1013. sequence.Items.Add(any2);
  1014. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1015. attribute1.Name = "namespace";
  1016. attribute1.FixedValue = ds.Namespace;
  1017. type.Attributes.Add(attribute1);
  1018. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1019. attribute2.Name = "tableTypeName";
  1020. attribute2.FixedValue = "OrderDataTable";
  1021. type.Attributes.Add(attribute2);
  1022. type.Particle = sequence;
  1023. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1024. if (xs.Contains(dsSchema.TargetNamespace)) {
  1025. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1026. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1027. try {
  1028. global::System.Xml.Schema.XmlSchema schema = null;
  1029. dsSchema.Write(s1);
  1030. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1031. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1032. s2.SetLength(0);
  1033. schema.Write(s2);
  1034. if ((s1.Length == s2.Length)) {
  1035. s1.Position = 0;
  1036. s2.Position = 0;
  1037. for (; ((s1.Position != s1.Length)
  1038. && (s1.ReadByte() == s2.ReadByte())); ) {
  1039. ;
  1040. }
  1041. if ((s1.Position == s1.Length)) {
  1042. return type;
  1043. }
  1044. }
  1045. }
  1046. }
  1047. finally {
  1048. if ((s1 != null)) {
  1049. s1.Close();
  1050. }
  1051. if ((s2 != null)) {
  1052. s2.Close();
  1053. }
  1054. }
  1055. }
  1056. xs.Add(dsSchema);
  1057. return type;
  1058. }
  1059. }
  1060. /// <summary>
  1061. ///Represents the strongly named DataTable class.
  1062. ///</summary>
  1063. [global::System.Serializable()]
  1064. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1065. public partial class OrderProductDataTable : global::System.Data.TypedTableBase<OrderProductRow> {
  1066. private global::System.Data.DataColumn columnIdOrderProduct;
  1067. private global::System.Data.DataColumn columnIdOrder;
  1068. private global::System.Data.DataColumn columnIdProduct;
  1069. private global::System.Data.DataColumn columnCountProduct;
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1072. public OrderProductDataTable() {
  1073. this.TableName = "OrderProduct";
  1074. this.BeginInit();
  1075. this.InitClass();
  1076. this.EndInit();
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1080. internal OrderProductDataTable(global::System.Data.DataTable table) {
  1081. this.TableName = table.TableName;
  1082. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1083. this.CaseSensitive = table.CaseSensitive;
  1084. }
  1085. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1086. this.Locale = table.Locale;
  1087. }
  1088. if ((table.Namespace != table.DataSet.Namespace)) {
  1089. this.Namespace = table.Namespace;
  1090. }
  1091. this.Prefix = table.Prefix;
  1092. this.MinimumCapacity = table.MinimumCapacity;
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1096. protected OrderProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1097. base(info, context) {
  1098. this.InitVars();
  1099. }
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1102. public global::System.Data.DataColumn IdOrderProductColumn {
  1103. get {
  1104. return this.columnIdOrderProduct;
  1105. }
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1109. public global::System.Data.DataColumn IdOrderColumn {
  1110. get {
  1111. return this.columnIdOrder;
  1112. }
  1113. }
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1116. public global::System.Data.DataColumn IdProductColumn {
  1117. get {
  1118. return this.columnIdProduct;
  1119. }
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1123. public global::System.Data.DataColumn CountProductColumn {
  1124. get {
  1125. return this.columnCountProduct;
  1126. }
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1130. [global::System.ComponentModel.Browsable(false)]
  1131. public int Count {
  1132. get {
  1133. return this.Rows.Count;
  1134. }
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1138. public OrderProductRow this[int index] {
  1139. get {
  1140. return ((OrderProductRow)(this.Rows[index]));
  1141. }
  1142. }
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1144. public event OrderProductRowChangeEventHandler OrderProductRowChanging;
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1146. public event OrderProductRowChangeEventHandler OrderProductRowChanged;
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1148. public event OrderProductRowChangeEventHandler OrderProductRowDeleting;
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1150. public event OrderProductRowChangeEventHandler OrderProductRowDeleted;
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1153. public void AddOrderProductRow(OrderProductRow row) {
  1154. this.Rows.Add(row);
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1158. public OrderProductRow AddOrderProductRow(OrderRow parentOrderRowByFK_OrderProduct_Order, ProductRow parentProductRowByFK_OrderProduct_Product, int CountProduct) {
  1159. OrderProductRow rowOrderProductRow = ((OrderProductRow)(this.NewRow()));
  1160. object[] columnValuesArray = new object[] {
  1161. null,
  1162. null,
  1163. null,
  1164. CountProduct};
  1165. if ((parentOrderRowByFK_OrderProduct_Order != null)) {
  1166. columnValuesArray[1] = parentOrderRowByFK_OrderProduct_Order[0];
  1167. }
  1168. if ((parentProductRowByFK_OrderProduct_Product != null)) {
  1169. columnValuesArray[2] = parentProductRowByFK_OrderProduct_Product[0];
  1170. }
  1171. rowOrderProductRow.ItemArray = columnValuesArray;
  1172. this.Rows.Add(rowOrderProductRow);
  1173. return rowOrderProductRow;
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1177. public OrderProductRow FindByIdOrderProduct(int IdOrderProduct) {
  1178. return ((OrderProductRow)(this.Rows.Find(new object[] {
  1179. IdOrderProduct})));
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1183. public override global::System.Data.DataTable Clone() {
  1184. OrderProductDataTable cln = ((OrderProductDataTable)(base.Clone()));
  1185. cln.InitVars();
  1186. return cln;
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1190. protected override global::System.Data.DataTable CreateInstance() {
  1191. return new OrderProductDataTable();
  1192. }
  1193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1195. internal void InitVars() {
  1196. this.columnIdOrderProduct = base.Columns["IdOrderProduct"];
  1197. this.columnIdOrder = base.Columns["IdOrder"];
  1198. this.columnIdProduct = base.Columns["IdProduct"];
  1199. this.columnCountProduct = base.Columns["CountProduct"];
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1203. private void InitClass() {
  1204. this.columnIdOrderProduct = new global::System.Data.DataColumn("IdOrderProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1205. base.Columns.Add(this.columnIdOrderProduct);
  1206. this.columnIdOrder = new global::System.Data.DataColumn("IdOrder", typeof(int), null, global::System.Data.MappingType.Element);
  1207. base.Columns.Add(this.columnIdOrder);
  1208. this.columnIdProduct = new global::System.Data.DataColumn("IdProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1209. base.Columns.Add(this.columnIdProduct);
  1210. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1211. base.Columns.Add(this.columnCountProduct);
  1212. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1213. this.columnIdOrderProduct}, true));
  1214. this.columnIdOrderProduct.AutoIncrement = true;
  1215. this.columnIdOrderProduct.AutoIncrementSeed = 1;
  1216. this.columnIdOrderProduct.AllowDBNull = false;
  1217. this.columnIdOrderProduct.ReadOnly = true;
  1218. this.columnIdOrderProduct.Unique = true;
  1219. this.columnIdOrder.AllowDBNull = false;
  1220. this.columnIdProduct.AllowDBNull = false;
  1221. this.columnCountProduct.AllowDBNull = false;
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1225. public OrderProductRow NewOrderProductRow() {
  1226. return ((OrderProductRow)(this.NewRow()));
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1230. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1231. return new OrderProductRow(builder);
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1235. protected override global::System.Type GetRowType() {
  1236. return typeof(OrderProductRow);
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1240. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1241. base.OnRowChanged(e);
  1242. if ((this.OrderProductRowChanged != null)) {
  1243. this.OrderProductRowChanged(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1244. }
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1248. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1249. base.OnRowChanging(e);
  1250. if ((this.OrderProductRowChanging != null)) {
  1251. this.OrderProductRowChanging(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1252. }
  1253. }
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1256. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1257. base.OnRowDeleted(e);
  1258. if ((this.OrderProductRowDeleted != null)) {
  1259. this.OrderProductRowDeleted(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1260. }
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1264. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1265. base.OnRowDeleting(e);
  1266. if ((this.OrderProductRowDeleting != null)) {
  1267. this.OrderProductRowDeleting(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1268. }
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1272. public void RemoveOrderProductRow(OrderProductRow row) {
  1273. this.Rows.Remove(row);
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1277. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1278. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1279. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1280. BookClubKMADataSet ds = new BookClubKMADataSet();
  1281. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1282. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1283. any1.MinOccurs = new decimal(0);
  1284. any1.MaxOccurs = decimal.MaxValue;
  1285. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1286. sequence.Items.Add(any1);
  1287. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1288. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1289. any2.MinOccurs = new decimal(1);
  1290. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1291. sequence.Items.Add(any2);
  1292. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1293. attribute1.Name = "namespace";
  1294. attribute1.FixedValue = ds.Namespace;
  1295. type.Attributes.Add(attribute1);
  1296. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1297. attribute2.Name = "tableTypeName";
  1298. attribute2.FixedValue = "OrderProductDataTable";
  1299. type.Attributes.Add(attribute2);
  1300. type.Particle = sequence;
  1301. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1302. if (xs.Contains(dsSchema.TargetNamespace)) {
  1303. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1304. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1305. try {
  1306. global::System.Xml.Schema.XmlSchema schema = null;
  1307. dsSchema.Write(s1);
  1308. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1309. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1310. s2.SetLength(0);
  1311. schema.Write(s2);
  1312. if ((s1.Length == s2.Length)) {
  1313. s1.Position = 0;
  1314. s2.Position = 0;
  1315. for (; ((s1.Position != s1.Length)
  1316. && (s1.ReadByte() == s2.ReadByte())); ) {
  1317. ;
  1318. }
  1319. if ((s1.Position == s1.Length)) {
  1320. return type;
  1321. }
  1322. }
  1323. }
  1324. }
  1325. finally {
  1326. if ((s1 != null)) {
  1327. s1.Close();
  1328. }
  1329. if ((s2 != null)) {
  1330. s2.Close();
  1331. }
  1332. }
  1333. }
  1334. xs.Add(dsSchema);
  1335. return type;
  1336. }
  1337. }
  1338. /// <summary>
  1339. ///Represents the strongly named DataTable class.
  1340. ///</summary>
  1341. [global::System.Serializable()]
  1342. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1343. public partial class OrderStatusDataTable : global::System.Data.TypedTableBase<OrderStatusRow> {
  1344. private global::System.Data.DataColumn columnIdOrderStatus;
  1345. private global::System.Data.DataColumn columnNameOrderStatus;
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. public OrderStatusDataTable() {
  1349. this.TableName = "OrderStatus";
  1350. this.BeginInit();
  1351. this.InitClass();
  1352. this.EndInit();
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1356. internal OrderStatusDataTable(global::System.Data.DataTable table) {
  1357. this.TableName = table.TableName;
  1358. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1359. this.CaseSensitive = table.CaseSensitive;
  1360. }
  1361. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1362. this.Locale = table.Locale;
  1363. }
  1364. if ((table.Namespace != table.DataSet.Namespace)) {
  1365. this.Namespace = table.Namespace;
  1366. }
  1367. this.Prefix = table.Prefix;
  1368. this.MinimumCapacity = table.MinimumCapacity;
  1369. }
  1370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1372. protected OrderStatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1373. base(info, context) {
  1374. this.InitVars();
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public global::System.Data.DataColumn IdOrderStatusColumn {
  1379. get {
  1380. return this.columnIdOrderStatus;
  1381. }
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1385. public global::System.Data.DataColumn NameOrderStatusColumn {
  1386. get {
  1387. return this.columnNameOrderStatus;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1392. [global::System.ComponentModel.Browsable(false)]
  1393. public int Count {
  1394. get {
  1395. return this.Rows.Count;
  1396. }
  1397. }
  1398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1400. public OrderStatusRow this[int index] {
  1401. get {
  1402. return ((OrderStatusRow)(this.Rows[index]));
  1403. }
  1404. }
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1406. public event OrderStatusRowChangeEventHandler OrderStatusRowChanging;
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1408. public event OrderStatusRowChangeEventHandler OrderStatusRowChanged;
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1410. public event OrderStatusRowChangeEventHandler OrderStatusRowDeleting;
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1412. public event OrderStatusRowChangeEventHandler OrderStatusRowDeleted;
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1415. public void AddOrderStatusRow(OrderStatusRow row) {
  1416. this.Rows.Add(row);
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1420. public OrderStatusRow AddOrderStatusRow(string NameOrderStatus) {
  1421. OrderStatusRow rowOrderStatusRow = ((OrderStatusRow)(this.NewRow()));
  1422. object[] columnValuesArray = new object[] {
  1423. null,
  1424. NameOrderStatus};
  1425. rowOrderStatusRow.ItemArray = columnValuesArray;
  1426. this.Rows.Add(rowOrderStatusRow);
  1427. return rowOrderStatusRow;
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1431. public OrderStatusRow FindByIdOrderStatus(int IdOrderStatus) {
  1432. return ((OrderStatusRow)(this.Rows.Find(new object[] {
  1433. IdOrderStatus})));
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1437. public override global::System.Data.DataTable Clone() {
  1438. OrderStatusDataTable cln = ((OrderStatusDataTable)(base.Clone()));
  1439. cln.InitVars();
  1440. return cln;
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1444. protected override global::System.Data.DataTable CreateInstance() {
  1445. return new OrderStatusDataTable();
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1449. internal void InitVars() {
  1450. this.columnIdOrderStatus = base.Columns["IdOrderStatus"];
  1451. this.columnNameOrderStatus = base.Columns["NameOrderStatus"];
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1455. private void InitClass() {
  1456. this.columnIdOrderStatus = new global::System.Data.DataColumn("IdOrderStatus", typeof(int), null, global::System.Data.MappingType.Element);
  1457. base.Columns.Add(this.columnIdOrderStatus);
  1458. this.columnNameOrderStatus = new global::System.Data.DataColumn("NameOrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  1459. base.Columns.Add(this.columnNameOrderStatus);
  1460. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1461. this.columnIdOrderStatus}, true));
  1462. this.columnIdOrderStatus.AutoIncrement = true;
  1463. this.columnIdOrderStatus.AutoIncrementSeed = 1;
  1464. this.columnIdOrderStatus.AllowDBNull = false;
  1465. this.columnIdOrderStatus.ReadOnly = true;
  1466. this.columnIdOrderStatus.Unique = true;
  1467. this.columnNameOrderStatus.AllowDBNull = false;
  1468. this.columnNameOrderStatus.MaxLength = 50;
  1469. }
  1470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1472. public OrderStatusRow NewOrderStatusRow() {
  1473. return ((OrderStatusRow)(this.NewRow()));
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1478. return new OrderStatusRow(builder);
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1482. protected override global::System.Type GetRowType() {
  1483. return typeof(OrderStatusRow);
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1487. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1488. base.OnRowChanged(e);
  1489. if ((this.OrderStatusRowChanged != null)) {
  1490. this.OrderStatusRowChanged(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  1491. }
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1495. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1496. base.OnRowChanging(e);
  1497. if ((this.OrderStatusRowChanging != null)) {
  1498. this.OrderStatusRowChanging(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  1499. }
  1500. }
  1501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1503. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1504. base.OnRowDeleted(e);
  1505. if ((this.OrderStatusRowDeleted != null)) {
  1506. this.OrderStatusRowDeleted(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  1507. }
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1511. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1512. base.OnRowDeleting(e);
  1513. if ((this.OrderStatusRowDeleting != null)) {
  1514. this.OrderStatusRowDeleting(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  1515. }
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1519. public void RemoveOrderStatusRow(OrderStatusRow row) {
  1520. this.Rows.Remove(row);
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1524. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1525. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1526. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1527. BookClubKMADataSet ds = new BookClubKMADataSet();
  1528. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1529. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1530. any1.MinOccurs = new decimal(0);
  1531. any1.MaxOccurs = decimal.MaxValue;
  1532. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1533. sequence.Items.Add(any1);
  1534. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1535. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1536. any2.MinOccurs = new decimal(1);
  1537. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1538. sequence.Items.Add(any2);
  1539. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1540. attribute1.Name = "namespace";
  1541. attribute1.FixedValue = ds.Namespace;
  1542. type.Attributes.Add(attribute1);
  1543. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1544. attribute2.Name = "tableTypeName";
  1545. attribute2.FixedValue = "OrderStatusDataTable";
  1546. type.Attributes.Add(attribute2);
  1547. type.Particle = sequence;
  1548. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1549. if (xs.Contains(dsSchema.TargetNamespace)) {
  1550. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1551. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1552. try {
  1553. global::System.Xml.Schema.XmlSchema schema = null;
  1554. dsSchema.Write(s1);
  1555. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1556. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1557. s2.SetLength(0);
  1558. schema.Write(s2);
  1559. if ((s1.Length == s2.Length)) {
  1560. s1.Position = 0;
  1561. s2.Position = 0;
  1562. for (; ((s1.Position != s1.Length)
  1563. && (s1.ReadByte() == s2.ReadByte())); ) {
  1564. ;
  1565. }
  1566. if ((s1.Position == s1.Length)) {
  1567. return type;
  1568. }
  1569. }
  1570. }
  1571. }
  1572. finally {
  1573. if ((s1 != null)) {
  1574. s1.Close();
  1575. }
  1576. if ((s2 != null)) {
  1577. s2.Close();
  1578. }
  1579. }
  1580. }
  1581. xs.Add(dsSchema);
  1582. return type;
  1583. }
  1584. }
  1585. /// <summary>
  1586. ///Represents the strongly named DataTable class.
  1587. ///</summary>
  1588. [global::System.Serializable()]
  1589. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1590. public partial class PickupPointDataTable : global::System.Data.TypedTableBase<PickupPointRow> {
  1591. private global::System.Data.DataColumn columnIdPickupPoint;
  1592. private global::System.Data.DataColumn columnAddressPickupPoint;
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1595. public PickupPointDataTable() {
  1596. this.TableName = "PickupPoint";
  1597. this.BeginInit();
  1598. this.InitClass();
  1599. this.EndInit();
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1603. internal PickupPointDataTable(global::System.Data.DataTable table) {
  1604. this.TableName = table.TableName;
  1605. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1606. this.CaseSensitive = table.CaseSensitive;
  1607. }
  1608. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1609. this.Locale = table.Locale;
  1610. }
  1611. if ((table.Namespace != table.DataSet.Namespace)) {
  1612. this.Namespace = table.Namespace;
  1613. }
  1614. this.Prefix = table.Prefix;
  1615. this.MinimumCapacity = table.MinimumCapacity;
  1616. }
  1617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1619. protected PickupPointDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1620. base(info, context) {
  1621. this.InitVars();
  1622. }
  1623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1625. public global::System.Data.DataColumn IdPickupPointColumn {
  1626. get {
  1627. return this.columnIdPickupPoint;
  1628. }
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1632. public global::System.Data.DataColumn AddressPickupPointColumn {
  1633. get {
  1634. return this.columnAddressPickupPoint;
  1635. }
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1639. [global::System.ComponentModel.Browsable(false)]
  1640. public int Count {
  1641. get {
  1642. return this.Rows.Count;
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1647. public PickupPointRow this[int index] {
  1648. get {
  1649. return ((PickupPointRow)(this.Rows[index]));
  1650. }
  1651. }
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1653. public event PickupPointRowChangeEventHandler PickupPointRowChanging;
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1655. public event PickupPointRowChangeEventHandler PickupPointRowChanged;
  1656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1657. public event PickupPointRowChangeEventHandler PickupPointRowDeleting;
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1659. public event PickupPointRowChangeEventHandler PickupPointRowDeleted;
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1662. public void AddPickupPointRow(PickupPointRow row) {
  1663. this.Rows.Add(row);
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1667. public PickupPointRow AddPickupPointRow(string AddressPickupPoint) {
  1668. PickupPointRow rowPickupPointRow = ((PickupPointRow)(this.NewRow()));
  1669. object[] columnValuesArray = new object[] {
  1670. null,
  1671. AddressPickupPoint};
  1672. rowPickupPointRow.ItemArray = columnValuesArray;
  1673. this.Rows.Add(rowPickupPointRow);
  1674. return rowPickupPointRow;
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1678. public PickupPointRow FindByIdPickupPoint(int IdPickupPoint) {
  1679. return ((PickupPointRow)(this.Rows.Find(new object[] {
  1680. IdPickupPoint})));
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1684. public override global::System.Data.DataTable Clone() {
  1685. PickupPointDataTable cln = ((PickupPointDataTable)(base.Clone()));
  1686. cln.InitVars();
  1687. return cln;
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1691. protected override global::System.Data.DataTable CreateInstance() {
  1692. return new PickupPointDataTable();
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1696. internal void InitVars() {
  1697. this.columnIdPickupPoint = base.Columns["IdPickupPoint"];
  1698. this.columnAddressPickupPoint = base.Columns["AddressPickupPoint"];
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1702. private void InitClass() {
  1703. this.columnIdPickupPoint = new global::System.Data.DataColumn("IdPickupPoint", typeof(int), null, global::System.Data.MappingType.Element);
  1704. base.Columns.Add(this.columnIdPickupPoint);
  1705. this.columnAddressPickupPoint = new global::System.Data.DataColumn("AddressPickupPoint", typeof(string), null, global::System.Data.MappingType.Element);
  1706. base.Columns.Add(this.columnAddressPickupPoint);
  1707. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1708. this.columnIdPickupPoint}, true));
  1709. this.columnIdPickupPoint.AutoIncrement = true;
  1710. this.columnIdPickupPoint.AutoIncrementSeed = 1;
  1711. this.columnIdPickupPoint.AllowDBNull = false;
  1712. this.columnIdPickupPoint.ReadOnly = true;
  1713. this.columnIdPickupPoint.Unique = true;
  1714. this.columnAddressPickupPoint.AllowDBNull = false;
  1715. this.columnAddressPickupPoint.MaxLength = 50;
  1716. }
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1719. public PickupPointRow NewPickupPointRow() {
  1720. return ((PickupPointRow)(this.NewRow()));
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1724. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1725. return new PickupPointRow(builder);
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1729. protected override global::System.Type GetRowType() {
  1730. return typeof(PickupPointRow);
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1734. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1735. base.OnRowChanged(e);
  1736. if ((this.PickupPointRowChanged != null)) {
  1737. this.PickupPointRowChanged(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1738. }
  1739. }
  1740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1742. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1743. base.OnRowChanging(e);
  1744. if ((this.PickupPointRowChanging != null)) {
  1745. this.PickupPointRowChanging(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1746. }
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1750. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1751. base.OnRowDeleted(e);
  1752. if ((this.PickupPointRowDeleted != null)) {
  1753. this.PickupPointRowDeleted(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1754. }
  1755. }
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1758. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1759. base.OnRowDeleting(e);
  1760. if ((this.PickupPointRowDeleting != null)) {
  1761. this.PickupPointRowDeleting(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1762. }
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1766. public void RemovePickupPointRow(PickupPointRow row) {
  1767. this.Rows.Remove(row);
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1771. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1772. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1773. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1774. BookClubKMADataSet ds = new BookClubKMADataSet();
  1775. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1776. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1777. any1.MinOccurs = new decimal(0);
  1778. any1.MaxOccurs = decimal.MaxValue;
  1779. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1780. sequence.Items.Add(any1);
  1781. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1782. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1783. any2.MinOccurs = new decimal(1);
  1784. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1785. sequence.Items.Add(any2);
  1786. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1787. attribute1.Name = "namespace";
  1788. attribute1.FixedValue = ds.Namespace;
  1789. type.Attributes.Add(attribute1);
  1790. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1791. attribute2.Name = "tableTypeName";
  1792. attribute2.FixedValue = "PickupPointDataTable";
  1793. type.Attributes.Add(attribute2);
  1794. type.Particle = sequence;
  1795. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1796. if (xs.Contains(dsSchema.TargetNamespace)) {
  1797. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1798. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1799. try {
  1800. global::System.Xml.Schema.XmlSchema schema = null;
  1801. dsSchema.Write(s1);
  1802. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1803. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1804. s2.SetLength(0);
  1805. schema.Write(s2);
  1806. if ((s1.Length == s2.Length)) {
  1807. s1.Position = 0;
  1808. s2.Position = 0;
  1809. for (; ((s1.Position != s1.Length)
  1810. && (s1.ReadByte() == s2.ReadByte())); ) {
  1811. ;
  1812. }
  1813. if ((s1.Position == s1.Length)) {
  1814. return type;
  1815. }
  1816. }
  1817. }
  1818. }
  1819. finally {
  1820. if ((s1 != null)) {
  1821. s1.Close();
  1822. }
  1823. if ((s2 != null)) {
  1824. s2.Close();
  1825. }
  1826. }
  1827. }
  1828. xs.Add(dsSchema);
  1829. return type;
  1830. }
  1831. }
  1832. /// <summary>
  1833. ///Represents the strongly named DataTable class.
  1834. ///</summary>
  1835. [global::System.Serializable()]
  1836. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1837. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  1838. private global::System.Data.DataColumn columnIdProduct;
  1839. private global::System.Data.DataColumn columnNameProduct;
  1840. private global::System.Data.DataColumn columnIdManufacturer;
  1841. private global::System.Data.DataColumn columnDescription;
  1842. private global::System.Data.DataColumn columnPhoto;
  1843. private global::System.Data.DataColumn columnCost;
  1844. private global::System.Data.DataColumn columnDiscount;
  1845. private global::System.Data.DataColumn columnCountProduct;
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1848. public ProductDataTable() {
  1849. this.TableName = "Product";
  1850. this.BeginInit();
  1851. this.InitClass();
  1852. this.EndInit();
  1853. }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1856. internal ProductDataTable(global::System.Data.DataTable table) {
  1857. this.TableName = table.TableName;
  1858. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1859. this.CaseSensitive = table.CaseSensitive;
  1860. }
  1861. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1862. this.Locale = table.Locale;
  1863. }
  1864. if ((table.Namespace != table.DataSet.Namespace)) {
  1865. this.Namespace = table.Namespace;
  1866. }
  1867. this.Prefix = table.Prefix;
  1868. this.MinimumCapacity = table.MinimumCapacity;
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1872. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1873. base(info, context) {
  1874. this.InitVars();
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1878. public global::System.Data.DataColumn IdProductColumn {
  1879. get {
  1880. return this.columnIdProduct;
  1881. }
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1885. public global::System.Data.DataColumn NameProductColumn {
  1886. get {
  1887. return this.columnNameProduct;
  1888. }
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1892. public global::System.Data.DataColumn IdManufacturerColumn {
  1893. get {
  1894. return this.columnIdManufacturer;
  1895. }
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1899. public global::System.Data.DataColumn DescriptionColumn {
  1900. get {
  1901. return this.columnDescription;
  1902. }
  1903. }
  1904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1906. public global::System.Data.DataColumn PhotoColumn {
  1907. get {
  1908. return this.columnPhoto;
  1909. }
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1913. public global::System.Data.DataColumn CostColumn {
  1914. get {
  1915. return this.columnCost;
  1916. }
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1920. public global::System.Data.DataColumn DiscountColumn {
  1921. get {
  1922. return this.columnDiscount;
  1923. }
  1924. }
  1925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1927. public global::System.Data.DataColumn CountProductColumn {
  1928. get {
  1929. return this.columnCountProduct;
  1930. }
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1934. [global::System.ComponentModel.Browsable(false)]
  1935. public int Count {
  1936. get {
  1937. return this.Rows.Count;
  1938. }
  1939. }
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1942. public ProductRow this[int index] {
  1943. get {
  1944. return ((ProductRow)(this.Rows[index]));
  1945. }
  1946. }
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1948. public event ProductRowChangeEventHandler ProductRowChanging;
  1949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1950. public event ProductRowChangeEventHandler ProductRowChanged;
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1952. public event ProductRowChangeEventHandler ProductRowDeleting;
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1954. public event ProductRowChangeEventHandler ProductRowDeleted;
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1957. public void AddProductRow(ProductRow row) {
  1958. this.Rows.Add(row);
  1959. }
  1960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1962. public ProductRow AddProductRow(string NameProduct, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer, string Description, string Photo, decimal Cost, double Discount, int CountProduct) {
  1963. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  1964. object[] columnValuesArray = new object[] {
  1965. null,
  1966. NameProduct,
  1967. null,
  1968. Description,
  1969. Photo,
  1970. Cost,
  1971. Discount,
  1972. CountProduct};
  1973. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  1974. columnValuesArray[2] = parentManufacturerRowByFK_Product_Manufacturer[0];
  1975. }
  1976. rowProductRow.ItemArray = columnValuesArray;
  1977. this.Rows.Add(rowProductRow);
  1978. return rowProductRow;
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1982. public ProductRow FindByIdProduct(int IdProduct) {
  1983. return ((ProductRow)(this.Rows.Find(new object[] {
  1984. IdProduct})));
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1988. public override global::System.Data.DataTable Clone() {
  1989. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  1990. cln.InitVars();
  1991. return cln;
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1995. protected override global::System.Data.DataTable CreateInstance() {
  1996. return new ProductDataTable();
  1997. }
  1998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2000. internal void InitVars() {
  2001. this.columnIdProduct = base.Columns["IdProduct"];
  2002. this.columnNameProduct = base.Columns["NameProduct"];
  2003. this.columnIdManufacturer = base.Columns["IdManufacturer"];
  2004. this.columnDescription = base.Columns["Description"];
  2005. this.columnPhoto = base.Columns["Photo"];
  2006. this.columnCost = base.Columns["Cost"];
  2007. this.columnDiscount = base.Columns["Discount"];
  2008. this.columnCountProduct = base.Columns["CountProduct"];
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2012. private void InitClass() {
  2013. this.columnIdProduct = new global::System.Data.DataColumn("IdProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2014. base.Columns.Add(this.columnIdProduct);
  2015. this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
  2016. base.Columns.Add(this.columnNameProduct);
  2017. this.columnIdManufacturer = new global::System.Data.DataColumn("IdManufacturer", typeof(int), null, global::System.Data.MappingType.Element);
  2018. base.Columns.Add(this.columnIdManufacturer);
  2019. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2020. base.Columns.Add(this.columnDescription);
  2021. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  2022. base.Columns.Add(this.columnPhoto);
  2023. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2024. base.Columns.Add(this.columnCost);
  2025. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  2026. base.Columns.Add(this.columnDiscount);
  2027. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2028. base.Columns.Add(this.columnCountProduct);
  2029. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2030. this.columnIdProduct}, true));
  2031. this.columnIdProduct.AutoIncrement = true;
  2032. this.columnIdProduct.AutoIncrementSeed = 1;
  2033. this.columnIdProduct.AllowDBNull = false;
  2034. this.columnIdProduct.ReadOnly = true;
  2035. this.columnIdProduct.Unique = true;
  2036. this.columnNameProduct.AllowDBNull = false;
  2037. this.columnNameProduct.MaxLength = 50;
  2038. this.columnIdManufacturer.AllowDBNull = false;
  2039. this.columnDescription.MaxLength = 50;
  2040. this.columnPhoto.MaxLength = 255;
  2041. this.columnCost.AllowDBNull = false;
  2042. this.columnCountProduct.AllowDBNull = false;
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. public ProductRow NewProductRow() {
  2047. return ((ProductRow)(this.NewRow()));
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2051. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2052. return new ProductRow(builder);
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2056. protected override global::System.Type GetRowType() {
  2057. return typeof(ProductRow);
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2061. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2062. base.OnRowChanged(e);
  2063. if ((this.ProductRowChanged != null)) {
  2064. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2069. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2070. base.OnRowChanging(e);
  2071. if ((this.ProductRowChanging != null)) {
  2072. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2073. }
  2074. }
  2075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2077. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2078. base.OnRowDeleted(e);
  2079. if ((this.ProductRowDeleted != null)) {
  2080. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2081. }
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2085. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2086. base.OnRowDeleting(e);
  2087. if ((this.ProductRowDeleting != null)) {
  2088. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2089. }
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2093. public void RemoveProductRow(ProductRow row) {
  2094. this.Rows.Remove(row);
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2098. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2099. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2100. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2101. BookClubKMADataSet ds = new BookClubKMADataSet();
  2102. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2103. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2104. any1.MinOccurs = new decimal(0);
  2105. any1.MaxOccurs = decimal.MaxValue;
  2106. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2107. sequence.Items.Add(any1);
  2108. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2109. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2110. any2.MinOccurs = new decimal(1);
  2111. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2112. sequence.Items.Add(any2);
  2113. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2114. attribute1.Name = "namespace";
  2115. attribute1.FixedValue = ds.Namespace;
  2116. type.Attributes.Add(attribute1);
  2117. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2118. attribute2.Name = "tableTypeName";
  2119. attribute2.FixedValue = "ProductDataTable";
  2120. type.Attributes.Add(attribute2);
  2121. type.Particle = sequence;
  2122. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2123. if (xs.Contains(dsSchema.TargetNamespace)) {
  2124. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2125. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2126. try {
  2127. global::System.Xml.Schema.XmlSchema schema = null;
  2128. dsSchema.Write(s1);
  2129. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2130. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2131. s2.SetLength(0);
  2132. schema.Write(s2);
  2133. if ((s1.Length == s2.Length)) {
  2134. s1.Position = 0;
  2135. s2.Position = 0;
  2136. for (; ((s1.Position != s1.Length)
  2137. && (s1.ReadByte() == s2.ReadByte())); ) {
  2138. ;
  2139. }
  2140. if ((s1.Position == s1.Length)) {
  2141. return type;
  2142. }
  2143. }
  2144. }
  2145. }
  2146. finally {
  2147. if ((s1 != null)) {
  2148. s1.Close();
  2149. }
  2150. if ((s2 != null)) {
  2151. s2.Close();
  2152. }
  2153. }
  2154. }
  2155. xs.Add(dsSchema);
  2156. return type;
  2157. }
  2158. }
  2159. /// <summary>
  2160. ///Represents the strongly named DataTable class.
  2161. ///</summary>
  2162. [global::System.Serializable()]
  2163. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2164. public partial class TypeUserDataTable : global::System.Data.TypedTableBase<TypeUserRow> {
  2165. private global::System.Data.DataColumn columnIdTypeUser;
  2166. private global::System.Data.DataColumn columnNameTypeUser;
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2169. public TypeUserDataTable() {
  2170. this.TableName = "TypeUser";
  2171. this.BeginInit();
  2172. this.InitClass();
  2173. this.EndInit();
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2177. internal TypeUserDataTable(global::System.Data.DataTable table) {
  2178. this.TableName = table.TableName;
  2179. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2180. this.CaseSensitive = table.CaseSensitive;
  2181. }
  2182. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2183. this.Locale = table.Locale;
  2184. }
  2185. if ((table.Namespace != table.DataSet.Namespace)) {
  2186. this.Namespace = table.Namespace;
  2187. }
  2188. this.Prefix = table.Prefix;
  2189. this.MinimumCapacity = table.MinimumCapacity;
  2190. }
  2191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2193. protected TypeUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2194. base(info, context) {
  2195. this.InitVars();
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2199. public global::System.Data.DataColumn IdTypeUserColumn {
  2200. get {
  2201. return this.columnIdTypeUser;
  2202. }
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2206. public global::System.Data.DataColumn NameTypeUserColumn {
  2207. get {
  2208. return this.columnNameTypeUser;
  2209. }
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2213. [global::System.ComponentModel.Browsable(false)]
  2214. public int Count {
  2215. get {
  2216. return this.Rows.Count;
  2217. }
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2221. public TypeUserRow this[int index] {
  2222. get {
  2223. return ((TypeUserRow)(this.Rows[index]));
  2224. }
  2225. }
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2227. public event TypeUserRowChangeEventHandler TypeUserRowChanging;
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2229. public event TypeUserRowChangeEventHandler TypeUserRowChanged;
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2231. public event TypeUserRowChangeEventHandler TypeUserRowDeleting;
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2233. public event TypeUserRowChangeEventHandler TypeUserRowDeleted;
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2236. public void AddTypeUserRow(TypeUserRow row) {
  2237. this.Rows.Add(row);
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2241. public TypeUserRow AddTypeUserRow(string NameTypeUser) {
  2242. TypeUserRow rowTypeUserRow = ((TypeUserRow)(this.NewRow()));
  2243. object[] columnValuesArray = new object[] {
  2244. null,
  2245. NameTypeUser};
  2246. rowTypeUserRow.ItemArray = columnValuesArray;
  2247. this.Rows.Add(rowTypeUserRow);
  2248. return rowTypeUserRow;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2252. public TypeUserRow FindByIdTypeUser(int IdTypeUser) {
  2253. return ((TypeUserRow)(this.Rows.Find(new object[] {
  2254. IdTypeUser})));
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2258. public override global::System.Data.DataTable Clone() {
  2259. TypeUserDataTable cln = ((TypeUserDataTable)(base.Clone()));
  2260. cln.InitVars();
  2261. return cln;
  2262. }
  2263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2265. protected override global::System.Data.DataTable CreateInstance() {
  2266. return new TypeUserDataTable();
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2270. internal void InitVars() {
  2271. this.columnIdTypeUser = base.Columns["IdTypeUser"];
  2272. this.columnNameTypeUser = base.Columns["NameTypeUser"];
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2276. private void InitClass() {
  2277. this.columnIdTypeUser = new global::System.Data.DataColumn("IdTypeUser", typeof(int), null, global::System.Data.MappingType.Element);
  2278. base.Columns.Add(this.columnIdTypeUser);
  2279. this.columnNameTypeUser = new global::System.Data.DataColumn("NameTypeUser", typeof(string), null, global::System.Data.MappingType.Element);
  2280. base.Columns.Add(this.columnNameTypeUser);
  2281. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2282. this.columnIdTypeUser}, true));
  2283. this.columnIdTypeUser.AutoIncrement = true;
  2284. this.columnIdTypeUser.AutoIncrementSeed = 1;
  2285. this.columnIdTypeUser.AllowDBNull = false;
  2286. this.columnIdTypeUser.ReadOnly = true;
  2287. this.columnIdTypeUser.Unique = true;
  2288. this.columnNameTypeUser.AllowDBNull = false;
  2289. this.columnNameTypeUser.MaxLength = 50;
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2293. public TypeUserRow NewTypeUserRow() {
  2294. return ((TypeUserRow)(this.NewRow()));
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2298. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2299. return new TypeUserRow(builder);
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2303. protected override global::System.Type GetRowType() {
  2304. return typeof(TypeUserRow);
  2305. }
  2306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2308. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2309. base.OnRowChanged(e);
  2310. if ((this.TypeUserRowChanged != null)) {
  2311. this.TypeUserRowChanged(this, new TypeUserRowChangeEvent(((TypeUserRow)(e.Row)), e.Action));
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2316. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2317. base.OnRowChanging(e);
  2318. if ((this.TypeUserRowChanging != null)) {
  2319. this.TypeUserRowChanging(this, new TypeUserRowChangeEvent(((TypeUserRow)(e.Row)), e.Action));
  2320. }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2324. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2325. base.OnRowDeleted(e);
  2326. if ((this.TypeUserRowDeleted != null)) {
  2327. this.TypeUserRowDeleted(this, new TypeUserRowChangeEvent(((TypeUserRow)(e.Row)), e.Action));
  2328. }
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2332. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2333. base.OnRowDeleting(e);
  2334. if ((this.TypeUserRowDeleting != null)) {
  2335. this.TypeUserRowDeleting(this, new TypeUserRowChangeEvent(((TypeUserRow)(e.Row)), e.Action));
  2336. }
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2340. public void RemoveTypeUserRow(TypeUserRow row) {
  2341. this.Rows.Remove(row);
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2345. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2346. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2347. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2348. BookClubKMADataSet ds = new BookClubKMADataSet();
  2349. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2350. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2351. any1.MinOccurs = new decimal(0);
  2352. any1.MaxOccurs = decimal.MaxValue;
  2353. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2354. sequence.Items.Add(any1);
  2355. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2356. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2357. any2.MinOccurs = new decimal(1);
  2358. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2359. sequence.Items.Add(any2);
  2360. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2361. attribute1.Name = "namespace";
  2362. attribute1.FixedValue = ds.Namespace;
  2363. type.Attributes.Add(attribute1);
  2364. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2365. attribute2.Name = "tableTypeName";
  2366. attribute2.FixedValue = "TypeUserDataTable";
  2367. type.Attributes.Add(attribute2);
  2368. type.Particle = sequence;
  2369. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2370. if (xs.Contains(dsSchema.TargetNamespace)) {
  2371. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2372. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2373. try {
  2374. global::System.Xml.Schema.XmlSchema schema = null;
  2375. dsSchema.Write(s1);
  2376. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2377. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2378. s2.SetLength(0);
  2379. schema.Write(s2);
  2380. if ((s1.Length == s2.Length)) {
  2381. s1.Position = 0;
  2382. s2.Position = 0;
  2383. for (; ((s1.Position != s1.Length)
  2384. && (s1.ReadByte() == s2.ReadByte())); ) {
  2385. ;
  2386. }
  2387. if ((s1.Position == s1.Length)) {
  2388. return type;
  2389. }
  2390. }
  2391. }
  2392. }
  2393. finally {
  2394. if ((s1 != null)) {
  2395. s1.Close();
  2396. }
  2397. if ((s2 != null)) {
  2398. s2.Close();
  2399. }
  2400. }
  2401. }
  2402. xs.Add(dsSchema);
  2403. return type;
  2404. }
  2405. }
  2406. /// <summary>
  2407. ///Represents the strongly named DataTable class.
  2408. ///</summary>
  2409. [global::System.Serializable()]
  2410. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2411. public partial class UserDataTable : global::System.Data.TypedTableBase<UserRow> {
  2412. private global::System.Data.DataColumn columnIdUser;
  2413. private global::System.Data.DataColumn columnIdTypeUser;
  2414. private global::System.Data.DataColumn columnLogin;
  2415. private global::System.Data.DataColumn columnPassword;
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2418. public UserDataTable() {
  2419. this.TableName = "User";
  2420. this.BeginInit();
  2421. this.InitClass();
  2422. this.EndInit();
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2426. internal UserDataTable(global::System.Data.DataTable table) {
  2427. this.TableName = table.TableName;
  2428. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2429. this.CaseSensitive = table.CaseSensitive;
  2430. }
  2431. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2432. this.Locale = table.Locale;
  2433. }
  2434. if ((table.Namespace != table.DataSet.Namespace)) {
  2435. this.Namespace = table.Namespace;
  2436. }
  2437. this.Prefix = table.Prefix;
  2438. this.MinimumCapacity = table.MinimumCapacity;
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2442. protected UserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2443. base(info, context) {
  2444. this.InitVars();
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2448. public global::System.Data.DataColumn IdUserColumn {
  2449. get {
  2450. return this.columnIdUser;
  2451. }
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2455. public global::System.Data.DataColumn IdTypeUserColumn {
  2456. get {
  2457. return this.columnIdTypeUser;
  2458. }
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2462. public global::System.Data.DataColumn LoginColumn {
  2463. get {
  2464. return this.columnLogin;
  2465. }
  2466. }
  2467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2469. public global::System.Data.DataColumn PasswordColumn {
  2470. get {
  2471. return this.columnPassword;
  2472. }
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2476. [global::System.ComponentModel.Browsable(false)]
  2477. public int Count {
  2478. get {
  2479. return this.Rows.Count;
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2484. public UserRow this[int index] {
  2485. get {
  2486. return ((UserRow)(this.Rows[index]));
  2487. }
  2488. }
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2490. public event UserRowChangeEventHandler UserRowChanging;
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. public event UserRowChangeEventHandler UserRowChanged;
  2493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2494. public event UserRowChangeEventHandler UserRowDeleting;
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2496. public event UserRowChangeEventHandler UserRowDeleted;
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2499. public void AddUserRow(UserRow row) {
  2500. this.Rows.Add(row);
  2501. }
  2502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2504. public UserRow AddUserRow(TypeUserRow parentTypeUserRowByFK_User_TypeUser, string Login, string Password) {
  2505. UserRow rowUserRow = ((UserRow)(this.NewRow()));
  2506. object[] columnValuesArray = new object[] {
  2507. null,
  2508. null,
  2509. Login,
  2510. Password};
  2511. if ((parentTypeUserRowByFK_User_TypeUser != null)) {
  2512. columnValuesArray[1] = parentTypeUserRowByFK_User_TypeUser[0];
  2513. }
  2514. rowUserRow.ItemArray = columnValuesArray;
  2515. this.Rows.Add(rowUserRow);
  2516. return rowUserRow;
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2520. public UserRow FindByIdUser(int IdUser) {
  2521. return ((UserRow)(this.Rows.Find(new object[] {
  2522. IdUser})));
  2523. }
  2524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2526. public override global::System.Data.DataTable Clone() {
  2527. UserDataTable cln = ((UserDataTable)(base.Clone()));
  2528. cln.InitVars();
  2529. return cln;
  2530. }
  2531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2533. protected override global::System.Data.DataTable CreateInstance() {
  2534. return new UserDataTable();
  2535. }
  2536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2538. internal void InitVars() {
  2539. this.columnIdUser = base.Columns["IdUser"];
  2540. this.columnIdTypeUser = base.Columns["IdTypeUser"];
  2541. this.columnLogin = base.Columns["Login"];
  2542. this.columnPassword = base.Columns["Password"];
  2543. }
  2544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2546. private void InitClass() {
  2547. this.columnIdUser = new global::System.Data.DataColumn("IdUser", typeof(int), null, global::System.Data.MappingType.Element);
  2548. base.Columns.Add(this.columnIdUser);
  2549. this.columnIdTypeUser = new global::System.Data.DataColumn("IdTypeUser", typeof(int), null, global::System.Data.MappingType.Element);
  2550. base.Columns.Add(this.columnIdTypeUser);
  2551. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  2552. base.Columns.Add(this.columnLogin);
  2553. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  2554. base.Columns.Add(this.columnPassword);
  2555. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2556. this.columnIdUser}, true));
  2557. this.columnIdUser.AutoIncrement = true;
  2558. this.columnIdUser.AutoIncrementSeed = 1;
  2559. this.columnIdUser.AllowDBNull = false;
  2560. this.columnIdUser.ReadOnly = true;
  2561. this.columnIdUser.Unique = true;
  2562. this.columnIdTypeUser.AllowDBNull = false;
  2563. this.columnLogin.AllowDBNull = false;
  2564. this.columnLogin.MaxLength = 50;
  2565. this.columnPassword.AllowDBNull = false;
  2566. this.columnPassword.MaxLength = 50;
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. public UserRow NewUserRow() {
  2571. return ((UserRow)(this.NewRow()));
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2575. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2576. return new UserRow(builder);
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2580. protected override global::System.Type GetRowType() {
  2581. return typeof(UserRow);
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2585. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2586. base.OnRowChanged(e);
  2587. if ((this.UserRowChanged != null)) {
  2588. this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2589. }
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2593. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2594. base.OnRowChanging(e);
  2595. if ((this.UserRowChanging != null)) {
  2596. this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2597. }
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2601. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2602. base.OnRowDeleted(e);
  2603. if ((this.UserRowDeleted != null)) {
  2604. this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2605. }
  2606. }
  2607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2609. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2610. base.OnRowDeleting(e);
  2611. if ((this.UserRowDeleting != null)) {
  2612. this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2613. }
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2617. public void RemoveUserRow(UserRow row) {
  2618. this.Rows.Remove(row);
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2622. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2623. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2624. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2625. BookClubKMADataSet ds = new BookClubKMADataSet();
  2626. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2627. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2628. any1.MinOccurs = new decimal(0);
  2629. any1.MaxOccurs = decimal.MaxValue;
  2630. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2631. sequence.Items.Add(any1);
  2632. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2633. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2634. any2.MinOccurs = new decimal(1);
  2635. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2636. sequence.Items.Add(any2);
  2637. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2638. attribute1.Name = "namespace";
  2639. attribute1.FixedValue = ds.Namespace;
  2640. type.Attributes.Add(attribute1);
  2641. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2642. attribute2.Name = "tableTypeName";
  2643. attribute2.FixedValue = "UserDataTable";
  2644. type.Attributes.Add(attribute2);
  2645. type.Particle = sequence;
  2646. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2647. if (xs.Contains(dsSchema.TargetNamespace)) {
  2648. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2649. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2650. try {
  2651. global::System.Xml.Schema.XmlSchema schema = null;
  2652. dsSchema.Write(s1);
  2653. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2654. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2655. s2.SetLength(0);
  2656. schema.Write(s2);
  2657. if ((s1.Length == s2.Length)) {
  2658. s1.Position = 0;
  2659. s2.Position = 0;
  2660. for (; ((s1.Position != s1.Length)
  2661. && (s1.ReadByte() == s2.ReadByte())); ) {
  2662. ;
  2663. }
  2664. if ((s1.Position == s1.Length)) {
  2665. return type;
  2666. }
  2667. }
  2668. }
  2669. }
  2670. finally {
  2671. if ((s1 != null)) {
  2672. s1.Close();
  2673. }
  2674. if ((s2 != null)) {
  2675. s2.Close();
  2676. }
  2677. }
  2678. }
  2679. xs.Add(dsSchema);
  2680. return type;
  2681. }
  2682. }
  2683. /// <summary>
  2684. ///Represents strongly named DataRow class.
  2685. ///</summary>
  2686. public partial class ManufacturerRow : global::System.Data.DataRow {
  2687. private ManufacturerDataTable tableManufacturer;
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2690. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  2691. base(rb) {
  2692. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2696. public int IdManufacturer {
  2697. get {
  2698. return ((int)(this[this.tableManufacturer.IdManufacturerColumn]));
  2699. }
  2700. set {
  2701. this[this.tableManufacturer.IdManufacturerColumn] = value;
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2706. public string NameManufacturer {
  2707. get {
  2708. return ((string)(this[this.tableManufacturer.NameManufacturerColumn]));
  2709. }
  2710. set {
  2711. this[this.tableManufacturer.NameManufacturerColumn] = value;
  2712. }
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2716. public ProductRow[] GetProductRows() {
  2717. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  2718. return new ProductRow[0];
  2719. }
  2720. else {
  2721. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  2722. }
  2723. }
  2724. }
  2725. /// <summary>
  2726. ///Represents strongly named DataRow class.
  2727. ///</summary>
  2728. public partial class OrderRow : global::System.Data.DataRow {
  2729. private OrderDataTable tableOrder;
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2732. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  2733. base(rb) {
  2734. this.tableOrder = ((OrderDataTable)(this.Table));
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2738. public int IdOrder {
  2739. get {
  2740. return ((int)(this[this.tableOrder.IdOrderColumn]));
  2741. }
  2742. set {
  2743. this[this.tableOrder.IdOrderColumn] = value;
  2744. }
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2748. public int IdUser {
  2749. get {
  2750. return ((int)(this[this.tableOrder.IdUserColumn]));
  2751. }
  2752. set {
  2753. this[this.tableOrder.IdUserColumn] = value;
  2754. }
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2758. public int IdPickupPoint {
  2759. get {
  2760. return ((int)(this[this.tableOrder.IdPickupPointColumn]));
  2761. }
  2762. set {
  2763. this[this.tableOrder.IdPickupPointColumn] = value;
  2764. }
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2768. public System.DateTime DateOrder {
  2769. get {
  2770. try {
  2771. return ((global::System.DateTime)(this[this.tableOrder.DateOrderColumn]));
  2772. }
  2773. catch (global::System.InvalidCastException e) {
  2774. throw new global::System.Data.StrongTypingException("The value for column \'DateOrder\' in table \'Order\' is DBNull.", e);
  2775. }
  2776. }
  2777. set {
  2778. this[this.tableOrder.DateOrderColumn] = value;
  2779. }
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2783. public int Code {
  2784. get {
  2785. try {
  2786. return ((int)(this[this.tableOrder.CodeColumn]));
  2787. }
  2788. catch (global::System.InvalidCastException e) {
  2789. throw new global::System.Data.StrongTypingException("The value for column \'Code\' in table \'Order\' is DBNull.", e);
  2790. }
  2791. }
  2792. set {
  2793. this[this.tableOrder.CodeColumn] = value;
  2794. }
  2795. }
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2798. public int IdOrderStatus {
  2799. get {
  2800. return ((int)(this[this.tableOrder.IdOrderStatusColumn]));
  2801. }
  2802. set {
  2803. this[this.tableOrder.IdOrderStatusColumn] = value;
  2804. }
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2808. public OrderStatusRow OrderStatusRow {
  2809. get {
  2810. return ((OrderStatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_OrderStatus"])));
  2811. }
  2812. set {
  2813. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_OrderStatus"]);
  2814. }
  2815. }
  2816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2818. public PickupPointRow PickupPointRow {
  2819. get {
  2820. return ((PickupPointRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_PickupPoint"])));
  2821. }
  2822. set {
  2823. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_PickupPoint"]);
  2824. }
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2828. public UserRow UserRow {
  2829. get {
  2830. return ((UserRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_User"])));
  2831. }
  2832. set {
  2833. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_User"]);
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2838. public bool IsDateOrderNull() {
  2839. return this.IsNull(this.tableOrder.DateOrderColumn);
  2840. }
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2843. public void SetDateOrderNull() {
  2844. this[this.tableOrder.DateOrderColumn] = global::System.Convert.DBNull;
  2845. }
  2846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2848. public bool IsCodeNull() {
  2849. return this.IsNull(this.tableOrder.CodeColumn);
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2853. public void SetCodeNull() {
  2854. this[this.tableOrder.CodeColumn] = global::System.Convert.DBNull;
  2855. }
  2856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2858. public OrderProductRow[] GetOrderProductRows() {
  2859. if ((this.Table.ChildRelations["FK_OrderProduct_Order"] == null)) {
  2860. return new OrderProductRow[0];
  2861. }
  2862. else {
  2863. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrderProduct_Order"])));
  2864. }
  2865. }
  2866. }
  2867. /// <summary>
  2868. ///Represents strongly named DataRow class.
  2869. ///</summary>
  2870. public partial class OrderProductRow : global::System.Data.DataRow {
  2871. private OrderProductDataTable tableOrderProduct;
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2874. internal OrderProductRow(global::System.Data.DataRowBuilder rb) :
  2875. base(rb) {
  2876. this.tableOrderProduct = ((OrderProductDataTable)(this.Table));
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2880. public int IdOrderProduct {
  2881. get {
  2882. return ((int)(this[this.tableOrderProduct.IdOrderProductColumn]));
  2883. }
  2884. set {
  2885. this[this.tableOrderProduct.IdOrderProductColumn] = value;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2890. public int IdOrder {
  2891. get {
  2892. return ((int)(this[this.tableOrderProduct.IdOrderColumn]));
  2893. }
  2894. set {
  2895. this[this.tableOrderProduct.IdOrderColumn] = value;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2900. public int IdProduct {
  2901. get {
  2902. return ((int)(this[this.tableOrderProduct.IdProductColumn]));
  2903. }
  2904. set {
  2905. this[this.tableOrderProduct.IdProductColumn] = value;
  2906. }
  2907. }
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2910. public int CountProduct {
  2911. get {
  2912. return ((int)(this[this.tableOrderProduct.CountProductColumn]));
  2913. }
  2914. set {
  2915. this[this.tableOrderProduct.CountProductColumn] = value;
  2916. }
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2920. public OrderRow OrderRow {
  2921. get {
  2922. return ((OrderRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrderProduct_Order"])));
  2923. }
  2924. set {
  2925. this.SetParentRow(value, this.Table.ParentRelations["FK_OrderProduct_Order"]);
  2926. }
  2927. }
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2930. public ProductRow ProductRow {
  2931. get {
  2932. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrderProduct_Product"])));
  2933. }
  2934. set {
  2935. this.SetParentRow(value, this.Table.ParentRelations["FK_OrderProduct_Product"]);
  2936. }
  2937. }
  2938. }
  2939. /// <summary>
  2940. ///Represents strongly named DataRow class.
  2941. ///</summary>
  2942. public partial class OrderStatusRow : global::System.Data.DataRow {
  2943. private OrderStatusDataTable tableOrderStatus;
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2946. internal OrderStatusRow(global::System.Data.DataRowBuilder rb) :
  2947. base(rb) {
  2948. this.tableOrderStatus = ((OrderStatusDataTable)(this.Table));
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2952. public int IdOrderStatus {
  2953. get {
  2954. return ((int)(this[this.tableOrderStatus.IdOrderStatusColumn]));
  2955. }
  2956. set {
  2957. this[this.tableOrderStatus.IdOrderStatusColumn] = value;
  2958. }
  2959. }
  2960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2962. public string NameOrderStatus {
  2963. get {
  2964. return ((string)(this[this.tableOrderStatus.NameOrderStatusColumn]));
  2965. }
  2966. set {
  2967. this[this.tableOrderStatus.NameOrderStatusColumn] = value;
  2968. }
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2972. public OrderRow[] GetOrderRows() {
  2973. if ((this.Table.ChildRelations["FK_Order_OrderStatus"] == null)) {
  2974. return new OrderRow[0];
  2975. }
  2976. else {
  2977. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_OrderStatus"])));
  2978. }
  2979. }
  2980. }
  2981. /// <summary>
  2982. ///Represents strongly named DataRow class.
  2983. ///</summary>
  2984. public partial class PickupPointRow : global::System.Data.DataRow {
  2985. private PickupPointDataTable tablePickupPoint;
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2988. internal PickupPointRow(global::System.Data.DataRowBuilder rb) :
  2989. base(rb) {
  2990. this.tablePickupPoint = ((PickupPointDataTable)(this.Table));
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2994. public int IdPickupPoint {
  2995. get {
  2996. return ((int)(this[this.tablePickupPoint.IdPickupPointColumn]));
  2997. }
  2998. set {
  2999. this[this.tablePickupPoint.IdPickupPointColumn] = value;
  3000. }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3004. public string AddressPickupPoint {
  3005. get {
  3006. return ((string)(this[this.tablePickupPoint.AddressPickupPointColumn]));
  3007. }
  3008. set {
  3009. this[this.tablePickupPoint.AddressPickupPointColumn] = value;
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3014. public OrderRow[] GetOrderRows() {
  3015. if ((this.Table.ChildRelations["FK_Order_PickupPoint"] == null)) {
  3016. return new OrderRow[0];
  3017. }
  3018. else {
  3019. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_PickupPoint"])));
  3020. }
  3021. }
  3022. }
  3023. /// <summary>
  3024. ///Represents strongly named DataRow class.
  3025. ///</summary>
  3026. public partial class ProductRow : global::System.Data.DataRow {
  3027. private ProductDataTable tableProduct;
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3030. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  3031. base(rb) {
  3032. this.tableProduct = ((ProductDataTable)(this.Table));
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3036. public int IdProduct {
  3037. get {
  3038. return ((int)(this[this.tableProduct.IdProductColumn]));
  3039. }
  3040. set {
  3041. this[this.tableProduct.IdProductColumn] = value;
  3042. }
  3043. }
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3046. public string NameProduct {
  3047. get {
  3048. return ((string)(this[this.tableProduct.NameProductColumn]));
  3049. }
  3050. set {
  3051. this[this.tableProduct.NameProductColumn] = value;
  3052. }
  3053. }
  3054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3056. public int IdManufacturer {
  3057. get {
  3058. return ((int)(this[this.tableProduct.IdManufacturerColumn]));
  3059. }
  3060. set {
  3061. this[this.tableProduct.IdManufacturerColumn] = value;
  3062. }
  3063. }
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3066. public string Description {
  3067. get {
  3068. try {
  3069. return ((string)(this[this.tableProduct.DescriptionColumn]));
  3070. }
  3071. catch (global::System.InvalidCastException e) {
  3072. throw new global::System.Data.StrongTypingException("The value for column \'Description\' in table \'Product\' is DBNull.", e);
  3073. }
  3074. }
  3075. set {
  3076. this[this.tableProduct.DescriptionColumn] = value;
  3077. }
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3081. public string Photo {
  3082. get {
  3083. try {
  3084. return ((string)(this[this.tableProduct.PhotoColumn]));
  3085. }
  3086. catch (global::System.InvalidCastException e) {
  3087. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Product\' is DBNull.", e);
  3088. }
  3089. }
  3090. set {
  3091. this[this.tableProduct.PhotoColumn] = value;
  3092. }
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3096. public decimal Cost {
  3097. get {
  3098. return ((decimal)(this[this.tableProduct.CostColumn]));
  3099. }
  3100. set {
  3101. this[this.tableProduct.CostColumn] = value;
  3102. }
  3103. }
  3104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3106. public double Discount {
  3107. get {
  3108. try {
  3109. return ((double)(this[this.tableProduct.DiscountColumn]));
  3110. }
  3111. catch (global::System.InvalidCastException e) {
  3112. throw new global::System.Data.StrongTypingException("The value for column \'Discount\' in table \'Product\' is DBNull.", e);
  3113. }
  3114. }
  3115. set {
  3116. this[this.tableProduct.DiscountColumn] = value;
  3117. }
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3121. public int CountProduct {
  3122. get {
  3123. return ((int)(this[this.tableProduct.CountProductColumn]));
  3124. }
  3125. set {
  3126. this[this.tableProduct.CountProductColumn] = value;
  3127. }
  3128. }
  3129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3131. public ManufacturerRow ManufacturerRow {
  3132. get {
  3133. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  3134. }
  3135. set {
  3136. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  3137. }
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3141. public bool IsDescriptionNull() {
  3142. return this.IsNull(this.tableProduct.DescriptionColumn);
  3143. }
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3146. public void SetDescriptionNull() {
  3147. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3151. public bool IsPhotoNull() {
  3152. return this.IsNull(this.tableProduct.PhotoColumn);
  3153. }
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3156. public void SetPhotoNull() {
  3157. this[this.tableProduct.PhotoColumn] = global::System.Convert.DBNull;
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3161. public bool IsDiscountNull() {
  3162. return this.IsNull(this.tableProduct.DiscountColumn);
  3163. }
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3166. public void SetDiscountNull() {
  3167. this[this.tableProduct.DiscountColumn] = global::System.Convert.DBNull;
  3168. }
  3169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3171. public OrderProductRow[] GetOrderProductRows() {
  3172. if ((this.Table.ChildRelations["FK_OrderProduct_Product"] == null)) {
  3173. return new OrderProductRow[0];
  3174. }
  3175. else {
  3176. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrderProduct_Product"])));
  3177. }
  3178. }
  3179. }
  3180. /// <summary>
  3181. ///Represents strongly named DataRow class.
  3182. ///</summary>
  3183. public partial class TypeUserRow : global::System.Data.DataRow {
  3184. private TypeUserDataTable tableTypeUser;
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3187. internal TypeUserRow(global::System.Data.DataRowBuilder rb) :
  3188. base(rb) {
  3189. this.tableTypeUser = ((TypeUserDataTable)(this.Table));
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3193. public int IdTypeUser {
  3194. get {
  3195. return ((int)(this[this.tableTypeUser.IdTypeUserColumn]));
  3196. }
  3197. set {
  3198. this[this.tableTypeUser.IdTypeUserColumn] = value;
  3199. }
  3200. }
  3201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3203. public string NameTypeUser {
  3204. get {
  3205. return ((string)(this[this.tableTypeUser.NameTypeUserColumn]));
  3206. }
  3207. set {
  3208. this[this.tableTypeUser.NameTypeUserColumn] = value;
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3213. public UserRow[] GetUserRows() {
  3214. if ((this.Table.ChildRelations["FK_User_TypeUser"] == null)) {
  3215. return new UserRow[0];
  3216. }
  3217. else {
  3218. return ((UserRow[])(base.GetChildRows(this.Table.ChildRelations["FK_User_TypeUser"])));
  3219. }
  3220. }
  3221. }
  3222. /// <summary>
  3223. ///Represents strongly named DataRow class.
  3224. ///</summary>
  3225. public partial class UserRow : global::System.Data.DataRow {
  3226. private UserDataTable tableUser;
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3229. internal UserRow(global::System.Data.DataRowBuilder rb) :
  3230. base(rb) {
  3231. this.tableUser = ((UserDataTable)(this.Table));
  3232. }
  3233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3235. public int IdUser {
  3236. get {
  3237. return ((int)(this[this.tableUser.IdUserColumn]));
  3238. }
  3239. set {
  3240. this[this.tableUser.IdUserColumn] = value;
  3241. }
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3245. public int IdTypeUser {
  3246. get {
  3247. return ((int)(this[this.tableUser.IdTypeUserColumn]));
  3248. }
  3249. set {
  3250. this[this.tableUser.IdTypeUserColumn] = value;
  3251. }
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3255. public string Login {
  3256. get {
  3257. return ((string)(this[this.tableUser.LoginColumn]));
  3258. }
  3259. set {
  3260. this[this.tableUser.LoginColumn] = value;
  3261. }
  3262. }
  3263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3265. public string Password {
  3266. get {
  3267. return ((string)(this[this.tableUser.PasswordColumn]));
  3268. }
  3269. set {
  3270. this[this.tableUser.PasswordColumn] = value;
  3271. }
  3272. }
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3275. public TypeUserRow TypeUserRow {
  3276. get {
  3277. return ((TypeUserRow)(this.GetParentRow(this.Table.ParentRelations["FK_User_TypeUser"])));
  3278. }
  3279. set {
  3280. this.SetParentRow(value, this.Table.ParentRelations["FK_User_TypeUser"]);
  3281. }
  3282. }
  3283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3285. public OrderRow[] GetOrderRows() {
  3286. if ((this.Table.ChildRelations["FK_Order_User"] == null)) {
  3287. return new OrderRow[0];
  3288. }
  3289. else {
  3290. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_User"])));
  3291. }
  3292. }
  3293. }
  3294. /// <summary>
  3295. ///Row event argument class
  3296. ///</summary>
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3298. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  3299. private ManufacturerRow eventRow;
  3300. private global::System.Data.DataRowAction eventAction;
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3303. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  3304. this.eventRow = row;
  3305. this.eventAction = action;
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3309. public ManufacturerRow Row {
  3310. get {
  3311. return this.eventRow;
  3312. }
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3316. public global::System.Data.DataRowAction Action {
  3317. get {
  3318. return this.eventAction;
  3319. }
  3320. }
  3321. }
  3322. /// <summary>
  3323. ///Row event argument class
  3324. ///</summary>
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3326. public class OrderRowChangeEvent : global::System.EventArgs {
  3327. private OrderRow eventRow;
  3328. private global::System.Data.DataRowAction eventAction;
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3331. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  3332. this.eventRow = row;
  3333. this.eventAction = action;
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3337. public OrderRow Row {
  3338. get {
  3339. return this.eventRow;
  3340. }
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3344. public global::System.Data.DataRowAction Action {
  3345. get {
  3346. return this.eventAction;
  3347. }
  3348. }
  3349. }
  3350. /// <summary>
  3351. ///Row event argument class
  3352. ///</summary>
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3354. public class OrderProductRowChangeEvent : global::System.EventArgs {
  3355. private OrderProductRow eventRow;
  3356. private global::System.Data.DataRowAction eventAction;
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3359. public OrderProductRowChangeEvent(OrderProductRow row, global::System.Data.DataRowAction action) {
  3360. this.eventRow = row;
  3361. this.eventAction = action;
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3365. public OrderProductRow Row {
  3366. get {
  3367. return this.eventRow;
  3368. }
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3372. public global::System.Data.DataRowAction Action {
  3373. get {
  3374. return this.eventAction;
  3375. }
  3376. }
  3377. }
  3378. /// <summary>
  3379. ///Row event argument class
  3380. ///</summary>
  3381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3382. public class OrderStatusRowChangeEvent : global::System.EventArgs {
  3383. private OrderStatusRow eventRow;
  3384. private global::System.Data.DataRowAction eventAction;
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3387. public OrderStatusRowChangeEvent(OrderStatusRow row, global::System.Data.DataRowAction action) {
  3388. this.eventRow = row;
  3389. this.eventAction = action;
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3393. public OrderStatusRow Row {
  3394. get {
  3395. return this.eventRow;
  3396. }
  3397. }
  3398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3400. public global::System.Data.DataRowAction Action {
  3401. get {
  3402. return this.eventAction;
  3403. }
  3404. }
  3405. }
  3406. /// <summary>
  3407. ///Row event argument class
  3408. ///</summary>
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3410. public class PickupPointRowChangeEvent : global::System.EventArgs {
  3411. private PickupPointRow eventRow;
  3412. private global::System.Data.DataRowAction eventAction;
  3413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3415. public PickupPointRowChangeEvent(PickupPointRow row, global::System.Data.DataRowAction action) {
  3416. this.eventRow = row;
  3417. this.eventAction = action;
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. public PickupPointRow Row {
  3422. get {
  3423. return this.eventRow;
  3424. }
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3428. public global::System.Data.DataRowAction Action {
  3429. get {
  3430. return this.eventAction;
  3431. }
  3432. }
  3433. }
  3434. /// <summary>
  3435. ///Row event argument class
  3436. ///</summary>
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3438. public class ProductRowChangeEvent : global::System.EventArgs {
  3439. private ProductRow eventRow;
  3440. private global::System.Data.DataRowAction eventAction;
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3443. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  3444. this.eventRow = row;
  3445. this.eventAction = action;
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3449. public ProductRow Row {
  3450. get {
  3451. return this.eventRow;
  3452. }
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3456. public global::System.Data.DataRowAction Action {
  3457. get {
  3458. return this.eventAction;
  3459. }
  3460. }
  3461. }
  3462. /// <summary>
  3463. ///Row event argument class
  3464. ///</summary>
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3466. public class TypeUserRowChangeEvent : global::System.EventArgs {
  3467. private TypeUserRow eventRow;
  3468. private global::System.Data.DataRowAction eventAction;
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public TypeUserRowChangeEvent(TypeUserRow row, global::System.Data.DataRowAction action) {
  3472. this.eventRow = row;
  3473. this.eventAction = action;
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3477. public TypeUserRow Row {
  3478. get {
  3479. return this.eventRow;
  3480. }
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3484. public global::System.Data.DataRowAction Action {
  3485. get {
  3486. return this.eventAction;
  3487. }
  3488. }
  3489. }
  3490. /// <summary>
  3491. ///Row event argument class
  3492. ///</summary>
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3494. public class UserRowChangeEvent : global::System.EventArgs {
  3495. private UserRow eventRow;
  3496. private global::System.Data.DataRowAction eventAction;
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3499. public UserRowChangeEvent(UserRow row, global::System.Data.DataRowAction action) {
  3500. this.eventRow = row;
  3501. this.eventAction = action;
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3505. public UserRow Row {
  3506. get {
  3507. return this.eventRow;
  3508. }
  3509. }
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3512. public global::System.Data.DataRowAction Action {
  3513. get {
  3514. return this.eventAction;
  3515. }
  3516. }
  3517. }
  3518. }
  3519. }
  3520. namespace СУБД_Книжный_клуб.BookClubKMADataSetTableAdapters {
  3521. /// <summary>
  3522. ///Represents the connection and commands used to retrieve and save data.
  3523. ///</summary>
  3524. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3525. [global::System.ComponentModel.ToolboxItem(true)]
  3526. [global::System.ComponentModel.DataObjectAttribute(true)]
  3527. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3528. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3530. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  3531. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3532. private global::System.Data.SqlClient.SqlConnection _connection;
  3533. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3534. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3535. private bool _clearBeforeFill;
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3538. public ManufacturerTableAdapter() {
  3539. this.ClearBeforeFill = true;
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3543. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3544. get {
  3545. if ((this._adapter == null)) {
  3546. this.InitAdapter();
  3547. }
  3548. return this._adapter;
  3549. }
  3550. }
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3553. internal global::System.Data.SqlClient.SqlConnection Connection {
  3554. get {
  3555. if ((this._connection == null)) {
  3556. this.InitConnection();
  3557. }
  3558. return this._connection;
  3559. }
  3560. set {
  3561. this._connection = value;
  3562. if ((this.Adapter.InsertCommand != null)) {
  3563. this.Adapter.InsertCommand.Connection = value;
  3564. }
  3565. if ((this.Adapter.DeleteCommand != null)) {
  3566. this.Adapter.DeleteCommand.Connection = value;
  3567. }
  3568. if ((this.Adapter.UpdateCommand != null)) {
  3569. this.Adapter.UpdateCommand.Connection = value;
  3570. }
  3571. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3572. if ((this.CommandCollection[i] != null)) {
  3573. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3574. }
  3575. }
  3576. }
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3580. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3581. get {
  3582. return this._transaction;
  3583. }
  3584. set {
  3585. this._transaction = value;
  3586. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3587. this.CommandCollection[i].Transaction = this._transaction;
  3588. }
  3589. if (((this.Adapter != null)
  3590. && (this.Adapter.DeleteCommand != null))) {
  3591. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3592. }
  3593. if (((this.Adapter != null)
  3594. && (this.Adapter.InsertCommand != null))) {
  3595. this.Adapter.InsertCommand.Transaction = this._transaction;
  3596. }
  3597. if (((this.Adapter != null)
  3598. && (this.Adapter.UpdateCommand != null))) {
  3599. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3600. }
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3605. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3606. get {
  3607. if ((this._commandCollection == null)) {
  3608. this.InitCommandCollection();
  3609. }
  3610. return this._commandCollection;
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3615. public bool ClearBeforeFill {
  3616. get {
  3617. return this._clearBeforeFill;
  3618. }
  3619. set {
  3620. this._clearBeforeFill = value;
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3625. private void InitAdapter() {
  3626. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3627. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3628. tableMapping.SourceTable = "Table";
  3629. tableMapping.DataSetTable = "Manufacturer";
  3630. tableMapping.ColumnMappings.Add("IdManufacturer", "IdManufacturer");
  3631. tableMapping.ColumnMappings.Add("NameManufacturer", "NameManufacturer");
  3632. this._adapter.TableMappings.Add(tableMapping);
  3633. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3634. this._adapter.DeleteCommand.Connection = this.Connection;
  3635. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([IdManufacturer] = @Original_IdManufactu" +
  3636. "rer) AND ([NameManufacturer] = @Original_NameManufacturer))";
  3637. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3638. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3639. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3640. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3641. this._adapter.InsertCommand.Connection = this.Connection;
  3642. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([NameManufacturer]) VALUES (@NameManufacturer);" +
  3643. "\r\nSELECT IdManufacturer, NameManufacturer FROM Manufacturer WHERE (IdManufacture" +
  3644. "r = SCOPE_IDENTITY())";
  3645. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3646. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3647. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3648. this._adapter.UpdateCommand.Connection = this.Connection;
  3649. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [NameManufacturer] = @NameManufacturer WHERE (([IdManufacturer] = @Original_IdManufacturer) AND ([NameManufacturer] = @Original_NameManufacturer));
  3650. SELECT IdManufacturer, NameManufacturer FROM Manufacturer WHERE (IdManufacturer = @IdManufacturer)";
  3651. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3652. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3653. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3654. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3655. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManufacturer", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3659. private void InitConnection() {
  3660. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3661. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3665. private void InitCommandCollection() {
  3666. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3667. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3668. this._commandCollection[0].Connection = this.Connection;
  3669. this._commandCollection[0].CommandText = "SELECT IdManufacturer, NameManufacturer FROM dbo.Manufacturer";
  3670. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3671. }
  3672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3675. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3676. public virtual int Fill(BookClubKMADataSet.ManufacturerDataTable dataTable) {
  3677. this.Adapter.SelectCommand = this.CommandCollection[0];
  3678. if ((this.ClearBeforeFill == true)) {
  3679. dataTable.Clear();
  3680. }
  3681. int returnValue = this.Adapter.Fill(dataTable);
  3682. return returnValue;
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3687. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3688. public virtual BookClubKMADataSet.ManufacturerDataTable GetData() {
  3689. this.Adapter.SelectCommand = this.CommandCollection[0];
  3690. BookClubKMADataSet.ManufacturerDataTable dataTable = new BookClubKMADataSet.ManufacturerDataTable();
  3691. this.Adapter.Fill(dataTable);
  3692. return dataTable;
  3693. }
  3694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3697. public virtual int Update(BookClubKMADataSet.ManufacturerDataTable dataTable) {
  3698. return this.Adapter.Update(dataTable);
  3699. }
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3703. public virtual int Update(BookClubKMADataSet dataSet) {
  3704. return this.Adapter.Update(dataSet, "Manufacturer");
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3709. public virtual int Update(global::System.Data.DataRow dataRow) {
  3710. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3711. dataRow});
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3716. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3717. return this.Adapter.Update(dataRows);
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3722. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3723. public virtual int Delete(int Original_IdManufacturer, string Original_NameManufacturer) {
  3724. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdManufacturer));
  3725. if ((Original_NameManufacturer == null)) {
  3726. throw new global::System.ArgumentNullException("Original_NameManufacturer");
  3727. }
  3728. else {
  3729. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_NameManufacturer));
  3730. }
  3731. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3732. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3733. != global::System.Data.ConnectionState.Open)) {
  3734. this.Adapter.DeleteCommand.Connection.Open();
  3735. }
  3736. try {
  3737. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3738. return returnValue;
  3739. }
  3740. finally {
  3741. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3742. this.Adapter.DeleteCommand.Connection.Close();
  3743. }
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3749. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3750. public virtual int Insert(string NameManufacturer) {
  3751. if ((NameManufacturer == null)) {
  3752. throw new global::System.ArgumentNullException("NameManufacturer");
  3753. }
  3754. else {
  3755. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(NameManufacturer));
  3756. }
  3757. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3758. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3759. != global::System.Data.ConnectionState.Open)) {
  3760. this.Adapter.InsertCommand.Connection.Open();
  3761. }
  3762. try {
  3763. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3764. return returnValue;
  3765. }
  3766. finally {
  3767. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3768. this.Adapter.InsertCommand.Connection.Close();
  3769. }
  3770. }
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3775. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3776. public virtual int Update(string NameManufacturer, int Original_IdManufacturer, string Original_NameManufacturer, int IdManufacturer) {
  3777. if ((NameManufacturer == null)) {
  3778. throw new global::System.ArgumentNullException("NameManufacturer");
  3779. }
  3780. else {
  3781. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(NameManufacturer));
  3782. }
  3783. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdManufacturer));
  3784. if ((Original_NameManufacturer == null)) {
  3785. throw new global::System.ArgumentNullException("Original_NameManufacturer");
  3786. }
  3787. else {
  3788. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_NameManufacturer));
  3789. }
  3790. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdManufacturer));
  3791. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3792. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3793. != global::System.Data.ConnectionState.Open)) {
  3794. this.Adapter.UpdateCommand.Connection.Open();
  3795. }
  3796. try {
  3797. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3798. return returnValue;
  3799. }
  3800. finally {
  3801. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3802. this.Adapter.UpdateCommand.Connection.Close();
  3803. }
  3804. }
  3805. }
  3806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3809. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3810. public virtual int Update(string NameManufacturer, int Original_IdManufacturer, string Original_NameManufacturer) {
  3811. return this.Update(NameManufacturer, Original_IdManufacturer, Original_NameManufacturer, Original_IdManufacturer);
  3812. }
  3813. }
  3814. /// <summary>
  3815. ///Represents the connection and commands used to retrieve and save data.
  3816. ///</summary>
  3817. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3818. [global::System.ComponentModel.ToolboxItem(true)]
  3819. [global::System.ComponentModel.DataObjectAttribute(true)]
  3820. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3821. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3823. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  3824. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3825. private global::System.Data.SqlClient.SqlConnection _connection;
  3826. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3827. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3828. private bool _clearBeforeFill;
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3831. public OrderTableAdapter() {
  3832. this.ClearBeforeFill = true;
  3833. }
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3836. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3837. get {
  3838. if ((this._adapter == null)) {
  3839. this.InitAdapter();
  3840. }
  3841. return this._adapter;
  3842. }
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3846. internal global::System.Data.SqlClient.SqlConnection Connection {
  3847. get {
  3848. if ((this._connection == null)) {
  3849. this.InitConnection();
  3850. }
  3851. return this._connection;
  3852. }
  3853. set {
  3854. this._connection = value;
  3855. if ((this.Adapter.InsertCommand != null)) {
  3856. this.Adapter.InsertCommand.Connection = value;
  3857. }
  3858. if ((this.Adapter.DeleteCommand != null)) {
  3859. this.Adapter.DeleteCommand.Connection = value;
  3860. }
  3861. if ((this.Adapter.UpdateCommand != null)) {
  3862. this.Adapter.UpdateCommand.Connection = value;
  3863. }
  3864. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3865. if ((this.CommandCollection[i] != null)) {
  3866. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3867. }
  3868. }
  3869. }
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3873. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3874. get {
  3875. return this._transaction;
  3876. }
  3877. set {
  3878. this._transaction = value;
  3879. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3880. this.CommandCollection[i].Transaction = this._transaction;
  3881. }
  3882. if (((this.Adapter != null)
  3883. && (this.Adapter.DeleteCommand != null))) {
  3884. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3885. }
  3886. if (((this.Adapter != null)
  3887. && (this.Adapter.InsertCommand != null))) {
  3888. this.Adapter.InsertCommand.Transaction = this._transaction;
  3889. }
  3890. if (((this.Adapter != null)
  3891. && (this.Adapter.UpdateCommand != null))) {
  3892. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3893. }
  3894. }
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3898. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3899. get {
  3900. if ((this._commandCollection == null)) {
  3901. this.InitCommandCollection();
  3902. }
  3903. return this._commandCollection;
  3904. }
  3905. }
  3906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3908. public bool ClearBeforeFill {
  3909. get {
  3910. return this._clearBeforeFill;
  3911. }
  3912. set {
  3913. this._clearBeforeFill = value;
  3914. }
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3918. private void InitAdapter() {
  3919. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3920. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3921. tableMapping.SourceTable = "Table";
  3922. tableMapping.DataSetTable = "Order";
  3923. tableMapping.ColumnMappings.Add("IdOrder", "IdOrder");
  3924. tableMapping.ColumnMappings.Add("IdUser", "IdUser");
  3925. tableMapping.ColumnMappings.Add("IdPickupPoint", "IdPickupPoint");
  3926. tableMapping.ColumnMappings.Add("DateOrder", "DateOrder");
  3927. tableMapping.ColumnMappings.Add("Code", "Code");
  3928. tableMapping.ColumnMappings.Add("IdOrderStatus", "IdOrderStatus");
  3929. this._adapter.TableMappings.Add(tableMapping);
  3930. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3931. this._adapter.DeleteCommand.Connection = this.Connection;
  3932. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Order] WHERE (([IdOrder] = @Original_IdOrder) AND ([IdUser] = @Original_IdUser) AND ([IdPickupPoint] = @Original_IdPickupPoint) AND ((@IsNull_DateOrder = 1 AND [DateOrder] IS NULL) OR ([DateOrder] = @Original_DateOrder)) AND ((@IsNull_Code = 1 AND [Code] IS NULL) OR ([Code] = @Original_Code)) AND ([IdOrderStatus] = @Original_IdOrderStatus))";
  3933. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3934. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3935. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3936. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3937. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3938. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateOrder", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3939. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3940. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3941. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3942. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3943. this._adapter.InsertCommand.Connection = this.Connection;
  3944. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([IdUser], [IdPickupPoint], [DateOrder], [Code], [IdOrderStatus]) VALUES (@IdUser, @IdPickupPoint, @DateOrder, @Code, @IdOrderStatus);
  3945. SELECT IdOrder, IdUser, IdPickupPoint, DateOrder, Code, IdOrderStatus FROM [Order] WHERE (IdOrder = SCOPE_IDENTITY())";
  3946. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3947. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3948. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3949. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateOrder", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3950. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3951. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3952. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3953. this._adapter.UpdateCommand.Connection = this.Connection;
  3954. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [IdUser] = @IdUser, [IdPickupPoint] = @IdPickupPoint, [DateOrder] = @DateOrder, [Code] = @Code, [IdOrderStatus] = @IdOrderStatus WHERE (([IdOrder] = @Original_IdOrder) AND ([IdUser] = @Original_IdUser) AND ([IdPickupPoint] = @Original_IdPickupPoint) AND ((@IsNull_DateOrder = 1 AND [DateOrder] IS NULL) OR ([DateOrder] = @Original_DateOrder)) AND ((@IsNull_Code = 1 AND [Code] IS NULL) OR ([Code] = @Original_Code)) AND ([IdOrderStatus] = @Original_IdOrderStatus));
  3955. SELECT IdOrder, IdUser, IdPickupPoint, DateOrder, Code, IdOrderStatus FROM [Order] WHERE (IdOrder = @IdOrder)";
  3956. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3957. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3958. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3959. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateOrder", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3960. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3961. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3962. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3963. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3964. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3965. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3966. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateOrder", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3970. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrder", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3974. private void InitConnection() {
  3975. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3976. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  3977. }
  3978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3980. private void InitCommandCollection() {
  3981. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3982. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3983. this._commandCollection[0].Connection = this.Connection;
  3984. this._commandCollection[0].CommandText = "SELECT IdOrder, IdUser, IdPickupPoint, DateOrder, Code, IdOrderStatus FROM dbo.[O" +
  3985. "rder]";
  3986. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3987. }
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3990. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3991. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3992. public virtual int Fill(BookClubKMADataSet.OrderDataTable dataTable) {
  3993. this.Adapter.SelectCommand = this.CommandCollection[0];
  3994. if ((this.ClearBeforeFill == true)) {
  3995. dataTable.Clear();
  3996. }
  3997. int returnValue = this.Adapter.Fill(dataTable);
  3998. return returnValue;
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4002. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4003. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4004. public virtual BookClubKMADataSet.OrderDataTable GetData() {
  4005. this.Adapter.SelectCommand = this.CommandCollection[0];
  4006. BookClubKMADataSet.OrderDataTable dataTable = new BookClubKMADataSet.OrderDataTable();
  4007. this.Adapter.Fill(dataTable);
  4008. return dataTable;
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4013. public virtual int Update(BookClubKMADataSet.OrderDataTable dataTable) {
  4014. return this.Adapter.Update(dataTable);
  4015. }
  4016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4018. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4019. public virtual int Update(BookClubKMADataSet dataSet) {
  4020. return this.Adapter.Update(dataSet, "Order");
  4021. }
  4022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4024. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4025. public virtual int Update(global::System.Data.DataRow dataRow) {
  4026. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4027. dataRow});
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4032. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4033. return this.Adapter.Update(dataRows);
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4038. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4039. public virtual int Delete(int Original_IdOrder, int Original_IdUser, int Original_IdPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateOrder, global::System.Nullable<int> Original_Code, int Original_IdOrderStatus) {
  4040. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdOrder));
  4041. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdUser));
  4042. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdPickupPoint));
  4043. if ((Original_DateOrder.HasValue == true)) {
  4044. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4045. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DateOrder.Value));
  4046. }
  4047. else {
  4048. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4049. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4050. }
  4051. if ((Original_Code.HasValue == true)) {
  4052. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4053. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Code.Value));
  4054. }
  4055. else {
  4056. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4057. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4058. }
  4059. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_IdOrderStatus));
  4060. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4061. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4062. != global::System.Data.ConnectionState.Open)) {
  4063. this.Adapter.DeleteCommand.Connection.Open();
  4064. }
  4065. try {
  4066. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4067. return returnValue;
  4068. }
  4069. finally {
  4070. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4071. this.Adapter.DeleteCommand.Connection.Close();
  4072. }
  4073. }
  4074. }
  4075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4077. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4078. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4079. public virtual int Insert(int IdUser, int IdPickupPoint, global::System.Nullable<global::System.DateTime> DateOrder, global::System.Nullable<int> Code, int IdOrderStatus) {
  4080. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdUser));
  4081. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdPickupPoint));
  4082. if ((DateOrder.HasValue == true)) {
  4083. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DateOrder.Value));
  4084. }
  4085. else {
  4086. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4087. }
  4088. if ((Code.HasValue == true)) {
  4089. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Code.Value));
  4090. }
  4091. else {
  4092. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4093. }
  4094. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdOrderStatus));
  4095. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4096. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4097. != global::System.Data.ConnectionState.Open)) {
  4098. this.Adapter.InsertCommand.Connection.Open();
  4099. }
  4100. try {
  4101. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4102. return returnValue;
  4103. }
  4104. finally {
  4105. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4106. this.Adapter.InsertCommand.Connection.Close();
  4107. }
  4108. }
  4109. }
  4110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4113. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4114. public virtual int Update(int IdUser, int IdPickupPoint, global::System.Nullable<global::System.DateTime> DateOrder, global::System.Nullable<int> Code, int IdOrderStatus, int Original_IdOrder, int Original_IdUser, int Original_IdPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateOrder, global::System.Nullable<int> Original_Code, int Original_IdOrderStatus, int IdOrder) {
  4115. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdUser));
  4116. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdPickupPoint));
  4117. if ((DateOrder.HasValue == true)) {
  4118. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DateOrder.Value));
  4119. }
  4120. else {
  4121. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4122. }
  4123. if ((Code.HasValue == true)) {
  4124. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Code.Value));
  4125. }
  4126. else {
  4127. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4128. }
  4129. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdOrderStatus));
  4130. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdOrder));
  4131. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdUser));
  4132. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdPickupPoint));
  4133. if ((Original_DateOrder.HasValue == true)) {
  4134. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4135. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_DateOrder.Value));
  4136. }
  4137. else {
  4138. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4139. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4140. }
  4141. if ((Original_Code.HasValue == true)) {
  4142. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4143. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Code.Value));
  4144. }
  4145. else {
  4146. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4147. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4148. }
  4149. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_IdOrderStatus));
  4150. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IdOrder));
  4151. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4152. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4153. != global::System.Data.ConnectionState.Open)) {
  4154. this.Adapter.UpdateCommand.Connection.Open();
  4155. }
  4156. try {
  4157. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4158. return returnValue;
  4159. }
  4160. finally {
  4161. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4162. this.Adapter.UpdateCommand.Connection.Close();
  4163. }
  4164. }
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4169. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4170. public virtual int Update(int IdUser, int IdPickupPoint, global::System.Nullable<global::System.DateTime> DateOrder, global::System.Nullable<int> Code, int IdOrderStatus, int Original_IdOrder, int Original_IdUser, int Original_IdPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateOrder, global::System.Nullable<int> Original_Code, int Original_IdOrderStatus) {
  4171. return this.Update(IdUser, IdPickupPoint, DateOrder, Code, IdOrderStatus, Original_IdOrder, Original_IdUser, Original_IdPickupPoint, Original_DateOrder, Original_Code, Original_IdOrderStatus, Original_IdOrder);
  4172. }
  4173. }
  4174. /// <summary>
  4175. ///Represents the connection and commands used to retrieve and save data.
  4176. ///</summary>
  4177. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4178. [global::System.ComponentModel.ToolboxItem(true)]
  4179. [global::System.ComponentModel.DataObjectAttribute(true)]
  4180. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4181. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4183. public partial class OrderProductTableAdapter : global::System.ComponentModel.Component {
  4184. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4185. private global::System.Data.SqlClient.SqlConnection _connection;
  4186. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4187. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4188. private bool _clearBeforeFill;
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4191. public OrderProductTableAdapter() {
  4192. this.ClearBeforeFill = true;
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4196. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4197. get {
  4198. if ((this._adapter == null)) {
  4199. this.InitAdapter();
  4200. }
  4201. return this._adapter;
  4202. }
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4206. internal global::System.Data.SqlClient.SqlConnection Connection {
  4207. get {
  4208. if ((this._connection == null)) {
  4209. this.InitConnection();
  4210. }
  4211. return this._connection;
  4212. }
  4213. set {
  4214. this._connection = value;
  4215. if ((this.Adapter.InsertCommand != null)) {
  4216. this.Adapter.InsertCommand.Connection = value;
  4217. }
  4218. if ((this.Adapter.DeleteCommand != null)) {
  4219. this.Adapter.DeleteCommand.Connection = value;
  4220. }
  4221. if ((this.Adapter.UpdateCommand != null)) {
  4222. this.Adapter.UpdateCommand.Connection = value;
  4223. }
  4224. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4225. if ((this.CommandCollection[i] != null)) {
  4226. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4227. }
  4228. }
  4229. }
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4233. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4234. get {
  4235. return this._transaction;
  4236. }
  4237. set {
  4238. this._transaction = value;
  4239. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4240. this.CommandCollection[i].Transaction = this._transaction;
  4241. }
  4242. if (((this.Adapter != null)
  4243. && (this.Adapter.DeleteCommand != null))) {
  4244. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4245. }
  4246. if (((this.Adapter != null)
  4247. && (this.Adapter.InsertCommand != null))) {
  4248. this.Adapter.InsertCommand.Transaction = this._transaction;
  4249. }
  4250. if (((this.Adapter != null)
  4251. && (this.Adapter.UpdateCommand != null))) {
  4252. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4253. }
  4254. }
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4258. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4259. get {
  4260. if ((this._commandCollection == null)) {
  4261. this.InitCommandCollection();
  4262. }
  4263. return this._commandCollection;
  4264. }
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4268. public bool ClearBeforeFill {
  4269. get {
  4270. return this._clearBeforeFill;
  4271. }
  4272. set {
  4273. this._clearBeforeFill = value;
  4274. }
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4278. private void InitAdapter() {
  4279. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4280. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4281. tableMapping.SourceTable = "Table";
  4282. tableMapping.DataSetTable = "OrderProduct";
  4283. tableMapping.ColumnMappings.Add("IdOrderProduct", "IdOrderProduct");
  4284. tableMapping.ColumnMappings.Add("IdOrder", "IdOrder");
  4285. tableMapping.ColumnMappings.Add("IdProduct", "IdProduct");
  4286. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  4287. this._adapter.TableMappings.Add(tableMapping);
  4288. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4289. this._adapter.DeleteCommand.Connection = this.Connection;
  4290. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrderProduct] WHERE (([IdOrderProduct] = @Original_IdOrderProd" +
  4291. "uct) AND ([IdOrder] = @Original_IdOrder) AND ([IdProduct] = @Original_IdProduct)" +
  4292. " AND ([CountProduct] = @Original_CountProduct))";
  4293. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4294. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4295. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4296. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4297. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4298. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4299. this._adapter.InsertCommand.Connection = this.Connection;
  4300. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderProduct] ([IdOrder], [IdProduct], [CountProduct]) VALUES " +
  4301. "(@IdOrder, @IdProduct, @CountProduct);\r\nSELECT IdOrderProduct, IdOrder, IdProduc" +
  4302. "t, CountProduct FROM OrderProduct WHERE (IdOrderProduct = SCOPE_IDENTITY())";
  4303. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4304. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4305. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4306. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4307. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4308. this._adapter.UpdateCommand.Connection = this.Connection;
  4309. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderProduct] SET [IdOrder] = @IdOrder, [IdProduct] = @IdProduct, [CountProduct] = @CountProduct WHERE (([IdOrderProduct] = @Original_IdOrderProduct) AND ([IdOrder] = @Original_IdOrder) AND ([IdProduct] = @Original_IdProduct) AND ([CountProduct] = @Original_CountProduct));
  4310. SELECT IdOrderProduct, IdOrder, IdProduct, CountProduct FROM OrderProduct WHERE (IdOrderProduct = @IdOrderProduct)";
  4311. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4312. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4313. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4314. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4315. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4316. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4317. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4318. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4319. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrderProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4320. }
  4321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4323. private void InitConnection() {
  4324. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4325. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  4326. }
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4329. private void InitCommandCollection() {
  4330. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4331. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4332. this._commandCollection[0].Connection = this.Connection;
  4333. this._commandCollection[0].CommandText = "SELECT IdOrderProduct, IdOrder, IdProduct, CountProduct FROM dbo.OrderProduct";
  4334. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4335. }
  4336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4340. public virtual int Fill(BookClubKMADataSet.OrderProductDataTable dataTable) {
  4341. this.Adapter.SelectCommand = this.CommandCollection[0];
  4342. if ((this.ClearBeforeFill == true)) {
  4343. dataTable.Clear();
  4344. }
  4345. int returnValue = this.Adapter.Fill(dataTable);
  4346. return returnValue;
  4347. }
  4348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4350. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4351. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4352. public virtual BookClubKMADataSet.OrderProductDataTable GetData() {
  4353. this.Adapter.SelectCommand = this.CommandCollection[0];
  4354. BookClubKMADataSet.OrderProductDataTable dataTable = new BookClubKMADataSet.OrderProductDataTable();
  4355. this.Adapter.Fill(dataTable);
  4356. return dataTable;
  4357. }
  4358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4360. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4361. public virtual int Update(BookClubKMADataSet.OrderProductDataTable dataTable) {
  4362. return this.Adapter.Update(dataTable);
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4366. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4367. public virtual int Update(BookClubKMADataSet dataSet) {
  4368. return this.Adapter.Update(dataSet, "OrderProduct");
  4369. }
  4370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4373. public virtual int Update(global::System.Data.DataRow dataRow) {
  4374. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4375. dataRow});
  4376. }
  4377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4380. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4381. return this.Adapter.Update(dataRows);
  4382. }
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4386. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4387. public virtual int Delete(int Original_IdOrderProduct, int Original_IdOrder, int Original_IdProduct, int Original_CountProduct) {
  4388. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdOrderProduct));
  4389. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdOrder));
  4390. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdProduct));
  4391. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_CountProduct));
  4392. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4393. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4394. != global::System.Data.ConnectionState.Open)) {
  4395. this.Adapter.DeleteCommand.Connection.Open();
  4396. }
  4397. try {
  4398. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4399. return returnValue;
  4400. }
  4401. finally {
  4402. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4403. this.Adapter.DeleteCommand.Connection.Close();
  4404. }
  4405. }
  4406. }
  4407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4410. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4411. public virtual int Insert(int IdOrder, int IdProduct, int CountProduct) {
  4412. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdOrder));
  4413. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdProduct));
  4414. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct));
  4415. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4416. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4417. != global::System.Data.ConnectionState.Open)) {
  4418. this.Adapter.InsertCommand.Connection.Open();
  4419. }
  4420. try {
  4421. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4422. return returnValue;
  4423. }
  4424. finally {
  4425. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4426. this.Adapter.InsertCommand.Connection.Close();
  4427. }
  4428. }
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4433. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4434. public virtual int Update(int IdOrder, int IdProduct, int CountProduct, int Original_IdOrderProduct, int Original_IdOrder, int Original_IdProduct, int Original_CountProduct, int IdOrderProduct) {
  4435. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdOrder));
  4436. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdProduct));
  4437. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct));
  4438. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdOrderProduct));
  4439. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdOrder));
  4440. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdProduct));
  4441. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_CountProduct));
  4442. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdOrderProduct));
  4443. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4444. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4445. != global::System.Data.ConnectionState.Open)) {
  4446. this.Adapter.UpdateCommand.Connection.Open();
  4447. }
  4448. try {
  4449. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4450. return returnValue;
  4451. }
  4452. finally {
  4453. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4454. this.Adapter.UpdateCommand.Connection.Close();
  4455. }
  4456. }
  4457. }
  4458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4460. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4461. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4462. public virtual int Update(int IdOrder, int IdProduct, int CountProduct, int Original_IdOrderProduct, int Original_IdOrder, int Original_IdProduct, int Original_CountProduct) {
  4463. return this.Update(IdOrder, IdProduct, CountProduct, Original_IdOrderProduct, Original_IdOrder, Original_IdProduct, Original_CountProduct, Original_IdOrderProduct);
  4464. }
  4465. }
  4466. /// <summary>
  4467. ///Represents the connection and commands used to retrieve and save data.
  4468. ///</summary>
  4469. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4470. [global::System.ComponentModel.ToolboxItem(true)]
  4471. [global::System.ComponentModel.DataObjectAttribute(true)]
  4472. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4473. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4475. public partial class OrderStatusTableAdapter : global::System.ComponentModel.Component {
  4476. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4477. private global::System.Data.SqlClient.SqlConnection _connection;
  4478. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4479. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4480. private bool _clearBeforeFill;
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4483. public OrderStatusTableAdapter() {
  4484. this.ClearBeforeFill = true;
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4488. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4489. get {
  4490. if ((this._adapter == null)) {
  4491. this.InitAdapter();
  4492. }
  4493. return this._adapter;
  4494. }
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4498. internal global::System.Data.SqlClient.SqlConnection Connection {
  4499. get {
  4500. if ((this._connection == null)) {
  4501. this.InitConnection();
  4502. }
  4503. return this._connection;
  4504. }
  4505. set {
  4506. this._connection = value;
  4507. if ((this.Adapter.InsertCommand != null)) {
  4508. this.Adapter.InsertCommand.Connection = value;
  4509. }
  4510. if ((this.Adapter.DeleteCommand != null)) {
  4511. this.Adapter.DeleteCommand.Connection = value;
  4512. }
  4513. if ((this.Adapter.UpdateCommand != null)) {
  4514. this.Adapter.UpdateCommand.Connection = value;
  4515. }
  4516. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4517. if ((this.CommandCollection[i] != null)) {
  4518. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4519. }
  4520. }
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4525. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4526. get {
  4527. return this._transaction;
  4528. }
  4529. set {
  4530. this._transaction = value;
  4531. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4532. this.CommandCollection[i].Transaction = this._transaction;
  4533. }
  4534. if (((this.Adapter != null)
  4535. && (this.Adapter.DeleteCommand != null))) {
  4536. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4537. }
  4538. if (((this.Adapter != null)
  4539. && (this.Adapter.InsertCommand != null))) {
  4540. this.Adapter.InsertCommand.Transaction = this._transaction;
  4541. }
  4542. if (((this.Adapter != null)
  4543. && (this.Adapter.UpdateCommand != null))) {
  4544. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4545. }
  4546. }
  4547. }
  4548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4550. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4551. get {
  4552. if ((this._commandCollection == null)) {
  4553. this.InitCommandCollection();
  4554. }
  4555. return this._commandCollection;
  4556. }
  4557. }
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4560. public bool ClearBeforeFill {
  4561. get {
  4562. return this._clearBeforeFill;
  4563. }
  4564. set {
  4565. this._clearBeforeFill = value;
  4566. }
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4570. private void InitAdapter() {
  4571. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4572. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4573. tableMapping.SourceTable = "Table";
  4574. tableMapping.DataSetTable = "OrderStatus";
  4575. tableMapping.ColumnMappings.Add("IdOrderStatus", "IdOrderStatus");
  4576. tableMapping.ColumnMappings.Add("NameOrderStatus", "NameOrderStatus");
  4577. this._adapter.TableMappings.Add(tableMapping);
  4578. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4579. this._adapter.DeleteCommand.Connection = this.Connection;
  4580. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrderStatus] WHERE (([IdOrderStatus] = @Original_IdOrderStatus" +
  4581. ") AND ([NameOrderStatus] = @Original_NameOrderStatus))";
  4582. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4583. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4584. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameOrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4585. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4586. this._adapter.InsertCommand.Connection = this.Connection;
  4587. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderStatus] ([NameOrderStatus]) VALUES (@NameOrderStatus);\r\nS" +
  4588. "ELECT IdOrderStatus, NameOrderStatus FROM OrderStatus WHERE (IdOrderStatus = SCO" +
  4589. "PE_IDENTITY())";
  4590. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4591. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameOrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameOrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4592. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4593. this._adapter.UpdateCommand.Connection = this.Connection;
  4594. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderStatus] SET [NameOrderStatus] = @NameOrderStatus WHERE (([IdOrderStatus] = @Original_IdOrderStatus) AND ([NameOrderStatus] = @Original_NameOrderStatus));
  4595. SELECT IdOrderStatus, NameOrderStatus FROM OrderStatus WHERE (IdOrderStatus = @IdOrderStatus)";
  4596. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4597. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameOrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameOrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrderStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameOrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameOrderStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4600. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrderStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4601. }
  4602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4604. private void InitConnection() {
  4605. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4606. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4610. private void InitCommandCollection() {
  4611. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4612. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4613. this._commandCollection[0].Connection = this.Connection;
  4614. this._commandCollection[0].CommandText = "SELECT IdOrderStatus, NameOrderStatus FROM dbo.OrderStatus";
  4615. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4620. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4621. public virtual int Fill(BookClubKMADataSet.OrderStatusDataTable dataTable) {
  4622. this.Adapter.SelectCommand = this.CommandCollection[0];
  4623. if ((this.ClearBeforeFill == true)) {
  4624. dataTable.Clear();
  4625. }
  4626. int returnValue = this.Adapter.Fill(dataTable);
  4627. return returnValue;
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4631. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4632. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4633. public virtual BookClubKMADataSet.OrderStatusDataTable GetData() {
  4634. this.Adapter.SelectCommand = this.CommandCollection[0];
  4635. BookClubKMADataSet.OrderStatusDataTable dataTable = new BookClubKMADataSet.OrderStatusDataTable();
  4636. this.Adapter.Fill(dataTable);
  4637. return dataTable;
  4638. }
  4639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4642. public virtual int Update(BookClubKMADataSet.OrderStatusDataTable dataTable) {
  4643. return this.Adapter.Update(dataTable);
  4644. }
  4645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4648. public virtual int Update(BookClubKMADataSet dataSet) {
  4649. return this.Adapter.Update(dataSet, "OrderStatus");
  4650. }
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4654. public virtual int Update(global::System.Data.DataRow dataRow) {
  4655. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4656. dataRow});
  4657. }
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4661. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4662. return this.Adapter.Update(dataRows);
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4668. public virtual int Delete(int Original_IdOrderStatus, string Original_NameOrderStatus) {
  4669. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdOrderStatus));
  4670. if ((Original_NameOrderStatus == null)) {
  4671. throw new global::System.ArgumentNullException("Original_NameOrderStatus");
  4672. }
  4673. else {
  4674. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_NameOrderStatus));
  4675. }
  4676. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4677. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4678. != global::System.Data.ConnectionState.Open)) {
  4679. this.Adapter.DeleteCommand.Connection.Open();
  4680. }
  4681. try {
  4682. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4683. return returnValue;
  4684. }
  4685. finally {
  4686. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4687. this.Adapter.DeleteCommand.Connection.Close();
  4688. }
  4689. }
  4690. }
  4691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4694. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4695. public virtual int Insert(string NameOrderStatus) {
  4696. if ((NameOrderStatus == null)) {
  4697. throw new global::System.ArgumentNullException("NameOrderStatus");
  4698. }
  4699. else {
  4700. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(NameOrderStatus));
  4701. }
  4702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4703. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4704. != global::System.Data.ConnectionState.Open)) {
  4705. this.Adapter.InsertCommand.Connection.Open();
  4706. }
  4707. try {
  4708. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4709. return returnValue;
  4710. }
  4711. finally {
  4712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4713. this.Adapter.InsertCommand.Connection.Close();
  4714. }
  4715. }
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4721. public virtual int Update(string NameOrderStatus, int Original_IdOrderStatus, string Original_NameOrderStatus, int IdOrderStatus) {
  4722. if ((NameOrderStatus == null)) {
  4723. throw new global::System.ArgumentNullException("NameOrderStatus");
  4724. }
  4725. else {
  4726. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(NameOrderStatus));
  4727. }
  4728. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdOrderStatus));
  4729. if ((Original_NameOrderStatus == null)) {
  4730. throw new global::System.ArgumentNullException("Original_NameOrderStatus");
  4731. }
  4732. else {
  4733. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_NameOrderStatus));
  4734. }
  4735. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdOrderStatus));
  4736. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4737. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4738. != global::System.Data.ConnectionState.Open)) {
  4739. this.Adapter.UpdateCommand.Connection.Open();
  4740. }
  4741. try {
  4742. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4743. return returnValue;
  4744. }
  4745. finally {
  4746. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4747. this.Adapter.UpdateCommand.Connection.Close();
  4748. }
  4749. }
  4750. }
  4751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4755. public virtual int Update(string NameOrderStatus, int Original_IdOrderStatus, string Original_NameOrderStatus) {
  4756. return this.Update(NameOrderStatus, Original_IdOrderStatus, Original_NameOrderStatus, Original_IdOrderStatus);
  4757. }
  4758. }
  4759. /// <summary>
  4760. ///Represents the connection and commands used to retrieve and save data.
  4761. ///</summary>
  4762. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4763. [global::System.ComponentModel.ToolboxItem(true)]
  4764. [global::System.ComponentModel.DataObjectAttribute(true)]
  4765. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4766. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4768. public partial class PickupPointTableAdapter : global::System.ComponentModel.Component {
  4769. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4770. private global::System.Data.SqlClient.SqlConnection _connection;
  4771. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4772. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4773. private bool _clearBeforeFill;
  4774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4776. public PickupPointTableAdapter() {
  4777. this.ClearBeforeFill = true;
  4778. }
  4779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4781. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4782. get {
  4783. if ((this._adapter == null)) {
  4784. this.InitAdapter();
  4785. }
  4786. return this._adapter;
  4787. }
  4788. }
  4789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4791. internal global::System.Data.SqlClient.SqlConnection Connection {
  4792. get {
  4793. if ((this._connection == null)) {
  4794. this.InitConnection();
  4795. }
  4796. return this._connection;
  4797. }
  4798. set {
  4799. this._connection = value;
  4800. if ((this.Adapter.InsertCommand != null)) {
  4801. this.Adapter.InsertCommand.Connection = value;
  4802. }
  4803. if ((this.Adapter.DeleteCommand != null)) {
  4804. this.Adapter.DeleteCommand.Connection = value;
  4805. }
  4806. if ((this.Adapter.UpdateCommand != null)) {
  4807. this.Adapter.UpdateCommand.Connection = value;
  4808. }
  4809. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4810. if ((this.CommandCollection[i] != null)) {
  4811. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4812. }
  4813. }
  4814. }
  4815. }
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4818. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4819. get {
  4820. return this._transaction;
  4821. }
  4822. set {
  4823. this._transaction = value;
  4824. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4825. this.CommandCollection[i].Transaction = this._transaction;
  4826. }
  4827. if (((this.Adapter != null)
  4828. && (this.Adapter.DeleteCommand != null))) {
  4829. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4830. }
  4831. if (((this.Adapter != null)
  4832. && (this.Adapter.InsertCommand != null))) {
  4833. this.Adapter.InsertCommand.Transaction = this._transaction;
  4834. }
  4835. if (((this.Adapter != null)
  4836. && (this.Adapter.UpdateCommand != null))) {
  4837. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4838. }
  4839. }
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4843. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4844. get {
  4845. if ((this._commandCollection == null)) {
  4846. this.InitCommandCollection();
  4847. }
  4848. return this._commandCollection;
  4849. }
  4850. }
  4851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4853. public bool ClearBeforeFill {
  4854. get {
  4855. return this._clearBeforeFill;
  4856. }
  4857. set {
  4858. this._clearBeforeFill = value;
  4859. }
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4863. private void InitAdapter() {
  4864. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4865. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4866. tableMapping.SourceTable = "Table";
  4867. tableMapping.DataSetTable = "PickupPoint";
  4868. tableMapping.ColumnMappings.Add("IdPickupPoint", "IdPickupPoint");
  4869. tableMapping.ColumnMappings.Add("AddressPickupPoint", "AddressPickupPoint");
  4870. this._adapter.TableMappings.Add(tableMapping);
  4871. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4872. this._adapter.DeleteCommand.Connection = this.Connection;
  4873. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PickupPoint] WHERE (([IdPickupPoint] = @Original_IdPickupPoint" +
  4874. ") AND ([AddressPickupPoint] = @Original_AddressPickupPoint))";
  4875. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4876. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4877. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AddressPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AddressPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4878. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4879. this._adapter.InsertCommand.Connection = this.Connection;
  4880. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PickupPoint] ([AddressPickupPoint]) VALUES (@AddressPickupPoin" +
  4881. "t);\r\nSELECT IdPickupPoint, AddressPickupPoint FROM PickupPoint WHERE (IdPickupPo" +
  4882. "int = SCOPE_IDENTITY())";
  4883. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4884. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AddressPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AddressPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4885. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4886. this._adapter.UpdateCommand.Connection = this.Connection;
  4887. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PickupPoint] SET [AddressPickupPoint] = @AddressPickupPoint WHERE (([IdPickupPoint] = @Original_IdPickupPoint) AND ([AddressPickupPoint] = @Original_AddressPickupPoint));
  4888. SELECT IdPickupPoint, AddressPickupPoint FROM PickupPoint WHERE (IdPickupPoint = @IdPickupPoint)";
  4889. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4890. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AddressPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AddressPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4891. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4892. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AddressPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AddressPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4893. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdPickupPoint", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4894. }
  4895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4897. private void InitConnection() {
  4898. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4899. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  4900. }
  4901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4903. private void InitCommandCollection() {
  4904. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4905. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4906. this._commandCollection[0].Connection = this.Connection;
  4907. this._commandCollection[0].CommandText = "SELECT IdPickupPoint, AddressPickupPoint FROM dbo.PickupPoint";
  4908. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4909. }
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4912. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4913. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4914. public virtual int Fill(BookClubKMADataSet.PickupPointDataTable dataTable) {
  4915. this.Adapter.SelectCommand = this.CommandCollection[0];
  4916. if ((this.ClearBeforeFill == true)) {
  4917. dataTable.Clear();
  4918. }
  4919. int returnValue = this.Adapter.Fill(dataTable);
  4920. return returnValue;
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4925. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4926. public virtual BookClubKMADataSet.PickupPointDataTable GetData() {
  4927. this.Adapter.SelectCommand = this.CommandCollection[0];
  4928. BookClubKMADataSet.PickupPointDataTable dataTable = new BookClubKMADataSet.PickupPointDataTable();
  4929. this.Adapter.Fill(dataTable);
  4930. return dataTable;
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4935. public virtual int Update(BookClubKMADataSet.PickupPointDataTable dataTable) {
  4936. return this.Adapter.Update(dataTable);
  4937. }
  4938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4941. public virtual int Update(BookClubKMADataSet dataSet) {
  4942. return this.Adapter.Update(dataSet, "PickupPoint");
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4947. public virtual int Update(global::System.Data.DataRow dataRow) {
  4948. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4949. dataRow});
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4954. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4955. return this.Adapter.Update(dataRows);
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4960. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4961. public virtual int Delete(int Original_IdPickupPoint, string Original_AddressPickupPoint) {
  4962. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdPickupPoint));
  4963. if ((Original_AddressPickupPoint == null)) {
  4964. throw new global::System.ArgumentNullException("Original_AddressPickupPoint");
  4965. }
  4966. else {
  4967. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_AddressPickupPoint));
  4968. }
  4969. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4970. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4971. != global::System.Data.ConnectionState.Open)) {
  4972. this.Adapter.DeleteCommand.Connection.Open();
  4973. }
  4974. try {
  4975. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4976. return returnValue;
  4977. }
  4978. finally {
  4979. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4980. this.Adapter.DeleteCommand.Connection.Close();
  4981. }
  4982. }
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4988. public virtual int Insert(string AddressPickupPoint) {
  4989. if ((AddressPickupPoint == null)) {
  4990. throw new global::System.ArgumentNullException("AddressPickupPoint");
  4991. }
  4992. else {
  4993. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(AddressPickupPoint));
  4994. }
  4995. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4996. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4997. != global::System.Data.ConnectionState.Open)) {
  4998. this.Adapter.InsertCommand.Connection.Open();
  4999. }
  5000. try {
  5001. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5002. return returnValue;
  5003. }
  5004. finally {
  5005. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5006. this.Adapter.InsertCommand.Connection.Close();
  5007. }
  5008. }
  5009. }
  5010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5013. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5014. public virtual int Update(string AddressPickupPoint, int Original_IdPickupPoint, string Original_AddressPickupPoint, int IdPickupPoint) {
  5015. if ((AddressPickupPoint == null)) {
  5016. throw new global::System.ArgumentNullException("AddressPickupPoint");
  5017. }
  5018. else {
  5019. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(AddressPickupPoint));
  5020. }
  5021. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdPickupPoint));
  5022. if ((Original_AddressPickupPoint == null)) {
  5023. throw new global::System.ArgumentNullException("Original_AddressPickupPoint");
  5024. }
  5025. else {
  5026. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_AddressPickupPoint));
  5027. }
  5028. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdPickupPoint));
  5029. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5030. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5031. != global::System.Data.ConnectionState.Open)) {
  5032. this.Adapter.UpdateCommand.Connection.Open();
  5033. }
  5034. try {
  5035. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5036. return returnValue;
  5037. }
  5038. finally {
  5039. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5040. this.Adapter.UpdateCommand.Connection.Close();
  5041. }
  5042. }
  5043. }
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5047. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5048. public virtual int Update(string AddressPickupPoint, int Original_IdPickupPoint, string Original_AddressPickupPoint) {
  5049. return this.Update(AddressPickupPoint, Original_IdPickupPoint, Original_AddressPickupPoint, Original_IdPickupPoint);
  5050. }
  5051. }
  5052. /// <summary>
  5053. ///Represents the connection and commands used to retrieve and save data.
  5054. ///</summary>
  5055. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5056. [global::System.ComponentModel.ToolboxItem(true)]
  5057. [global::System.ComponentModel.DataObjectAttribute(true)]
  5058. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5059. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5061. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  5062. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5063. private global::System.Data.SqlClient.SqlConnection _connection;
  5064. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5065. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5066. private bool _clearBeforeFill;
  5067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5069. public ProductTableAdapter() {
  5070. this.ClearBeforeFill = true;
  5071. }
  5072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5074. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5075. get {
  5076. if ((this._adapter == null)) {
  5077. this.InitAdapter();
  5078. }
  5079. return this._adapter;
  5080. }
  5081. }
  5082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5084. internal global::System.Data.SqlClient.SqlConnection Connection {
  5085. get {
  5086. if ((this._connection == null)) {
  5087. this.InitConnection();
  5088. }
  5089. return this._connection;
  5090. }
  5091. set {
  5092. this._connection = value;
  5093. if ((this.Adapter.InsertCommand != null)) {
  5094. this.Adapter.InsertCommand.Connection = value;
  5095. }
  5096. if ((this.Adapter.DeleteCommand != null)) {
  5097. this.Adapter.DeleteCommand.Connection = value;
  5098. }
  5099. if ((this.Adapter.UpdateCommand != null)) {
  5100. this.Adapter.UpdateCommand.Connection = value;
  5101. }
  5102. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5103. if ((this.CommandCollection[i] != null)) {
  5104. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5105. }
  5106. }
  5107. }
  5108. }
  5109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5111. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5112. get {
  5113. return this._transaction;
  5114. }
  5115. set {
  5116. this._transaction = value;
  5117. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5118. this.CommandCollection[i].Transaction = this._transaction;
  5119. }
  5120. if (((this.Adapter != null)
  5121. && (this.Adapter.DeleteCommand != null))) {
  5122. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5123. }
  5124. if (((this.Adapter != null)
  5125. && (this.Adapter.InsertCommand != null))) {
  5126. this.Adapter.InsertCommand.Transaction = this._transaction;
  5127. }
  5128. if (((this.Adapter != null)
  5129. && (this.Adapter.UpdateCommand != null))) {
  5130. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5131. }
  5132. }
  5133. }
  5134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5136. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5137. get {
  5138. if ((this._commandCollection == null)) {
  5139. this.InitCommandCollection();
  5140. }
  5141. return this._commandCollection;
  5142. }
  5143. }
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5146. public bool ClearBeforeFill {
  5147. get {
  5148. return this._clearBeforeFill;
  5149. }
  5150. set {
  5151. this._clearBeforeFill = value;
  5152. }
  5153. }
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5156. private void InitAdapter() {
  5157. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5158. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5159. tableMapping.SourceTable = "Table";
  5160. tableMapping.DataSetTable = "Product";
  5161. tableMapping.ColumnMappings.Add("IdProduct", "IdProduct");
  5162. tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
  5163. tableMapping.ColumnMappings.Add("IdManufacturer", "IdManufacturer");
  5164. tableMapping.ColumnMappings.Add("Description", "Description");
  5165. tableMapping.ColumnMappings.Add("Photo", "Photo");
  5166. tableMapping.ColumnMappings.Add("Cost", "Cost");
  5167. tableMapping.ColumnMappings.Add("Discount", "Discount");
  5168. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  5169. this._adapter.TableMappings.Add(tableMapping);
  5170. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5171. this._adapter.DeleteCommand.Connection = this.Connection;
  5172. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([IdProduct] = @Original_IdProduct) AND ([NameProduct] = @Original_NameProduct) AND ([IdManufacturer] = @Original_IdManufacturer) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)) AND ([Cost] = @Original_Cost) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ([CountProduct] = @Original_CountProduct))";
  5173. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5174. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5175. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5176. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5177. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5178. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5179. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5180. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5181. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5182. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5183. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5184. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5185. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5186. this._adapter.InsertCommand.Connection = this.Connection;
  5187. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([NameProduct], [IdManufacturer], [Description], [Photo], [Cost], [Discount], [CountProduct]) VALUES (@NameProduct, @IdManufacturer, @Description, @Photo, @Cost, @Discount, @CountProduct);
  5188. SELECT IdProduct, NameProduct, IdManufacturer, Description, Photo, Cost, Discount, CountProduct FROM Product WHERE (IdProduct = SCOPE_IDENTITY())";
  5189. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5190. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5191. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5192. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5193. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5194. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5195. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5196. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5197. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5198. this._adapter.UpdateCommand.Connection = this.Connection;
  5199. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [NameProduct] = @NameProduct, [IdManufacturer] = @IdManufacturer, [Description] = @Description, [Photo] = @Photo, [Cost] = @Cost, [Discount] = @Discount, [CountProduct] = @CountProduct WHERE (([IdProduct] = @Original_IdProduct) AND ([NameProduct] = @Original_NameProduct) AND ([IdManufacturer] = @Original_IdManufacturer) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)) AND ([Cost] = @Original_Cost) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ([CountProduct] = @Original_CountProduct));
  5200. SELECT IdProduct, NameProduct, IdManufacturer, Description, Photo, Cost, Discount, CountProduct FROM Product WHERE (IdProduct = @IdProduct)";
  5201. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5207. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5208. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5209. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5210. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5211. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5212. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5213. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5214. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5215. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5216. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5217. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5218. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5219. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5220. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5221. }
  5222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5224. private void InitConnection() {
  5225. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5226. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5230. private void InitCommandCollection() {
  5231. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5232. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5233. this._commandCollection[0].Connection = this.Connection;
  5234. this._commandCollection[0].CommandText = "SELECT IdProduct, NameProduct, IdManufacturer, Description, Photo, Cost, Discount" +
  5235. ", CountProduct FROM dbo.Product";
  5236. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5237. }
  5238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5241. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5242. public virtual int Fill(BookClubKMADataSet.ProductDataTable dataTable) {
  5243. this.Adapter.SelectCommand = this.CommandCollection[0];
  5244. if ((this.ClearBeforeFill == true)) {
  5245. dataTable.Clear();
  5246. }
  5247. int returnValue = this.Adapter.Fill(dataTable);
  5248. return returnValue;
  5249. }
  5250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5253. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5254. public virtual BookClubKMADataSet.ProductDataTable GetData() {
  5255. this.Adapter.SelectCommand = this.CommandCollection[0];
  5256. BookClubKMADataSet.ProductDataTable dataTable = new BookClubKMADataSet.ProductDataTable();
  5257. this.Adapter.Fill(dataTable);
  5258. return dataTable;
  5259. }
  5260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5263. public virtual int Update(BookClubKMADataSet.ProductDataTable dataTable) {
  5264. return this.Adapter.Update(dataTable);
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5269. public virtual int Update(BookClubKMADataSet dataSet) {
  5270. return this.Adapter.Update(dataSet, "Product");
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5275. public virtual int Update(global::System.Data.DataRow dataRow) {
  5276. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5277. dataRow});
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5281. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5282. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5283. return this.Adapter.Update(dataRows);
  5284. }
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5288. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5289. public virtual int Delete(int Original_IdProduct, string Original_NameProduct, int Original_IdManufacturer, string Original_Description, string Original_Photo, decimal Original_Cost, global::System.Nullable<double> Original_Discount, int Original_CountProduct) {
  5290. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdProduct));
  5291. if ((Original_NameProduct == null)) {
  5292. throw new global::System.ArgumentNullException("Original_NameProduct");
  5293. }
  5294. else {
  5295. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_NameProduct));
  5296. }
  5297. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdManufacturer));
  5298. if ((Original_Description == null)) {
  5299. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5300. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5301. }
  5302. else {
  5303. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5304. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Description));
  5305. }
  5306. if ((Original_Photo == null)) {
  5307. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5308. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5309. }
  5310. else {
  5311. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5312. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Photo));
  5313. }
  5314. this.Adapter.DeleteCommand.Parameters[7].Value = ((decimal)(Original_Cost));
  5315. if ((Original_Discount.HasValue == true)) {
  5316. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  5317. this.Adapter.DeleteCommand.Parameters[9].Value = ((double)(Original_Discount.Value));
  5318. }
  5319. else {
  5320. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  5321. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  5322. }
  5323. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_CountProduct));
  5324. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5325. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5326. != global::System.Data.ConnectionState.Open)) {
  5327. this.Adapter.DeleteCommand.Connection.Open();
  5328. }
  5329. try {
  5330. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5331. return returnValue;
  5332. }
  5333. finally {
  5334. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5335. this.Adapter.DeleteCommand.Connection.Close();
  5336. }
  5337. }
  5338. }
  5339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5342. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5343. public virtual int Insert(string NameProduct, int IdManufacturer, string Description, string Photo, decimal Cost, global::System.Nullable<double> Discount, int CountProduct) {
  5344. if ((NameProduct == null)) {
  5345. throw new global::System.ArgumentNullException("NameProduct");
  5346. }
  5347. else {
  5348. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(NameProduct));
  5349. }
  5350. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdManufacturer));
  5351. if ((Description == null)) {
  5352. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5353. }
  5354. else {
  5355. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  5356. }
  5357. if ((Photo == null)) {
  5358. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5359. }
  5360. else {
  5361. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Photo));
  5362. }
  5363. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(Cost));
  5364. if ((Discount.HasValue == true)) {
  5365. this.Adapter.InsertCommand.Parameters[5].Value = ((double)(Discount.Value));
  5366. }
  5367. else {
  5368. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5369. }
  5370. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(CountProduct));
  5371. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5372. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5373. != global::System.Data.ConnectionState.Open)) {
  5374. this.Adapter.InsertCommand.Connection.Open();
  5375. }
  5376. try {
  5377. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5378. return returnValue;
  5379. }
  5380. finally {
  5381. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5382. this.Adapter.InsertCommand.Connection.Close();
  5383. }
  5384. }
  5385. }
  5386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5389. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5390. public virtual int Update(
  5391. string NameProduct,
  5392. int IdManufacturer,
  5393. string Description,
  5394. string Photo,
  5395. decimal Cost,
  5396. global::System.Nullable<double> Discount,
  5397. int CountProduct,
  5398. int Original_IdProduct,
  5399. string Original_NameProduct,
  5400. int Original_IdManufacturer,
  5401. string Original_Description,
  5402. string Original_Photo,
  5403. decimal Original_Cost,
  5404. global::System.Nullable<double> Original_Discount,
  5405. int Original_CountProduct,
  5406. int IdProduct) {
  5407. if ((NameProduct == null)) {
  5408. throw new global::System.ArgumentNullException("NameProduct");
  5409. }
  5410. else {
  5411. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(NameProduct));
  5412. }
  5413. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdManufacturer));
  5414. if ((Description == null)) {
  5415. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5416. }
  5417. else {
  5418. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  5419. }
  5420. if ((Photo == null)) {
  5421. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5422. }
  5423. else {
  5424. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Photo));
  5425. }
  5426. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(Cost));
  5427. if ((Discount.HasValue == true)) {
  5428. this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(Discount.Value));
  5429. }
  5430. else {
  5431. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5432. }
  5433. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(CountProduct));
  5434. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdProduct));
  5435. if ((Original_NameProduct == null)) {
  5436. throw new global::System.ArgumentNullException("Original_NameProduct");
  5437. }
  5438. else {
  5439. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_NameProduct));
  5440. }
  5441. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdManufacturer));
  5442. if ((Original_Description == null)) {
  5443. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5444. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5445. }
  5446. else {
  5447. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5448. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Description));
  5449. }
  5450. if ((Original_Photo == null)) {
  5451. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5452. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5453. }
  5454. else {
  5455. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5456. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Photo));
  5457. }
  5458. this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_Cost));
  5459. if ((Original_Discount.HasValue == true)) {
  5460. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5461. this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_Discount.Value));
  5462. }
  5463. else {
  5464. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5465. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5466. }
  5467. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_CountProduct));
  5468. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(IdProduct));
  5469. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5470. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5471. != global::System.Data.ConnectionState.Open)) {
  5472. this.Adapter.UpdateCommand.Connection.Open();
  5473. }
  5474. try {
  5475. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5476. return returnValue;
  5477. }
  5478. finally {
  5479. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5480. this.Adapter.UpdateCommand.Connection.Close();
  5481. }
  5482. }
  5483. }
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5488. public virtual int Update(string NameProduct, int IdManufacturer, string Description, string Photo, decimal Cost, global::System.Nullable<double> Discount, int CountProduct, int Original_IdProduct, string Original_NameProduct, int Original_IdManufacturer, string Original_Description, string Original_Photo, decimal Original_Cost, global::System.Nullable<double> Original_Discount, int Original_CountProduct) {
  5489. return this.Update(NameProduct, IdManufacturer, Description, Photo, Cost, Discount, CountProduct, Original_IdProduct, Original_NameProduct, Original_IdManufacturer, Original_Description, Original_Photo, Original_Cost, Original_Discount, Original_CountProduct, Original_IdProduct);
  5490. }
  5491. }
  5492. /// <summary>
  5493. ///Represents the connection and commands used to retrieve and save data.
  5494. ///</summary>
  5495. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5496. [global::System.ComponentModel.ToolboxItem(true)]
  5497. [global::System.ComponentModel.DataObjectAttribute(true)]
  5498. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5499. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5501. public partial class TypeUserTableAdapter : global::System.ComponentModel.Component {
  5502. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5503. private global::System.Data.SqlClient.SqlConnection _connection;
  5504. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5505. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5506. private bool _clearBeforeFill;
  5507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5509. public TypeUserTableAdapter() {
  5510. this.ClearBeforeFill = true;
  5511. }
  5512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5514. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5515. get {
  5516. if ((this._adapter == null)) {
  5517. this.InitAdapter();
  5518. }
  5519. return this._adapter;
  5520. }
  5521. }
  5522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5524. internal global::System.Data.SqlClient.SqlConnection Connection {
  5525. get {
  5526. if ((this._connection == null)) {
  5527. this.InitConnection();
  5528. }
  5529. return this._connection;
  5530. }
  5531. set {
  5532. this._connection = value;
  5533. if ((this.Adapter.InsertCommand != null)) {
  5534. this.Adapter.InsertCommand.Connection = value;
  5535. }
  5536. if ((this.Adapter.DeleteCommand != null)) {
  5537. this.Adapter.DeleteCommand.Connection = value;
  5538. }
  5539. if ((this.Adapter.UpdateCommand != null)) {
  5540. this.Adapter.UpdateCommand.Connection = value;
  5541. }
  5542. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5543. if ((this.CommandCollection[i] != null)) {
  5544. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5545. }
  5546. }
  5547. }
  5548. }
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5551. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5552. get {
  5553. return this._transaction;
  5554. }
  5555. set {
  5556. this._transaction = value;
  5557. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5558. this.CommandCollection[i].Transaction = this._transaction;
  5559. }
  5560. if (((this.Adapter != null)
  5561. && (this.Adapter.DeleteCommand != null))) {
  5562. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5563. }
  5564. if (((this.Adapter != null)
  5565. && (this.Adapter.InsertCommand != null))) {
  5566. this.Adapter.InsertCommand.Transaction = this._transaction;
  5567. }
  5568. if (((this.Adapter != null)
  5569. && (this.Adapter.UpdateCommand != null))) {
  5570. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5571. }
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5576. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5577. get {
  5578. if ((this._commandCollection == null)) {
  5579. this.InitCommandCollection();
  5580. }
  5581. return this._commandCollection;
  5582. }
  5583. }
  5584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5586. public bool ClearBeforeFill {
  5587. get {
  5588. return this._clearBeforeFill;
  5589. }
  5590. set {
  5591. this._clearBeforeFill = value;
  5592. }
  5593. }
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5596. private void InitAdapter() {
  5597. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5598. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5599. tableMapping.SourceTable = "Table";
  5600. tableMapping.DataSetTable = "TypeUser";
  5601. tableMapping.ColumnMappings.Add("IdTypeUser", "IdTypeUser");
  5602. tableMapping.ColumnMappings.Add("NameTypeUser", "NameTypeUser");
  5603. this._adapter.TableMappings.Add(tableMapping);
  5604. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5605. this._adapter.DeleteCommand.Connection = this.Connection;
  5606. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypeUser] WHERE (([IdTypeUser] = @Original_IdTypeUser) AND ([N" +
  5607. "ameTypeUser] = @Original_NameTypeUser))";
  5608. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5609. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5610. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameTypeUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5611. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5612. this._adapter.InsertCommand.Connection = this.Connection;
  5613. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeUser] ([NameTypeUser]) VALUES (@NameTypeUser);\r\nSELECT IdT" +
  5614. "ypeUser, NameTypeUser FROM TypeUser WHERE (IdTypeUser = SCOPE_IDENTITY())";
  5615. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5616. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameTypeUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameTypeUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5617. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5618. this._adapter.UpdateCommand.Connection = this.Connection;
  5619. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypeUser] SET [NameTypeUser] = @NameTypeUser WHERE (([IdTypeUser] =" +
  5620. " @Original_IdTypeUser) AND ([NameTypeUser] = @Original_NameTypeUser));\r\nSELECT I" +
  5621. "dTypeUser, NameTypeUser FROM TypeUser WHERE (IdTypeUser = @IdTypeUser)";
  5622. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameTypeUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameTypeUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5625. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NameTypeUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5626. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeUser", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5627. }
  5628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5630. private void InitConnection() {
  5631. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5632. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  5633. }
  5634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5636. private void InitCommandCollection() {
  5637. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5638. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5639. this._commandCollection[0].Connection = this.Connection;
  5640. this._commandCollection[0].CommandText = "SELECT IdTypeUser, NameTypeUser FROM dbo.TypeUser";
  5641. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5642. }
  5643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5645. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5646. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5647. public virtual int Fill(BookClubKMADataSet.TypeUserDataTable dataTable) {
  5648. this.Adapter.SelectCommand = this.CommandCollection[0];
  5649. if ((this.ClearBeforeFill == true)) {
  5650. dataTable.Clear();
  5651. }
  5652. int returnValue = this.Adapter.Fill(dataTable);
  5653. return returnValue;
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5658. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5659. public virtual BookClubKMADataSet.TypeUserDataTable GetData() {
  5660. this.Adapter.SelectCommand = this.CommandCollection[0];
  5661. BookClubKMADataSet.TypeUserDataTable dataTable = new BookClubKMADataSet.TypeUserDataTable();
  5662. this.Adapter.Fill(dataTable);
  5663. return dataTable;
  5664. }
  5665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5668. public virtual int Update(BookClubKMADataSet.TypeUserDataTable dataTable) {
  5669. return this.Adapter.Update(dataTable);
  5670. }
  5671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5673. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5674. public virtual int Update(BookClubKMADataSet dataSet) {
  5675. return this.Adapter.Update(dataSet, "TypeUser");
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5680. public virtual int Update(global::System.Data.DataRow dataRow) {
  5681. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5682. dataRow});
  5683. }
  5684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5687. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5688. return this.Adapter.Update(dataRows);
  5689. }
  5690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5693. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5694. public virtual int Delete(int Original_IdTypeUser, string Original_NameTypeUser) {
  5695. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdTypeUser));
  5696. if ((Original_NameTypeUser == null)) {
  5697. throw new global::System.ArgumentNullException("Original_NameTypeUser");
  5698. }
  5699. else {
  5700. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_NameTypeUser));
  5701. }
  5702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5703. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5704. != global::System.Data.ConnectionState.Open)) {
  5705. this.Adapter.DeleteCommand.Connection.Open();
  5706. }
  5707. try {
  5708. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5709. return returnValue;
  5710. }
  5711. finally {
  5712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5713. this.Adapter.DeleteCommand.Connection.Close();
  5714. }
  5715. }
  5716. }
  5717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5721. public virtual int Insert(string NameTypeUser) {
  5722. if ((NameTypeUser == null)) {
  5723. throw new global::System.ArgumentNullException("NameTypeUser");
  5724. }
  5725. else {
  5726. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(NameTypeUser));
  5727. }
  5728. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5729. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5730. != global::System.Data.ConnectionState.Open)) {
  5731. this.Adapter.InsertCommand.Connection.Open();
  5732. }
  5733. try {
  5734. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5735. return returnValue;
  5736. }
  5737. finally {
  5738. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5739. this.Adapter.InsertCommand.Connection.Close();
  5740. }
  5741. }
  5742. }
  5743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5746. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5747. public virtual int Update(string NameTypeUser, int Original_IdTypeUser, string Original_NameTypeUser, int IdTypeUser) {
  5748. if ((NameTypeUser == null)) {
  5749. throw new global::System.ArgumentNullException("NameTypeUser");
  5750. }
  5751. else {
  5752. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(NameTypeUser));
  5753. }
  5754. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdTypeUser));
  5755. if ((Original_NameTypeUser == null)) {
  5756. throw new global::System.ArgumentNullException("Original_NameTypeUser");
  5757. }
  5758. else {
  5759. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_NameTypeUser));
  5760. }
  5761. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdTypeUser));
  5762. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5763. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5764. != global::System.Data.ConnectionState.Open)) {
  5765. this.Adapter.UpdateCommand.Connection.Open();
  5766. }
  5767. try {
  5768. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5769. return returnValue;
  5770. }
  5771. finally {
  5772. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5773. this.Adapter.UpdateCommand.Connection.Close();
  5774. }
  5775. }
  5776. }
  5777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5780. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5781. public virtual int Update(string NameTypeUser, int Original_IdTypeUser, string Original_NameTypeUser) {
  5782. return this.Update(NameTypeUser, Original_IdTypeUser, Original_NameTypeUser, Original_IdTypeUser);
  5783. }
  5784. }
  5785. /// <summary>
  5786. ///Represents the connection and commands used to retrieve and save data.
  5787. ///</summary>
  5788. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5789. [global::System.ComponentModel.ToolboxItem(true)]
  5790. [global::System.ComponentModel.DataObjectAttribute(true)]
  5791. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5792. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5794. public partial class UserTableAdapter : global::System.ComponentModel.Component {
  5795. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5796. private global::System.Data.SqlClient.SqlConnection _connection;
  5797. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5798. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5799. private bool _clearBeforeFill;
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5802. public UserTableAdapter() {
  5803. this.ClearBeforeFill = true;
  5804. }
  5805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5807. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5808. get {
  5809. if ((this._adapter == null)) {
  5810. this.InitAdapter();
  5811. }
  5812. return this._adapter;
  5813. }
  5814. }
  5815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5817. internal global::System.Data.SqlClient.SqlConnection Connection {
  5818. get {
  5819. if ((this._connection == null)) {
  5820. this.InitConnection();
  5821. }
  5822. return this._connection;
  5823. }
  5824. set {
  5825. this._connection = value;
  5826. if ((this.Adapter.InsertCommand != null)) {
  5827. this.Adapter.InsertCommand.Connection = value;
  5828. }
  5829. if ((this.Adapter.DeleteCommand != null)) {
  5830. this.Adapter.DeleteCommand.Connection = value;
  5831. }
  5832. if ((this.Adapter.UpdateCommand != null)) {
  5833. this.Adapter.UpdateCommand.Connection = value;
  5834. }
  5835. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5836. if ((this.CommandCollection[i] != null)) {
  5837. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5838. }
  5839. }
  5840. }
  5841. }
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5844. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5845. get {
  5846. return this._transaction;
  5847. }
  5848. set {
  5849. this._transaction = value;
  5850. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5851. this.CommandCollection[i].Transaction = this._transaction;
  5852. }
  5853. if (((this.Adapter != null)
  5854. && (this.Adapter.DeleteCommand != null))) {
  5855. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5856. }
  5857. if (((this.Adapter != null)
  5858. && (this.Adapter.InsertCommand != null))) {
  5859. this.Adapter.InsertCommand.Transaction = this._transaction;
  5860. }
  5861. if (((this.Adapter != null)
  5862. && (this.Adapter.UpdateCommand != null))) {
  5863. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5864. }
  5865. }
  5866. }
  5867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5869. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5870. get {
  5871. if ((this._commandCollection == null)) {
  5872. this.InitCommandCollection();
  5873. }
  5874. return this._commandCollection;
  5875. }
  5876. }
  5877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5879. public bool ClearBeforeFill {
  5880. get {
  5881. return this._clearBeforeFill;
  5882. }
  5883. set {
  5884. this._clearBeforeFill = value;
  5885. }
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5889. private void InitAdapter() {
  5890. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5891. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5892. tableMapping.SourceTable = "Table";
  5893. tableMapping.DataSetTable = "User";
  5894. tableMapping.ColumnMappings.Add("IdUser", "IdUser");
  5895. tableMapping.ColumnMappings.Add("IdTypeUser", "IdTypeUser");
  5896. tableMapping.ColumnMappings.Add("Login", "Login");
  5897. tableMapping.ColumnMappings.Add("Password", "Password");
  5898. this._adapter.TableMappings.Add(tableMapping);
  5899. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5900. this._adapter.DeleteCommand.Connection = this.Connection;
  5901. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[User] WHERE (([IdUser] = @Original_IdUser) AND ([IdTypeUser] =" +
  5902. " @Original_IdTypeUser) AND ([Login] = @Original_Login) AND ([Password] = @Origin" +
  5903. "al_Password))";
  5904. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5905. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5906. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5907. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5908. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5909. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5910. this._adapter.InsertCommand.Connection = this.Connection;
  5911. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[User] ([IdTypeUser], [Login], [Password]) VALUES (@IdTypeUser," +
  5912. " @Login, @Password);\r\nSELECT IdUser, IdTypeUser, Login, Password FROM [User] WHE" +
  5913. "RE (IdUser = SCOPE_IDENTITY())";
  5914. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5915. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5916. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5917. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5918. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5919. this._adapter.UpdateCommand.Connection = this.Connection;
  5920. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[User] SET [IdTypeUser] = @IdTypeUser, [Login] = @Login, [Password] = @Password WHERE (([IdUser] = @Original_IdUser) AND ([IdTypeUser] = @Original_IdTypeUser) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password));
  5921. SELECT IdUser, IdTypeUser, Login, Password FROM [User] WHERE (IdUser = @IdUser)";
  5922. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5923. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5924. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5925. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5926. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5927. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5928. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5929. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5930. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdUser", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5931. }
  5932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5934. private void InitConnection() {
  5935. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5936. this._connection.ConnectionString = global::СУБД_Книжный_клуб.Properties.Settings.Default.BookClubKMAConnectionString;
  5937. }
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5940. private void InitCommandCollection() {
  5941. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5942. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5943. this._commandCollection[0].Connection = this.Connection;
  5944. this._commandCollection[0].CommandText = "SELECT IdUser, IdTypeUser, Login, Password FROM dbo.[User]";
  5945. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5946. }
  5947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5949. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5950. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5951. public virtual int Fill(BookClubKMADataSet.UserDataTable dataTable) {
  5952. this.Adapter.SelectCommand = this.CommandCollection[0];
  5953. if ((this.ClearBeforeFill == true)) {
  5954. dataTable.Clear();
  5955. }
  5956. int returnValue = this.Adapter.Fill(dataTable);
  5957. return returnValue;
  5958. }
  5959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5963. public virtual BookClubKMADataSet.UserDataTable GetData() {
  5964. this.Adapter.SelectCommand = this.CommandCollection[0];
  5965. BookClubKMADataSet.UserDataTable dataTable = new BookClubKMADataSet.UserDataTable();
  5966. this.Adapter.Fill(dataTable);
  5967. return dataTable;
  5968. }
  5969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5971. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5972. public virtual int Update(BookClubKMADataSet.UserDataTable dataTable) {
  5973. return this.Adapter.Update(dataTable);
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5978. public virtual int Update(BookClubKMADataSet dataSet) {
  5979. return this.Adapter.Update(dataSet, "User");
  5980. }
  5981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5984. public virtual int Update(global::System.Data.DataRow dataRow) {
  5985. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5986. dataRow});
  5987. }
  5988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5990. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5991. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5992. return this.Adapter.Update(dataRows);
  5993. }
  5994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5997. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5998. public virtual int Delete(int Original_IdUser, int Original_IdTypeUser, string Original_Login, string Original_Password) {
  5999. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdUser));
  6000. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdTypeUser));
  6001. if ((Original_Login == null)) {
  6002. throw new global::System.ArgumentNullException("Original_Login");
  6003. }
  6004. else {
  6005. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Login));
  6006. }
  6007. if ((Original_Password == null)) {
  6008. throw new global::System.ArgumentNullException("Original_Password");
  6009. }
  6010. else {
  6011. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Password));
  6012. }
  6013. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6014. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6015. != global::System.Data.ConnectionState.Open)) {
  6016. this.Adapter.DeleteCommand.Connection.Open();
  6017. }
  6018. try {
  6019. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6020. return returnValue;
  6021. }
  6022. finally {
  6023. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6024. this.Adapter.DeleteCommand.Connection.Close();
  6025. }
  6026. }
  6027. }
  6028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6032. public virtual int Insert(int IdTypeUser, string Login, string Password) {
  6033. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdTypeUser));
  6034. if ((Login == null)) {
  6035. throw new global::System.ArgumentNullException("Login");
  6036. }
  6037. else {
  6038. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Login));
  6039. }
  6040. if ((Password == null)) {
  6041. throw new global::System.ArgumentNullException("Password");
  6042. }
  6043. else {
  6044. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Password));
  6045. }
  6046. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6047. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6048. != global::System.Data.ConnectionState.Open)) {
  6049. this.Adapter.InsertCommand.Connection.Open();
  6050. }
  6051. try {
  6052. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6053. return returnValue;
  6054. }
  6055. finally {
  6056. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6057. this.Adapter.InsertCommand.Connection.Close();
  6058. }
  6059. }
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6065. public virtual int Update(int IdTypeUser, string Login, string Password, int Original_IdUser, int Original_IdTypeUser, string Original_Login, string Original_Password, int IdUser) {
  6066. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdTypeUser));
  6067. if ((Login == null)) {
  6068. throw new global::System.ArgumentNullException("Login");
  6069. }
  6070. else {
  6071. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Login));
  6072. }
  6073. if ((Password == null)) {
  6074. throw new global::System.ArgumentNullException("Password");
  6075. }
  6076. else {
  6077. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Password));
  6078. }
  6079. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdUser));
  6080. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdTypeUser));
  6081. if ((Original_Login == null)) {
  6082. throw new global::System.ArgumentNullException("Original_Login");
  6083. }
  6084. else {
  6085. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Login));
  6086. }
  6087. if ((Original_Password == null)) {
  6088. throw new global::System.ArgumentNullException("Original_Password");
  6089. }
  6090. else {
  6091. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Password));
  6092. }
  6093. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdUser));
  6094. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6095. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6096. != global::System.Data.ConnectionState.Open)) {
  6097. this.Adapter.UpdateCommand.Connection.Open();
  6098. }
  6099. try {
  6100. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6101. return returnValue;
  6102. }
  6103. finally {
  6104. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6105. this.Adapter.UpdateCommand.Connection.Close();
  6106. }
  6107. }
  6108. }
  6109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6112. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6113. public virtual int Update(int IdTypeUser, string Login, string Password, int Original_IdUser, int Original_IdTypeUser, string Original_Login, string Original_Password) {
  6114. return this.Update(IdTypeUser, Login, Password, Original_IdUser, Original_IdTypeUser, Original_Login, Original_Password, Original_IdUser);
  6115. }
  6116. }
  6117. /// <summary>
  6118. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6119. ///</summary>
  6120. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6121. [global::System.ComponentModel.ToolboxItem(true)]
  6122. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6123. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6125. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6126. private UpdateOrderOption _updateOrder;
  6127. private ManufacturerTableAdapter _manufacturerTableAdapter;
  6128. private OrderTableAdapter _orderTableAdapter;
  6129. private OrderProductTableAdapter _orderProductTableAdapter;
  6130. private OrderStatusTableAdapter _orderStatusTableAdapter;
  6131. private PickupPointTableAdapter _pickupPointTableAdapter;
  6132. private ProductTableAdapter _productTableAdapter;
  6133. private TypeUserTableAdapter _typeUserTableAdapter;
  6134. private UserTableAdapter _userTableAdapter;
  6135. private bool _backupDataSetBeforeUpdate;
  6136. private global::System.Data.IDbConnection _connection;
  6137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6139. public UpdateOrderOption UpdateOrder {
  6140. get {
  6141. return this._updateOrder;
  6142. }
  6143. set {
  6144. this._updateOrder = value;
  6145. }
  6146. }
  6147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6149. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6150. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6151. "a", "System.Drawing.Design.UITypeEditor")]
  6152. public ManufacturerTableAdapter ManufacturerTableAdapter {
  6153. get {
  6154. return this._manufacturerTableAdapter;
  6155. }
  6156. set {
  6157. this._manufacturerTableAdapter = value;
  6158. }
  6159. }
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6162. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6163. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6164. "a", "System.Drawing.Design.UITypeEditor")]
  6165. public OrderTableAdapter OrderTableAdapter {
  6166. get {
  6167. return this._orderTableAdapter;
  6168. }
  6169. set {
  6170. this._orderTableAdapter = value;
  6171. }
  6172. }
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6175. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6176. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6177. "a", "System.Drawing.Design.UITypeEditor")]
  6178. public OrderProductTableAdapter OrderProductTableAdapter {
  6179. get {
  6180. return this._orderProductTableAdapter;
  6181. }
  6182. set {
  6183. this._orderProductTableAdapter = value;
  6184. }
  6185. }
  6186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6188. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6189. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6190. "a", "System.Drawing.Design.UITypeEditor")]
  6191. public OrderStatusTableAdapter OrderStatusTableAdapter {
  6192. get {
  6193. return this._orderStatusTableAdapter;
  6194. }
  6195. set {
  6196. this._orderStatusTableAdapter = value;
  6197. }
  6198. }
  6199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6201. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6202. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6203. "a", "System.Drawing.Design.UITypeEditor")]
  6204. public PickupPointTableAdapter PickupPointTableAdapter {
  6205. get {
  6206. return this._pickupPointTableAdapter;
  6207. }
  6208. set {
  6209. this._pickupPointTableAdapter = value;
  6210. }
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6214. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6215. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6216. "a", "System.Drawing.Design.UITypeEditor")]
  6217. public ProductTableAdapter ProductTableAdapter {
  6218. get {
  6219. return this._productTableAdapter;
  6220. }
  6221. set {
  6222. this._productTableAdapter = value;
  6223. }
  6224. }
  6225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6227. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6228. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6229. "a", "System.Drawing.Design.UITypeEditor")]
  6230. public TypeUserTableAdapter TypeUserTableAdapter {
  6231. get {
  6232. return this._typeUserTableAdapter;
  6233. }
  6234. set {
  6235. this._typeUserTableAdapter = value;
  6236. }
  6237. }
  6238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6240. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6241. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6242. "a", "System.Drawing.Design.UITypeEditor")]
  6243. public UserTableAdapter UserTableAdapter {
  6244. get {
  6245. return this._userTableAdapter;
  6246. }
  6247. set {
  6248. this._userTableAdapter = value;
  6249. }
  6250. }
  6251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6253. public bool BackupDataSetBeforeUpdate {
  6254. get {
  6255. return this._backupDataSetBeforeUpdate;
  6256. }
  6257. set {
  6258. this._backupDataSetBeforeUpdate = value;
  6259. }
  6260. }
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6263. [global::System.ComponentModel.Browsable(false)]
  6264. public global::System.Data.IDbConnection Connection {
  6265. get {
  6266. if ((this._connection != null)) {
  6267. return this._connection;
  6268. }
  6269. if (((this._manufacturerTableAdapter != null)
  6270. && (this._manufacturerTableAdapter.Connection != null))) {
  6271. return this._manufacturerTableAdapter.Connection;
  6272. }
  6273. if (((this._orderTableAdapter != null)
  6274. && (this._orderTableAdapter.Connection != null))) {
  6275. return this._orderTableAdapter.Connection;
  6276. }
  6277. if (((this._orderProductTableAdapter != null)
  6278. && (this._orderProductTableAdapter.Connection != null))) {
  6279. return this._orderProductTableAdapter.Connection;
  6280. }
  6281. if (((this._orderStatusTableAdapter != null)
  6282. && (this._orderStatusTableAdapter.Connection != null))) {
  6283. return this._orderStatusTableAdapter.Connection;
  6284. }
  6285. if (((this._pickupPointTableAdapter != null)
  6286. && (this._pickupPointTableAdapter.Connection != null))) {
  6287. return this._pickupPointTableAdapter.Connection;
  6288. }
  6289. if (((this._productTableAdapter != null)
  6290. && (this._productTableAdapter.Connection != null))) {
  6291. return this._productTableAdapter.Connection;
  6292. }
  6293. if (((this._typeUserTableAdapter != null)
  6294. && (this._typeUserTableAdapter.Connection != null))) {
  6295. return this._typeUserTableAdapter.Connection;
  6296. }
  6297. if (((this._userTableAdapter != null)
  6298. && (this._userTableAdapter.Connection != null))) {
  6299. return this._userTableAdapter.Connection;
  6300. }
  6301. return null;
  6302. }
  6303. set {
  6304. this._connection = value;
  6305. }
  6306. }
  6307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6309. [global::System.ComponentModel.Browsable(false)]
  6310. public int TableAdapterInstanceCount {
  6311. get {
  6312. int count = 0;
  6313. if ((this._manufacturerTableAdapter != null)) {
  6314. count = (count + 1);
  6315. }
  6316. if ((this._orderTableAdapter != null)) {
  6317. count = (count + 1);
  6318. }
  6319. if ((this._orderProductTableAdapter != null)) {
  6320. count = (count + 1);
  6321. }
  6322. if ((this._orderStatusTableAdapter != null)) {
  6323. count = (count + 1);
  6324. }
  6325. if ((this._pickupPointTableAdapter != null)) {
  6326. count = (count + 1);
  6327. }
  6328. if ((this._productTableAdapter != null)) {
  6329. count = (count + 1);
  6330. }
  6331. if ((this._typeUserTableAdapter != null)) {
  6332. count = (count + 1);
  6333. }
  6334. if ((this._userTableAdapter != null)) {
  6335. count = (count + 1);
  6336. }
  6337. return count;
  6338. }
  6339. }
  6340. /// <summary>
  6341. ///Update rows in top-down order.
  6342. ///</summary>
  6343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6345. private int UpdateUpdatedRows(BookClubKMADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6346. int result = 0;
  6347. if ((this._typeUserTableAdapter != null)) {
  6348. global::System.Data.DataRow[] updatedRows = dataSet.TypeUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6349. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6350. if (((updatedRows != null)
  6351. && (0 < updatedRows.Length))) {
  6352. result = (result + this._typeUserTableAdapter.Update(updatedRows));
  6353. allChangedRows.AddRange(updatedRows);
  6354. }
  6355. }
  6356. if ((this._manufacturerTableAdapter != null)) {
  6357. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6358. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6359. if (((updatedRows != null)
  6360. && (0 < updatedRows.Length))) {
  6361. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  6362. allChangedRows.AddRange(updatedRows);
  6363. }
  6364. }
  6365. if ((this._orderStatusTableAdapter != null)) {
  6366. global::System.Data.DataRow[] updatedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6367. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6368. if (((updatedRows != null)
  6369. && (0 < updatedRows.Length))) {
  6370. result = (result + this._orderStatusTableAdapter.Update(updatedRows));
  6371. allChangedRows.AddRange(updatedRows);
  6372. }
  6373. }
  6374. if ((this._pickupPointTableAdapter != null)) {
  6375. global::System.Data.DataRow[] updatedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6376. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6377. if (((updatedRows != null)
  6378. && (0 < updatedRows.Length))) {
  6379. result = (result + this._pickupPointTableAdapter.Update(updatedRows));
  6380. allChangedRows.AddRange(updatedRows);
  6381. }
  6382. }
  6383. if ((this._userTableAdapter != null)) {
  6384. global::System.Data.DataRow[] updatedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6385. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6386. if (((updatedRows != null)
  6387. && (0 < updatedRows.Length))) {
  6388. result = (result + this._userTableAdapter.Update(updatedRows));
  6389. allChangedRows.AddRange(updatedRows);
  6390. }
  6391. }
  6392. if ((this._orderTableAdapter != null)) {
  6393. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6394. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6395. if (((updatedRows != null)
  6396. && (0 < updatedRows.Length))) {
  6397. result = (result + this._orderTableAdapter.Update(updatedRows));
  6398. allChangedRows.AddRange(updatedRows);
  6399. }
  6400. }
  6401. if ((this._productTableAdapter != null)) {
  6402. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6403. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6404. if (((updatedRows != null)
  6405. && (0 < updatedRows.Length))) {
  6406. result = (result + this._productTableAdapter.Update(updatedRows));
  6407. allChangedRows.AddRange(updatedRows);
  6408. }
  6409. }
  6410. if ((this._orderProductTableAdapter != null)) {
  6411. global::System.Data.DataRow[] updatedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6412. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6413. if (((updatedRows != null)
  6414. && (0 < updatedRows.Length))) {
  6415. result = (result + this._orderProductTableAdapter.Update(updatedRows));
  6416. allChangedRows.AddRange(updatedRows);
  6417. }
  6418. }
  6419. return result;
  6420. }
  6421. /// <summary>
  6422. ///Insert rows in top-down order.
  6423. ///</summary>
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6426. private int UpdateInsertedRows(BookClubKMADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6427. int result = 0;
  6428. if ((this._typeUserTableAdapter != null)) {
  6429. global::System.Data.DataRow[] addedRows = dataSet.TypeUser.Select(null, null, global::System.Data.DataViewRowState.Added);
  6430. if (((addedRows != null)
  6431. && (0 < addedRows.Length))) {
  6432. result = (result + this._typeUserTableAdapter.Update(addedRows));
  6433. allAddedRows.AddRange(addedRows);
  6434. }
  6435. }
  6436. if ((this._manufacturerTableAdapter != null)) {
  6437. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  6438. if (((addedRows != null)
  6439. && (0 < addedRows.Length))) {
  6440. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  6441. allAddedRows.AddRange(addedRows);
  6442. }
  6443. }
  6444. if ((this._orderStatusTableAdapter != null)) {
  6445. global::System.Data.DataRow[] addedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.Added);
  6446. if (((addedRows != null)
  6447. && (0 < addedRows.Length))) {
  6448. result = (result + this._orderStatusTableAdapter.Update(addedRows));
  6449. allAddedRows.AddRange(addedRows);
  6450. }
  6451. }
  6452. if ((this._pickupPointTableAdapter != null)) {
  6453. global::System.Data.DataRow[] addedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.Added);
  6454. if (((addedRows != null)
  6455. && (0 < addedRows.Length))) {
  6456. result = (result + this._pickupPointTableAdapter.Update(addedRows));
  6457. allAddedRows.AddRange(addedRows);
  6458. }
  6459. }
  6460. if ((this._userTableAdapter != null)) {
  6461. global::System.Data.DataRow[] addedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Added);
  6462. if (((addedRows != null)
  6463. && (0 < addedRows.Length))) {
  6464. result = (result + this._userTableAdapter.Update(addedRows));
  6465. allAddedRows.AddRange(addedRows);
  6466. }
  6467. }
  6468. if ((this._orderTableAdapter != null)) {
  6469. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  6470. if (((addedRows != null)
  6471. && (0 < addedRows.Length))) {
  6472. result = (result + this._orderTableAdapter.Update(addedRows));
  6473. allAddedRows.AddRange(addedRows);
  6474. }
  6475. }
  6476. if ((this._productTableAdapter != null)) {
  6477. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  6478. if (((addedRows != null)
  6479. && (0 < addedRows.Length))) {
  6480. result = (result + this._productTableAdapter.Update(addedRows));
  6481. allAddedRows.AddRange(addedRows);
  6482. }
  6483. }
  6484. if ((this._orderProductTableAdapter != null)) {
  6485. global::System.Data.DataRow[] addedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  6486. if (((addedRows != null)
  6487. && (0 < addedRows.Length))) {
  6488. result = (result + this._orderProductTableAdapter.Update(addedRows));
  6489. allAddedRows.AddRange(addedRows);
  6490. }
  6491. }
  6492. return result;
  6493. }
  6494. /// <summary>
  6495. ///Delete rows in bottom-up order.
  6496. ///</summary>
  6497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6499. private int UpdateDeletedRows(BookClubKMADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6500. int result = 0;
  6501. if ((this._orderProductTableAdapter != null)) {
  6502. global::System.Data.DataRow[] deletedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6503. if (((deletedRows != null)
  6504. && (0 < deletedRows.Length))) {
  6505. result = (result + this._orderProductTableAdapter.Update(deletedRows));
  6506. allChangedRows.AddRange(deletedRows);
  6507. }
  6508. }
  6509. if ((this._productTableAdapter != null)) {
  6510. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6511. if (((deletedRows != null)
  6512. && (0 < deletedRows.Length))) {
  6513. result = (result + this._productTableAdapter.Update(deletedRows));
  6514. allChangedRows.AddRange(deletedRows);
  6515. }
  6516. }
  6517. if ((this._orderTableAdapter != null)) {
  6518. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6519. if (((deletedRows != null)
  6520. && (0 < deletedRows.Length))) {
  6521. result = (result + this._orderTableAdapter.Update(deletedRows));
  6522. allChangedRows.AddRange(deletedRows);
  6523. }
  6524. }
  6525. if ((this._userTableAdapter != null)) {
  6526. global::System.Data.DataRow[] deletedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6527. if (((deletedRows != null)
  6528. && (0 < deletedRows.Length))) {
  6529. result = (result + this._userTableAdapter.Update(deletedRows));
  6530. allChangedRows.AddRange(deletedRows);
  6531. }
  6532. }
  6533. if ((this._pickupPointTableAdapter != null)) {
  6534. global::System.Data.DataRow[] deletedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6535. if (((deletedRows != null)
  6536. && (0 < deletedRows.Length))) {
  6537. result = (result + this._pickupPointTableAdapter.Update(deletedRows));
  6538. allChangedRows.AddRange(deletedRows);
  6539. }
  6540. }
  6541. if ((this._orderStatusTableAdapter != null)) {
  6542. global::System.Data.DataRow[] deletedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6543. if (((deletedRows != null)
  6544. && (0 < deletedRows.Length))) {
  6545. result = (result + this._orderStatusTableAdapter.Update(deletedRows));
  6546. allChangedRows.AddRange(deletedRows);
  6547. }
  6548. }
  6549. if ((this._manufacturerTableAdapter != null)) {
  6550. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6551. if (((deletedRows != null)
  6552. && (0 < deletedRows.Length))) {
  6553. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  6554. allChangedRows.AddRange(deletedRows);
  6555. }
  6556. }
  6557. if ((this._typeUserTableAdapter != null)) {
  6558. global::System.Data.DataRow[] deletedRows = dataSet.TypeUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6559. if (((deletedRows != null)
  6560. && (0 < deletedRows.Length))) {
  6561. result = (result + this._typeUserTableAdapter.Update(deletedRows));
  6562. allChangedRows.AddRange(deletedRows);
  6563. }
  6564. }
  6565. return result;
  6566. }
  6567. /// <summary>
  6568. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6569. ///</summary>
  6570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6572. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6573. if (((updatedRows == null)
  6574. || (updatedRows.Length < 1))) {
  6575. return updatedRows;
  6576. }
  6577. if (((allAddedRows == null)
  6578. || (allAddedRows.Count < 1))) {
  6579. return updatedRows;
  6580. }
  6581. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6582. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6583. global::System.Data.DataRow row = updatedRows[i];
  6584. if ((allAddedRows.Contains(row) == false)) {
  6585. realUpdatedRows.Add(row);
  6586. }
  6587. }
  6588. return realUpdatedRows.ToArray();
  6589. }
  6590. /// <summary>
  6591. ///Update all changes to the dataset.
  6592. ///</summary>
  6593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6595. public virtual int UpdateAll(BookClubKMADataSet dataSet) {
  6596. if ((dataSet == null)) {
  6597. throw new global::System.ArgumentNullException("dataSet");
  6598. }
  6599. if ((dataSet.HasChanges() == false)) {
  6600. return 0;
  6601. }
  6602. if (((this._manufacturerTableAdapter != null)
  6603. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  6604. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6605. "tring.");
  6606. }
  6607. if (((this._orderTableAdapter != null)
  6608. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  6609. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6610. "tring.");
  6611. }
  6612. if (((this._orderProductTableAdapter != null)
  6613. && (this.MatchTableAdapterConnection(this._orderProductTableAdapter.Connection) == false))) {
  6614. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6615. "tring.");
  6616. }
  6617. if (((this._orderStatusTableAdapter != null)
  6618. && (this.MatchTableAdapterConnection(this._orderStatusTableAdapter.Connection) == false))) {
  6619. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6620. "tring.");
  6621. }
  6622. if (((this._pickupPointTableAdapter != null)
  6623. && (this.MatchTableAdapterConnection(this._pickupPointTableAdapter.Connection) == false))) {
  6624. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6625. "tring.");
  6626. }
  6627. if (((this._productTableAdapter != null)
  6628. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  6629. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6630. "tring.");
  6631. }
  6632. if (((this._typeUserTableAdapter != null)
  6633. && (this.MatchTableAdapterConnection(this._typeUserTableAdapter.Connection) == false))) {
  6634. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6635. "tring.");
  6636. }
  6637. if (((this._userTableAdapter != null)
  6638. && (this.MatchTableAdapterConnection(this._userTableAdapter.Connection) == false))) {
  6639. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6640. "tring.");
  6641. }
  6642. global::System.Data.IDbConnection workConnection = this.Connection;
  6643. if ((workConnection == null)) {
  6644. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  6645. "ger TableAdapter property to a valid TableAdapter instance.");
  6646. }
  6647. bool workConnOpened = false;
  6648. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6649. == global::System.Data.ConnectionState.Broken)) {
  6650. workConnection.Close();
  6651. }
  6652. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6653. workConnection.Open();
  6654. workConnOpened = true;
  6655. }
  6656. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6657. if ((workTransaction == null)) {
  6658. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  6659. "ctions or the current state is not allowing the transaction to begin.");
  6660. }
  6661. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6662. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6663. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6664. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6665. int result = 0;
  6666. global::System.Data.DataSet backupDataSet = null;
  6667. if (this.BackupDataSetBeforeUpdate) {
  6668. backupDataSet = new global::System.Data.DataSet();
  6669. backupDataSet.Merge(dataSet);
  6670. }
  6671. try {
  6672. // ---- Prepare for update -----------
  6673. //
  6674. if ((this._manufacturerTableAdapter != null)) {
  6675. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  6676. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6677. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6678. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6679. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6680. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  6681. }
  6682. }
  6683. if ((this._orderTableAdapter != null)) {
  6684. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  6685. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6686. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6687. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6688. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6689. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  6690. }
  6691. }
  6692. if ((this._orderProductTableAdapter != null)) {
  6693. revertConnections.Add(this._orderProductTableAdapter, this._orderProductTableAdapter.Connection);
  6694. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6695. this._orderProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6696. if (this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6697. this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6698. adaptersWithAcceptChangesDuringUpdate.Add(this._orderProductTableAdapter.Adapter);
  6699. }
  6700. }
  6701. if ((this._orderStatusTableAdapter != null)) {
  6702. revertConnections.Add(this._orderStatusTableAdapter, this._orderStatusTableAdapter.Connection);
  6703. this._orderStatusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6704. this._orderStatusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6705. if (this._orderStatusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6706. this._orderStatusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6707. adaptersWithAcceptChangesDuringUpdate.Add(this._orderStatusTableAdapter.Adapter);
  6708. }
  6709. }
  6710. if ((this._pickupPointTableAdapter != null)) {
  6711. revertConnections.Add(this._pickupPointTableAdapter, this._pickupPointTableAdapter.Connection);
  6712. this._pickupPointTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6713. this._pickupPointTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6714. if (this._pickupPointTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6715. this._pickupPointTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6716. adaptersWithAcceptChangesDuringUpdate.Add(this._pickupPointTableAdapter.Adapter);
  6717. }
  6718. }
  6719. if ((this._productTableAdapter != null)) {
  6720. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  6721. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6722. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6723. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6724. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6725. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  6726. }
  6727. }
  6728. if ((this._typeUserTableAdapter != null)) {
  6729. revertConnections.Add(this._typeUserTableAdapter, this._typeUserTableAdapter.Connection);
  6730. this._typeUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6731. this._typeUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6732. if (this._typeUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6733. this._typeUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6734. adaptersWithAcceptChangesDuringUpdate.Add(this._typeUserTableAdapter.Adapter);
  6735. }
  6736. }
  6737. if ((this._userTableAdapter != null)) {
  6738. revertConnections.Add(this._userTableAdapter, this._userTableAdapter.Connection);
  6739. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6740. this._userTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6741. if (this._userTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6742. this._userTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6743. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableAdapter.Adapter);
  6744. }
  6745. }
  6746. //
  6747. //---- Perform updates -----------
  6748. //
  6749. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6750. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6751. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6752. }
  6753. else {
  6754. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6755. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6756. }
  6757. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6758. //
  6759. //---- Commit updates -----------
  6760. //
  6761. workTransaction.Commit();
  6762. if ((0 < allAddedRows.Count)) {
  6763. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6764. allAddedRows.CopyTo(rows);
  6765. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6766. global::System.Data.DataRow row = rows[i];
  6767. row.AcceptChanges();
  6768. }
  6769. }
  6770. if ((0 < allChangedRows.Count)) {
  6771. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6772. allChangedRows.CopyTo(rows);
  6773. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6774. global::System.Data.DataRow row = rows[i];
  6775. row.AcceptChanges();
  6776. }
  6777. }
  6778. }
  6779. catch (global::System.Exception ex) {
  6780. workTransaction.Rollback();
  6781. // ---- Restore the dataset -----------
  6782. if (this.BackupDataSetBeforeUpdate) {
  6783. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6784. dataSet.Clear();
  6785. dataSet.Merge(backupDataSet);
  6786. }
  6787. else {
  6788. if ((0 < allAddedRows.Count)) {
  6789. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6790. allAddedRows.CopyTo(rows);
  6791. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6792. global::System.Data.DataRow row = rows[i];
  6793. row.AcceptChanges();
  6794. row.SetAdded();
  6795. }
  6796. }
  6797. }
  6798. throw ex;
  6799. }
  6800. finally {
  6801. if (workConnOpened) {
  6802. workConnection.Close();
  6803. }
  6804. if ((this._manufacturerTableAdapter != null)) {
  6805. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  6806. this._manufacturerTableAdapter.Transaction = null;
  6807. }
  6808. if ((this._orderTableAdapter != null)) {
  6809. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  6810. this._orderTableAdapter.Transaction = null;
  6811. }
  6812. if ((this._orderProductTableAdapter != null)) {
  6813. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderProductTableAdapter]));
  6814. this._orderProductTableAdapter.Transaction = null;
  6815. }
  6816. if ((this._orderStatusTableAdapter != null)) {
  6817. this._orderStatusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderStatusTableAdapter]));
  6818. this._orderStatusTableAdapter.Transaction = null;
  6819. }
  6820. if ((this._pickupPointTableAdapter != null)) {
  6821. this._pickupPointTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pickupPointTableAdapter]));
  6822. this._pickupPointTableAdapter.Transaction = null;
  6823. }
  6824. if ((this._productTableAdapter != null)) {
  6825. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  6826. this._productTableAdapter.Transaction = null;
  6827. }
  6828. if ((this._typeUserTableAdapter != null)) {
  6829. this._typeUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeUserTableAdapter]));
  6830. this._typeUserTableAdapter.Transaction = null;
  6831. }
  6832. if ((this._userTableAdapter != null)) {
  6833. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableAdapter]));
  6834. this._userTableAdapter.Transaction = null;
  6835. }
  6836. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6837. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6838. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6839. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6840. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6841. adapter.AcceptChangesDuringUpdate = true;
  6842. }
  6843. }
  6844. }
  6845. return result;
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6849. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6850. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6851. }
  6852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6854. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6855. if ((this._connection != null)) {
  6856. return true;
  6857. }
  6858. if (((this.Connection == null)
  6859. || (inputConnection == null))) {
  6860. return true;
  6861. }
  6862. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6863. return true;
  6864. }
  6865. return false;
  6866. }
  6867. /// <summary>
  6868. ///Update Order Option
  6869. ///</summary>
  6870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6871. public enum UpdateOrderOption {
  6872. InsertUpdateDelete = 0,
  6873. UpdateInsertDelete = 1,
  6874. }
  6875. /// <summary>
  6876. ///Used to sort self-referenced table's rows
  6877. ///</summary>
  6878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6879. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6880. private global::System.Data.DataRelation _relation;
  6881. private int _childFirst;
  6882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6884. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6885. this._relation = relation;
  6886. if (childFirst) {
  6887. this._childFirst = -1;
  6888. }
  6889. else {
  6890. this._childFirst = 1;
  6891. }
  6892. }
  6893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6895. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6896. global::System.Diagnostics.Debug.Assert((row != null));
  6897. global::System.Data.DataRow root = row;
  6898. distance = 0;
  6899. 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>();
  6900. traversedRows[row] = row;
  6901. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6902. for (
  6903. ; ((parent != null)
  6904. && (traversedRows.ContainsKey(parent) == false));
  6905. ) {
  6906. distance = (distance + 1);
  6907. root = parent;
  6908. traversedRows[parent] = parent;
  6909. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6910. }
  6911. if ((distance == 0)) {
  6912. traversedRows.Clear();
  6913. traversedRows[row] = row;
  6914. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6915. for (
  6916. ; ((parent != null)
  6917. && (traversedRows.ContainsKey(parent) == false));
  6918. ) {
  6919. distance = (distance + 1);
  6920. root = parent;
  6921. traversedRows[parent] = parent;
  6922. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6923. }
  6924. }
  6925. return root;
  6926. }
  6927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6929. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6930. if (object.ReferenceEquals(row1, row2)) {
  6931. return 0;
  6932. }
  6933. if ((row1 == null)) {
  6934. return -1;
  6935. }
  6936. if ((row2 == null)) {
  6937. return 1;
  6938. }
  6939. int distance1 = 0;
  6940. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6941. int distance2 = 0;
  6942. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6943. if (object.ReferenceEquals(root1, root2)) {
  6944. return (this._childFirst * distance1.CompareTo(distance2));
  6945. }
  6946. else {
  6947. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6948. && (root2.Table != null)));
  6949. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6950. return -1;
  6951. }
  6952. else {
  6953. return 1;
  6954. }
  6955. }
  6956. }
  6957. }
  6958. }
  6959. }
  6960. #pragma warning restore 1591