5aa5f9e12cd2ed5f6959d4c2ef215dcdd5ce2667.svn-base 322 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>EntityFramework.SqlServer</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.Data.Entity.SqlServer.IDbSpatialValue">
  8. <summary>
  9. Adapter interface to make working with instances of <see cref="T:System.Data.Entity.Spatial.DbGeometry"/> or <see cref="T:System.Data.Entity.Spatial.DbGeography"/> easier.
  10. Implementing types wrap instances of DbGeography/DbGeometry and allow them to be consumed in a common way.
  11. This interface is implemented by wrapping types for two reasons:
  12. 1. The DbGeography/DbGeometry classes cannot directly implement internal interfaces because their members are virtual (behavior is not guaranteed).
  13. 2. The wrapping types ensure that instances of IDbSpatialValue handle the <see cref="T:System.NotImplementedException"/>s thrown
  14. by any unimplemented members of derived DbGeography/DbGeometry types that correspond to the properties and methods declared in the interface.
  15. </summary>
  16. </member>
  17. <member name="T:System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy">
  18. <summary>
  19. An <see cref="T:System.Data.Entity.Infrastructure.IDbExecutionStrategy"/> that doesn't affect the execution but will throw a more helpful exception if a transient failure is detected.
  20. </summary>
  21. </member>
  22. <member name="M:System.Data.Entity.SqlServer.IDbSpatialValueExtensionMethods.AsSpatialValue(System.Data.Entity.Spatial.DbGeography)">
  23. <summary>
  24. Returns an instance of <see cref="T:System.Data.Entity.SqlServer.IDbSpatialValue"/> that wraps the specified <see cref="T:System.Data.Entity.Spatial.DbGeography"/> value.
  25. IDbSpatialValue members are guaranteed not to throw the <see cref="T:System.NotImplementedException"/>s caused by unimplemented members of their wrapped values.
  26. </summary>
  27. <param name="geographyValue"> The geography instance to wrap </param>
  28. <returns>
  29. An instance of <see cref="T:System.Data.Entity.SqlServer.IDbSpatialValue"/> that wraps the specified geography value
  30. </returns>
  31. </member>
  32. <member name="M:System.Data.Entity.SqlServer.IDbSpatialValueExtensionMethods.AsSpatialValue(System.Data.Entity.Spatial.DbGeometry)">
  33. <summary>
  34. Returns an instance of <see cref="T:System.Data.Entity.SqlServer.IDbSpatialValue"/> that wraps the specified <see cref="T:System.Data.Entity.Spatial.DbGeometry"/> value.
  35. IDbSpatialValue members are guaranteed not to throw the <see cref="T:System.NotImplementedException"/>s caused by unimplemented members of their wrapped values.
  36. </summary>
  37. <param name="geometryValue"> The geometry instance to wrap </param>
  38. <returns>
  39. An instance of <see cref="T:System.Data.Entity.SqlServer.IDbSpatialValue"/> that wraps the specified geometry value
  40. </returns>
  41. </member>
  42. <member name="T:System.Data.Entity.SqlServer.Resources.Strings">
  43. <summary>
  44. Strongly-typed and parameterized string resources.
  45. </summary>
  46. </member>
  47. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.ArgumentIsNullOrWhitespace(System.Object)">
  48. <summary>
  49. A string like "The argument '{0}' cannot be null, empty or contain only white space."
  50. </summary>
  51. </member>
  52. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.ProviderReturnedNullForGetDbInformation(System.Object)">
  53. <summary>
  54. A string like "The provider returned null for the informationType '{0}'."
  55. </summary>
  56. </member>
  57. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.ProviderDoesNotSupportType(System.Object)">
  58. <summary>
  59. A string like "The underlying provider does not support the type '{0}'."
  60. </summary>
  61. </member>
  62. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.NoStoreTypeForEdmType(System.Object,System.Object)">
  63. <summary>
  64. A string like "There is no store type corresponding to the conceptual side type '{0}' of primitive type '{1}'."
  65. </summary>
  66. </member>
  67. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.Mapping_Provider_WrongManifestType(System.Object)">
  68. <summary>
  69. A string like "The provider manifest given is not of type '{0}'."
  70. </summary>
  71. </member>
  72. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.ADP_InternalProviderError(System.Object)">
  73. <summary>
  74. A string like "Internal .NET Framework Data Provider error {0}."
  75. </summary>
  76. </member>
  77. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_NeedSqlDataReader(System.Object)">
  78. <summary>
  79. A string like "Spatial readers can only be produced from readers of type SqlDataReader. A reader of type {0} was provided."
  80. </summary>
  81. </member>
  82. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_InvalidGeographyColumn(System.Object)">
  83. <summary>
  84. A string like "Expected a geography value, found a value of type {0}."
  85. </summary>
  86. </member>
  87. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_InvalidGeometryColumn(System.Object)">
  88. <summary>
  89. A string like "Expected a geometry value, found a value of type {0}."
  90. </summary>
  91. </member>
  92. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.Mapping_Provider_WrongConnectionType(System.Object)">
  93. <summary>
  94. A string like "The connection is not of type '{0}'."
  95. </summary>
  96. </member>
  97. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.Update_NotSupportedServerGenKey(System.Object)">
  98. <summary>
  99. A string like "Store-generated keys are only supported for identity columns. More than one key column is marked as server generated in table '{0}'."
  100. </summary>
  101. </member>
  102. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.Update_NotSupportedIdentityType(System.Object,System.Object)">
  103. <summary>
  104. A string like "Store-generated keys are only supported for identity columns. Key column '{0}' has type '{1}', which is not a valid type for an identity column."
  105. </summary>
  106. </member>
  107. <!-- Badly formed XML comment ignored for member "M:System.Data.Entity.SqlServer.Resources.Strings.Update_SqlEntitySetWithoutDmlFunctions(System.Object,System.Object,System.Object)" -->
  108. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.Cqt_General_UnsupportedExpression(System.Object)">
  109. <summary>
  110. A string like "The expression '{0}' is of an unsupported type. "
  111. </summary>
  112. </member>
  113. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_InvalidDatePartArgumentExpression(System.Object,System.Object)">
  114. <summary>
  115. A string like "The DATEPART argument to the '{0}.{1}' function must be a literal string."
  116. </summary>
  117. </member>
  118. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_InvalidDatePartArgumentValue(System.Object,System.Object,System.Object)">
  119. <summary>
  120. A string like "'{0}' is not a valid value for the DATEPART argument in the '{1}.{2}' function."
  121. </summary>
  122. </member>
  123. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_TypedNaNNotSupported(System.Object)">
  124. <summary>
  125. A string like "Constant expressions of type {0} with a value of NaN are not supported by SQL Server."
  126. </summary>
  127. </member>
  128. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_TypedPositiveInfinityNotSupported(System.Object,System.Object)">
  129. <summary>
  130. A string like "Constant expressions of type {0} with a value of {1}.PositiveInfinity are not supported by SQL Server."
  131. </summary>
  132. </member>
  133. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_TypedNegativeInfinityNotSupported(System.Object,System.Object)">
  134. <summary>
  135. A string like "Constant expressions of type {0} with a value of {1}.NegativeInfinity are not supported by SQL Server."
  136. </summary>
  137. </member>
  138. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_PrimitiveTypeNotSupportedPriorSql10(System.Object)">
  139. <summary>
  140. A string like "There is no store type that maps to the EDM type '{0}' on versions of SQL Server earlier than SQL Server 2008."
  141. </summary>
  142. </member>
  143. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_CanonicalFunctionNotSupportedPriorSql10(System.Object)">
  144. <summary>
  145. A string like "The EDM function '{0}' is not supported on versions of SQL Server earlier than SQL Server 2008."
  146. </summary>
  147. </member>
  148. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialServices_ProviderValueNotSqlType(System.Object)">
  149. <summary>
  150. A string like "The specified provider value is not compatible with this spatial services implementation. A value is required of type '{0}'."
  151. </summary>
  152. </member>
  153. <!-- Badly formed XML comment ignored for member "M:System.Data.Entity.SqlServer.Resources.Strings.InvalidDatabaseName(System.Object)" -->
  154. <member name="M:System.Data.Entity.SqlServer.Resources.Strings.SqlServerMigrationSqlGenerator_UnknownOperation(System.Object,System.Object)">
  155. <summary>
  156. A string like "The current migration SQL generator ({0}) is unable to generate SQL for operations of type '{1}'. Call SetSqlGenerator on your migrations configuration class to use a different SQL generator. To create a custom SQL generator that can handle this type of operation, add a new class that derives from {0} and override Generate(MigrationOperation)."
  157. </summary>
  158. </member>
  159. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_GeographyValueNotSqlCompatible">
  160. <summary>
  161. A string like "The specified DbGeography value could not be converted to a SQL Server compatible value."
  162. </summary>
  163. </member>
  164. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_GeometryValueNotSqlCompatible">
  165. <summary>
  166. A string like "The specified DbGeometry value could not be converted to a SQL Server compatible value."
  167. </summary>
  168. </member>
  169. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.UnableToDetermineStoreVersion">
  170. <summary>
  171. A string like "Could not determine storage version; a valid storage connection or a version hint is required."
  172. </summary>
  173. </member>
  174. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_Sql2008RequiredForSpatial">
  175. <summary>
  176. A string like "Spatial types and functions are only supported by SQL Server 2008 or later."
  177. </summary>
  178. </member>
  179. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_SqlTypesAssemblyNotFound">
  180. <summary>
  181. A string like "Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found. "
  182. </summary>
  183. </member>
  184. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_IncompleteCreateDatabase">
  185. <summary>
  186. A string like "The database creation succeeded, but the creation of the database objects failed. The consequent attempt to drop the database also failed. See InnerException for details."
  187. </summary>
  188. </member>
  189. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_IncompleteCreateDatabaseAggregate">
  190. <summary>
  191. A string like "See InnerExceptions for details."
  192. </summary>
  193. </member>
  194. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_MissingInitialCatalog">
  195. <summary>
  196. A string like "Unable to complete operation. The supplied SqlConnection does not specify an initial catalog or AttachDBFileName."
  197. </summary>
  198. </member>
  199. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_CannotDeleteDatabaseNoInitialCatalog">
  200. <summary>
  201. A string like "Unable to delete the database. There is no database that corresponds to the given AttachDBFileName."
  202. </summary>
  203. </member>
  204. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_CannotTellIfDatabaseExists">
  205. <summary>
  206. A string like "A connection to the specified database could not be opened. See InnerException for details. However, there is a database registered with the server that corresponds to the given AttachDbFileName."
  207. </summary>
  208. </member>
  209. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_CredentialsMissingForMasterConnection">
  210. <summary>
  211. A string like "This operation requires a connection to the 'master' database. Unable to create a connection to the 'master' database because the original database connection has been opened and credentials have been removed from the connection string. Supply an unopened connection."
  212. </summary>
  213. </member>
  214. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ApplyNotSupportedOnSql8">
  215. <summary>
  216. A string like "The execution of this query requires the APPLY operator, which is not supported in versions of SQL Server earlier than SQL Server 2005."
  217. </summary>
  218. </member>
  219. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_NiladicFunctionsCannotHaveParameters">
  220. <summary>
  221. A string like "Functions listed in the provider manifest that are attributed as NiladicFunction='true' cannot have parameter declarations."
  222. </summary>
  223. </member>
  224. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ParameterForLimitNotSupportedOnSql8">
  225. <summary>
  226. A string like "Parameters as arguments to a TOP sub-clause and a LIMIT sub-clause in a query, or a LimitExpression in a command tree, are not supported in versions of SQL Server earlier than SQL Server 2005."
  227. </summary>
  228. </member>
  229. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ParameterForSkipNotSupportedOnSql8">
  230. <summary>
  231. A string like "Parameters as arguments to a SKIP sub-clause in a query, or a SkipExpression in a command tree, are not supported in versions of SQL Server earlier than SQL Server 2005."
  232. </summary>
  233. </member>
  234. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.Spatial_WellKnownGeographyValueNotValid">
  235. <summary>
  236. A string like "The specified DbWellKnownGeographyValue does not contain either Well-Known Text or Well-Known Binary."
  237. </summary>
  238. </member>
  239. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.Spatial_WellKnownGeometryValueNotValid">
  240. <summary>
  241. A string like "The specified DbWellKnownGeometryValue does not contain either Well-Known Text or Well-Known Binary."
  242. </summary>
  243. </member>
  244. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoSrid">
  245. <summary>
  246. A string like "A Spatial Reference System Identifier (SRID) value could not be retrieved from the specified DbGeography value."
  247. </summary>
  248. </member>
  249. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoWkbOrWkt">
  250. <summary>
  251. A string like "The specified DbGeography value did not provide either Well-Known Binary or Well-Known Text."
  252. </summary>
  253. </member>
  254. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoSrid">
  255. <summary>
  256. A string like "A Spatial Reference System Identifier (SRID) value could not be retrieved from the specified DbGeometry value."
  257. </summary>
  258. </member>
  259. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoWkbOrWkt">
  260. <summary>
  261. A string like "The specified DbGeometry value did not provide either Well-Known Binary or Well-Known Text."
  262. </summary>
  263. </member>
  264. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.TransientExceptionDetected">
  265. <summary>
  266. A string like "An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy."
  267. </summary>
  268. </member>
  269. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.ELinq_DbFunctionDirectCall">
  270. <summary>
  271. A string like "This function can only be invoked from LINQ to Entities."
  272. </summary>
  273. </member>
  274. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.AutomaticMigration">
  275. <summary>
  276. A string like "AutomaticMigration"
  277. </summary>
  278. </member>
  279. <member name="T:System.Data.Entity.SqlServer.Resources.Error">
  280. <summary>
  281. Strongly-typed and parameterized exception factory.
  282. </summary>
  283. </member>
  284. <!-- Badly formed XML comment ignored for member "M:System.Data.Entity.SqlServer.Resources.Error.InvalidDatabaseName(System.Object)" -->
  285. <member name="M:System.Data.Entity.SqlServer.Resources.Error.SqlServerMigrationSqlGenerator_UnknownOperation(System.Object,System.Object)">
  286. <summary>
  287. InvalidOperationException with message like "The current migration SQL generator ({0}) is unable to generate SQL for operations of type '{1}'. Call SetSqlGenerator on your migrations configuration class to use a different SQL generator. To create a custom SQL generator that can handle this type of operation, add a new class that derives from {0} and override Generate(MigrationOperation)."
  288. </summary>
  289. </member>
  290. <member name="M:System.Data.Entity.SqlServer.Resources.Error.ArgumentOutOfRange(System.String)">
  291. <summary>
  292. The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
  293. </summary>
  294. </member>
  295. <member name="M:System.Data.Entity.SqlServer.Resources.Error.NotImplemented">
  296. <summary>
  297. The exception that is thrown when the author has yet to implement the logic at this point in the program. This can act as an exception based TODO tag.
  298. </summary>
  299. </member>
  300. <member name="M:System.Data.Entity.SqlServer.Resources.Error.NotSupported">
  301. <summary>
  302. The exception that is thrown when an invoked method is not supported, or when there is an attempt to
  303. read, seek, or write to a stream that does not support the invoked functionality.
  304. </summary>
  305. </member>
  306. <member name="T:System.Data.Entity.SqlServer.Resources.EntityRes">
  307. <summary>
  308. AutoGenerated resource class. Usage:
  309. string s = EntityRes.GetString(EntityRes.MyIdenfitier);
  310. </summary>
  311. </member>
  312. <member name="T:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy">
  313. <summary>
  314. An <see cref="T:System.Data.Entity.Infrastructure.IDbExecutionStrategy"/> that retries actions that throw exceptions caused by SQL Azure transient failures.
  315. </summary>
  316. <remarks>
  317. This execution strategy will retry the operation on <see cref="T:System.TimeoutException"/> and <see cref="T:System.Data.SqlClient.SqlException"/>
  318. if the <see cref="P:System.Data.SqlClient.SqlException.Errors"/> contains any of the following error numbers:
  319. 40613, 40501, 40197, 10929, 10928, 10060, 10054, 10053, 233, 64 and 20
  320. </remarks>
  321. </member>
  322. <member name="M:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy.#ctor">
  323. <summary>
  324. Creates a new instance of <see cref="T:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy"/>.
  325. </summary>
  326. <remarks>
  327. The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.
  328. </remarks>
  329. </member>
  330. <member name="M:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy.#ctor(System.Int32,System.TimeSpan)">
  331. <summary>
  332. Creates a new instance of <see cref="T:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy"/> with the specified limits for
  333. number of retries and the delay between retries.
  334. </summary>
  335. <param name="maxRetryCount"> The maximum number of retry attempts. </param>
  336. <param name="maxDelay"> The maximum delay in milliseconds between retries. </param>
  337. </member>
  338. <member name="M:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy.ShouldRetryOn(System.Exception)">
  339. <inheritdoc/>
  340. </member>
  341. <member name="T:System.Data.Entity.SqlServer.SqlAzureRetriableExceptionDetector">
  342. <summary>
  343. Detects the exceptions caused by SQL Azure transient failures.
  344. </summary>
  345. </member>
  346. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendSql(System.String)">
  347. <summary>
  348. Appends raw SQL into the string builder.
  349. </summary>
  350. <param name="text"> Raw SQL string to append into the string builder. </param>
  351. </member>
  352. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendNewLine">
  353. <summary>
  354. Appends new line for visual formatting or for ending a comment.
  355. </summary>
  356. </member>
  357. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendSqlInvariantFormat(System.String,System.Object[])">
  358. <summary>
  359. Append raw SQL into the string builder with formatting options and invariant culture formatting.
  360. </summary>
  361. <param name="format"> A composite format string. </param>
  362. <param name="args"> An array of objects to format. </param>
  363. </member>
  364. <member name="T:System.Data.Entity.SqlServer.SqlFunctions">
  365. <summary>
  366. Contains function stubs that expose SqlServer methods in Linq to Entities.
  367. </summary>
  368. </member>
  369. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.ChecksumAggregate(System.Collections.Generic.IEnumerable{System.Int32})">
  370. <summary>Returns the checksum of the values in a collection. Null values are ignored.</summary>
  371. <returns>The checksum computed from the input collection.</returns>
  372. <param name="arg">The collection of values over which the checksum is computed.</param>
  373. </member>
  374. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.ChecksumAggregate(System.Collections.Generic.IEnumerable{System.Nullable{System.Int32}})">
  375. <summary>Returns the checksum of the values in a collection. Null values are ignored.</summary>
  376. <returns>The checksum computed from the input collection.</returns>
  377. <param name="arg">The collection of values over which the checksum is computed.</param>
  378. </member>
  379. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Ascii(System.String)">
  380. <summary>Returns the ASCII code value of the left-most character of a character expression.</summary>
  381. <returns>The ASCII code of the first character in the input string.</returns>
  382. <param name="arg">A valid string.</param>
  383. </member>
  384. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Char(System.Nullable{System.Int32})">
  385. <summary>Returns the character that corresponds to the specified integer ASCII value.</summary>
  386. <returns>The character that corresponds to the specified ASCII value.</returns>
  387. <param name="arg">An ASCII code.</param>
  388. </member>
  389. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.String,System.String)">
  390. <summary>Returns the starting position of one expression found within another expression.</summary>
  391. <returns>The starting position of target if it is found in toSearch .</returns>
  392. <param name="toSearch">The string expression to be searched.</param>
  393. <param name="target">The string expression to be found.</param>
  394. </member>
  395. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.Byte[],System.Byte[])">
  396. <summary>Returns the starting position of one expression found within another expression.</summary>
  397. <returns>The starting position of target if it is found in toSearch .</returns>
  398. <param name="toSearch">The string expression to be searched.</param>
  399. <param name="target">The string expression to be found.</param>
  400. </member>
  401. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.String,System.String,System.Nullable{System.Int32})">
  402. <summary>Returns the starting position of one expression found within another expression.</summary>
  403. <returns>The starting position of target if it is found in toSearch .</returns>
  404. <param name="toSearch">The string expression to be searched.</param>
  405. <param name="target">The string expression to be found.</param>
  406. <param name="startLocation">The character position in toSearch where searching begins.</param>
  407. </member>
  408. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.Byte[],System.Byte[],System.Nullable{System.Int32})">
  409. <summary>Returns the starting position of one expression found within another expression.</summary>
  410. <returns>The starting position of target if it is found in toSearch .</returns>
  411. <param name="toSearch">The string expression to be searched.</param>
  412. <param name="target">The string expression to be found.</param>
  413. <param name="startLocation">The character position in toSearch where searching begins.</param>
  414. </member>
  415. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.String,System.String,System.Nullable{System.Int64})">
  416. <summary>Returns the starting position of one expression found within another expression.</summary>
  417. <returns>
  418. A <see cref="T:System.Nullable`1" /> of <see cref="T:System.Int64" /> value that is the starting position of target if it is found in toSearch .
  419. </returns>
  420. <param name="toSearch">The string expression to be searched.</param>
  421. <param name="target">The string expression to be found.</param>
  422. <param name="startLocation">The character position in toSearch where searching begins.</param>
  423. </member>
  424. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CharIndex(System.Byte[],System.Byte[],System.Nullable{System.Int64})">
  425. <summary>Returns the starting position of one expression found within another expression.</summary>
  426. <returns>The starting position of target if it is found in toSearch .</returns>
  427. <param name="toSearch">The string expression to be searched.</param>
  428. <param name="target">The string expression to be found.</param>
  429. <param name="startLocation">The character position in toSearch at which searching begins.</param>
  430. </member>
  431. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Difference(System.String,System.String)">
  432. <summary>Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.</summary>
  433. <returns>The SOUNDEX difference between the two strings.</returns>
  434. <param name="string1">The first string.</param>
  435. <param name="string2">The second string.</param>
  436. </member>
  437. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.NChar(System.Nullable{System.Int32})">
  438. <summary>Returns the Unicode character with the specified integer code, as defined by the Unicode standard.</summary>
  439. <returns>The character that corresponds to the input character code.</returns>
  440. <param name="arg">A character code.</param>
  441. </member>
  442. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.PatIndex(System.String,System.String)">
  443. <summary>Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types.</summary>
  444. <returns>The starting character position where the string pattern was found.</returns>
  445. <param name="stringPattern">A string pattern to search for.</param>
  446. <param name="target">The string to search.</param>
  447. </member>
  448. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.QuoteName(System.String)">
  449. <summary>Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.</summary>
  450. <returns>The original string with brackets added.</returns>
  451. <param name="stringArg">The expression that quote characters will be added to.</param>
  452. </member>
  453. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.QuoteName(System.String,System.String)">
  454. <summary>Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.</summary>
  455. <returns>The original string with the specified quote characters added.</returns>
  456. <param name="stringArg">The expression that quote characters will be added to.</param>
  457. <param name="quoteCharacter">The one-character string to use as the delimiter. It can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.</param>
  458. </member>
  459. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Replicate(System.String,System.Nullable{System.Int32})">
  460. <summary>Repeats a string value a specified number of times.</summary>
  461. <returns>The target string, repeated the number of times specified by count .</returns>
  462. <param name="target">A valid string.</param>
  463. <param name="count">The value that specifies how many time to repeat target .</param>
  464. </member>
  465. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.SoundCode(System.String)">
  466. <summary>Converts an alphanumeric string to a four-character (SOUNDEX) code to find similar-sounding words or names.</summary>
  467. <returns>The SOUNDEX code of the input string.</returns>
  468. <param name="arg">A valid string.</param>
  469. </member>
  470. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Space(System.Nullable{System.Int32})">
  471. <summary>Returns a string of repeated spaces.</summary>
  472. <returns>A string that consists of the specified number of spaces.</returns>
  473. <param name="arg1">The number of spaces. If negative, a null string is returned.</param>
  474. </member>
  475. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Double})">
  476. <summary>Returns character data converted from numeric data.</summary>
  477. <returns>The numeric input expression converted to a string.</returns>
  478. <param name="number">A numeric expression.</param>
  479. </member>
  480. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Decimal})">
  481. <summary>Returns character data converted from numeric data.</summary>
  482. <returns>The input expression converted to a string.</returns>
  483. <param name="number">A numeric expression.</param>
  484. </member>
  485. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Double},System.Nullable{System.Int32})">
  486. <summary>Returns character data converted from numeric data.</summary>
  487. <returns>The numeric input expression converted to a string.</returns>
  488. <param name="number">A numeric expression.</param>
  489. <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
  490. </member>
  491. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Decimal},System.Nullable{System.Int32})">
  492. <summary>Returns character data converted from numeric data.</summary>
  493. <returns>The input expression converted to a string.</returns>
  494. <param name="number">A numeric expression.</param>
  495. <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
  496. </member>
  497. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Double},System.Nullable{System.Int32},System.Nullable{System.Int32})">
  498. <summary>Returns character data converted from numeric data.</summary>
  499. <returns>The numeric input expression converted to a string.</returns>
  500. <param name="number">A numeric expression.</param>
  501. <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
  502. <param name="decimalArg">The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.</param>
  503. </member>
  504. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.StringConvert(System.Nullable{System.Decimal},System.Nullable{System.Int32},System.Nullable{System.Int32})">
  505. <summary>Returns character data converted from numeric data.</summary>
  506. <returns>The input expression converted to a string.</returns>
  507. <param name="number">A numeric expression.</param>
  508. <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
  509. <param name="decimalArg">The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.</param>
  510. </member>
  511. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Stuff(System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.String)">
  512. <summary>Inserts a string into another string. It deletes a specified length of characters in the target string at the start position and then inserts the second string into the target string at the start position.</summary>
  513. <returns>A string consisting of the two strings.</returns>
  514. <param name="stringInput">The target string.</param>
  515. <param name="start">The character position in stringinput where the replacement string is to be inserted.</param>
  516. <param name="length">The number of characters to delete from stringInput . If length is longer than stringInput , deletion occurs up to the last character in stringReplacement .</param>
  517. <param name="stringReplacement">The substring to be inserted into stringInput .</param>
  518. </member>
  519. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Unicode(System.String)">
  520. <summary>Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.</summary>
  521. <returns>The character code for the first character in the input string.</returns>
  522. <param name="arg">A valid string.</param>
  523. </member>
  524. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Acos(System.Nullable{System.Double})">
  525. <summary>A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.</summary>
  526. <returns>The angle, in radians, defined by the input cosine value.</returns>
  527. <param name="arg1">The cosine of an angle.</param>
  528. </member>
  529. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Acos(System.Nullable{System.Decimal})">
  530. <summary>A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.</summary>
  531. <returns>An angle, measured in radians.</returns>
  532. <param name="arg1">The cosine of an angle.</param>
  533. </member>
  534. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Asin(System.Nullable{System.Double})">
  535. <summary>A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.</summary>
  536. <returns>An angle, measured in radians.</returns>
  537. <param name="arg">The sine of an angle.</param>
  538. </member>
  539. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Asin(System.Nullable{System.Decimal})">
  540. <summary>A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.</summary>
  541. <returns>An angle, measured in radians.</returns>
  542. <param name="arg">The sine of an angle.</param>
  543. </member>
  544. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Atan(System.Nullable{System.Double})">
  545. <summary>A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.</summary>
  546. <returns>An angle, measured in radians.</returns>
  547. <param name="arg">The tangent of an angle.</param>
  548. </member>
  549. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Atan(System.Nullable{System.Decimal})">
  550. <summary>A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.</summary>
  551. <returns>An angle, measured in radians.</returns>
  552. <param name="arg">The tangent of an angle.</param>
  553. </member>
  554. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Atan2(System.Nullable{System.Double},System.Nullable{System.Double})">
  555. <summary>Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.</summary>
  556. <returns>An angle, measured in radians.</returns>
  557. <param name="arg1">The y-coordinate of a point.</param>
  558. <param name="arg2">The x-coordinate of a point.</param>
  559. </member>
  560. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Atan2(System.Nullable{System.Decimal},System.Nullable{System.Decimal})">
  561. <summary>Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.</summary>
  562. <returns>An angle, measured in radians.</returns>
  563. <param name="arg1">The y-coordinate of a point.</param>
  564. <param name="arg2">The x-coordinate of a point.</param>
  565. </member>
  566. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Cos(System.Nullable{System.Double})">
  567. <summary>Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.</summary>
  568. <returns>The trigonometric cosine of the specified angle.</returns>
  569. <param name="arg">An angle, measured in radians.</param>
  570. </member>
  571. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Cos(System.Nullable{System.Decimal})">
  572. <summary>Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.</summary>
  573. <returns>The trigonometric cosine of the specified angle.</returns>
  574. <param name="arg">An angle, measured in radians.</param>
  575. </member>
  576. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Cot(System.Nullable{System.Double})">
  577. <summary>A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.</summary>
  578. <returns>The trigonometric cotangent of the specified angle.</returns>
  579. <param name="arg">An angle, measured in radians.</param>
  580. </member>
  581. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Cot(System.Nullable{System.Decimal})">
  582. <summary>A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.</summary>
  583. <returns>The trigonometric cotangent of the specified angle.</returns>
  584. <param name="arg">An angle, measured in radians.</param>
  585. </member>
  586. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Degrees(System.Nullable{System.Int32})">
  587. <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
  588. <returns>The specified angle converted to degrees.</returns>
  589. <param name="arg1">An angle, measured in radians.</param>
  590. </member>
  591. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Degrees(System.Nullable{System.Int64})">
  592. <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
  593. <returns>The specified angle converted to degrees.</returns>
  594. <param name="arg1">An angle, measured in radians.</param>
  595. </member>
  596. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Degrees(System.Nullable{System.Decimal})">
  597. <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
  598. <returns>The specified angle converted to degrees.</returns>
  599. <param name="arg1">An angle, measured in radians.</param>
  600. </member>
  601. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Degrees(System.Nullable{System.Double})">
  602. <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
  603. <returns>The specified angle converted to degrees.</returns>
  604. <param name="arg1">An angle, measured in radians.</param>
  605. </member>
  606. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Exp(System.Nullable{System.Double})">
  607. <summary>Returns the exponential value of the specified float expression.</summary>
  608. <returns>The constant e raised to the power of the input value.</returns>
  609. <param name="arg">The input value.</param>
  610. </member>
  611. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Exp(System.Nullable{System.Decimal})">
  612. <summary>Returns the exponential value of the specified float expression.</summary>
  613. <returns>The constant e raised to the power of the input value.</returns>
  614. <param name="arg">The input value.</param>
  615. </member>
  616. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Log(System.Nullable{System.Double})">
  617. <summary>Returns the natural logarithm of the specified input value.</summary>
  618. <returns>The natural logarithm of the input value.</returns>
  619. <param name="arg">A numeric expression.</param>
  620. </member>
  621. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Log(System.Nullable{System.Decimal})">
  622. <summary>Returns the natural logarithm of the specified input value.</summary>
  623. <returns>The natural logarithm of the input value.</returns>
  624. <param name="arg">A numeric expression.</param>
  625. </member>
  626. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Log10(System.Nullable{System.Double})">
  627. <summary>Returns the base-10 logarithm of the specified input value.</summary>
  628. <returns>The base-10 logarithm of the input value.</returns>
  629. <param name="arg">A numeric expression.</param>
  630. </member>
  631. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Log10(System.Nullable{System.Decimal})">
  632. <summary>Returns the base-10 logarithm of the specified input value.</summary>
  633. <returns>The base-10 logarithm of the input value.</returns>
  634. <param name="arg">A numeric expression.</param>
  635. </member>
  636. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Pi">
  637. <summary>Returns the constant value of pi.</summary>
  638. <returns>The numeric value of pi.</returns>
  639. </member>
  640. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Radians(System.Nullable{System.Int32})">
  641. <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
  642. <returns>The radian measure of the specified angle.</returns>
  643. <param name="arg">The angle, measured in degrees</param>
  644. </member>
  645. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Radians(System.Nullable{System.Int64})">
  646. <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
  647. <returns>The radian measure of the specified angle.</returns>
  648. <param name="arg">The angle, measured in degrees</param>
  649. </member>
  650. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Radians(System.Nullable{System.Decimal})">
  651. <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
  652. <returns>The radian measure of the specified angle.</returns>
  653. <param name="arg">The angle, measured in degrees.</param>
  654. </member>
  655. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Radians(System.Nullable{System.Double})">
  656. <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
  657. <returns>The radian measure of the specified angle.</returns>
  658. <param name="arg">The angle, measured in degrees.</param>
  659. </member>
  660. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Rand">
  661. <summary>Returns a pseudo-random float value from 0 through 1, exclusive.</summary>
  662. <returns>The pseudo-random value.</returns>
  663. </member>
  664. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Rand(System.Nullable{System.Int32})">
  665. <summary>Returns a pseudo-random float value from 0 through 1, exclusive.</summary>
  666. <returns>The pseudo-random value.</returns>
  667. <param name="seed">The seed value. If seed is not specified, the SQL Server Database Engine assigns a seed value at random. For a specified seed value, the result returned is always the same.</param>
  668. </member>
  669. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sign(System.Nullable{System.Int32})">
  670. <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
  671. <returns>The sign of the input expression.</returns>
  672. <param name="arg">A numeric expression.</param>
  673. </member>
  674. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sign(System.Nullable{System.Int64})">
  675. <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
  676. <returns>The sign of the input expression.</returns>
  677. <param name="arg">A numeric expression.</param>
  678. </member>
  679. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sign(System.Nullable{System.Decimal})">
  680. <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
  681. <returns>The sign of the input expression.</returns>
  682. <param name="arg">A numeric expression.</param>
  683. </member>
  684. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sign(System.Nullable{System.Double})">
  685. <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
  686. <returns>The sign of the input expression.</returns>
  687. <param name="arg">A numeric expression.</param>
  688. </member>
  689. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sin(System.Nullable{System.Decimal})">
  690. <summary>Returns the trigonometric sine of the specified angle.</summary>
  691. <returns>The trigonometric sine of the input expression.</returns>
  692. <param name="arg">An angle, measured in radians.</param>
  693. </member>
  694. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Sin(System.Nullable{System.Double})">
  695. <summary>Returns the trigonometric sine of the specified angle.</summary>
  696. <returns>The trigonometric sine of the input expression.</returns>
  697. <param name="arg">An angle, measured in radians.</param>
  698. </member>
  699. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.SquareRoot(System.Nullable{System.Double})">
  700. <summary>Returns the square root of the specified number.</summary>
  701. <returns>The square root of the input value.</returns>
  702. <param name="arg">A numeric expression.</param>
  703. </member>
  704. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.SquareRoot(System.Nullable{System.Decimal})">
  705. <summary>Returns the square root of the specified number.</summary>
  706. <returns>The square root of the input value.</returns>
  707. <param name="arg">A numeric expression.</param>
  708. </member>
  709. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Square(System.Nullable{System.Double})">
  710. <summary>Returns the square of the specified number.</summary>
  711. <returns>The square of the input value.</returns>
  712. <param name="arg1">A numeric expression.</param>
  713. </member>
  714. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Square(System.Nullable{System.Decimal})">
  715. <summary>Returns the square of the specified number.</summary>
  716. <returns>The square of the input value.</returns>
  717. <param name="arg1">A numeric expression.</param>
  718. </member>
  719. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Tan(System.Nullable{System.Double})">
  720. <summary>Returns the trigonometric tangent of the input expression.</summary>
  721. <returns>The tangent of the input angle.</returns>
  722. <param name="arg">An angle, measured in radians.</param>
  723. </member>
  724. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Tan(System.Nullable{System.Decimal})">
  725. <summary>Returns the trigonometric tangent of the input expression.</summary>
  726. <returns>The tangent of the input angle.</returns>
  727. <param name="arg">An angle, measured in radians.</param>
  728. </member>
  729. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateAdd(System.String,System.Nullable{System.Double},System.Nullable{System.DateTime})">
  730. <summary>Returns a new datetime value based on adding an interval to the specified date.</summary>
  731. <returns>The new date.</returns>
  732. <param name="datePartArg">The part of the date to increment. </param>
  733. <param name="number">The value used to increment a date by a specified amount.</param>
  734. <param name="date">The date to increment.</param>
  735. </member>
  736. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateAdd(System.String,System.Nullable{System.Double},System.Nullable{System.TimeSpan})">
  737. <summary>Returns a new time span value based on adding an interval to the specified time span.</summary>
  738. <returns>The new time span.</returns>
  739. <param name="datePartArg">The part of the date to increment.</param>
  740. <param name="number">The value used to increment a date by a specified amount.</param>
  741. <param name="time">The time span to increment.</param>
  742. </member>
  743. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateAdd(System.String,System.Nullable{System.Double},System.Nullable{System.DateTimeOffset})">
  744. <summary>Returns a new date value based on adding an interval to the specified date.</summary>
  745. <returns>The new point in time, expressed as a date and time of day, relative to Coordinated Universal Time (UTC).</returns>
  746. <param name="datePartArg">The part of the date to increment.</param>
  747. <param name="number">The value used to increment a date by a specified amount.</param>
  748. <param name="dateTimeOffsetArg">The date to increment.</param>
  749. </member>
  750. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateAdd(System.String,System.Nullable{System.Double},System.String)">
  751. <summary>Returns a new datetime value based on adding an interval to the specified date.</summary>
  752. <returns>
  753. A <see cref="T:System.Nullable`1" /> of <see cref="T:System.DateTime" /> value that is the new date.
  754. </returns>
  755. <param name="datePartArg">The part of the date to increment.</param>
  756. <param name="number">The value used to increment a date by a specified amount.</param>
  757. <param name="date">The date to increment.</param>
  758. </member>
  759. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTime},System.Nullable{System.DateTime})">
  760. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  761. <returns>The number of time intervals between the two dates.</returns>
  762. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  763. <param name="startDate">The first date.</param>
  764. <param name="endDate">The second date.</param>
  765. </member>
  766. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})">
  767. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  768. <returns>The number of time intervals between the two dates.</returns>
  769. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  770. <param name="startDate">The first date.</param>
  771. <param name="endDate">The second date.</param>
  772. </member>
  773. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.TimeSpan},System.Nullable{System.TimeSpan})">
  774. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  775. <returns>The number of time intervals between the two dates.</returns>
  776. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  777. <param name="startDate">The first date.</param>
  778. <param name="endDate">The second date.</param>
  779. </member>
  780. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.String,System.Nullable{System.DateTime})">
  781. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  782. <returns>The number of time intervals between the two dates.</returns>
  783. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  784. <param name="startDate">The first date.</param>
  785. <param name="endDate">The second date.</param>
  786. </member>
  787. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.String,System.Nullable{System.DateTimeOffset})">
  788. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  789. <returns>The number of time intervals between the two dates.</returns>
  790. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  791. <param name="startDate">The first date.</param>
  792. <param name="endDate">The second date.</param>
  793. </member>
  794. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.String,System.Nullable{System.TimeSpan})">
  795. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  796. <returns>The value specifying the number of time intervals between the two dates.</returns>
  797. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  798. <param name="startDate">The first date.</param>
  799. <param name="endDate">The second date.</param>
  800. </member>
  801. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.TimeSpan},System.String)">
  802. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  803. <returns>The number of time intervals between the two dates.</returns>
  804. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  805. <param name="startDate">The first date.</param>
  806. <param name="endDate">The second date.</param>
  807. </member>
  808. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTime},System.String)">
  809. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  810. <returns>The number of time intervals between the two dates.</returns>
  811. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  812. <param name="startDate">The first date.</param>
  813. <param name="endDate">The second date.</param>
  814. </member>
  815. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTimeOffset},System.String)">
  816. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  817. <returns>The number of time intervals between the two dates.</returns>
  818. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  819. <param name="startDate">The first date.</param>
  820. <param name="endDate">The second date.</param>
  821. </member>
  822. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.String,System.String)">
  823. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  824. <returns>The number of time intervals between the two dates.</returns>
  825. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  826. <param name="startDate">The first date.</param>
  827. <param name="endDate">The second date.</param>
  828. </member>
  829. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})">
  830. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  831. <returns>The number of time intervals between the two dates.</returns>
  832. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  833. <param name="startDate">The first date.</param>
  834. <param name="endDate">The second date.</param>
  835. </member>
  836. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.TimeSpan},System.Nullable{System.DateTimeOffset})">
  837. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  838. <returns>The number of time intervals between the two dates.</returns>
  839. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  840. <param name="startDate">The first date.</param>
  841. <param name="endDate">The second date.</param>
  842. </member>
  843. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTime},System.Nullable{System.TimeSpan})">
  844. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  845. <returns>The number of time intervals between the two dates.</returns>
  846. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  847. <param name="startDate">The first date.</param>
  848. <param name="endDate">The second date.</param>
  849. </member>
  850. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.TimeSpan})">
  851. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  852. <returns>The number of time intervals between the two Dates.</returns>
  853. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  854. <param name="startDate">The first date.</param>
  855. <param name="endDate">The second date.</param>
  856. </member>
  857. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTime},System.Nullable{System.DateTimeOffset})">
  858. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  859. <returns>The number of time intervals between the two dates.</returns>
  860. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  861. <param name="startDate">The first date.</param>
  862. <param name="endDate">The second date.</param>
  863. </member>
  864. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateDiff(System.String,System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTime})">
  865. <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
  866. <returns>The number of time intervals between the two dates.</returns>
  867. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  868. <param name="startDate">The first date.</param>
  869. <param name="endDate">The second date.</param>
  870. </member>
  871. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateName(System.String,System.Nullable{System.DateTime})">
  872. <summary>Returns a character string that represents the specified datepart of the specified date.</summary>
  873. <returns>The specified part of the specified date.</returns>
  874. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  875. <param name="date">The date.</param>
  876. </member>
  877. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateName(System.String,System.String)">
  878. <summary>Returns a character string that represents the specified datepart of the specified date.</summary>
  879. <returns>The specified part of the specified date.</returns>
  880. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  881. <param name="date">The date.</param>
  882. </member>
  883. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateName(System.String,System.Nullable{System.TimeSpan})">
  884. <summary>Returns a character string that represents the specified datepart of the specified date.</summary>
  885. <returns>The specified part of the specified date.</returns>
  886. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  887. <param name="date">The date.</param>
  888. </member>
  889. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DateName(System.String,System.Nullable{System.DateTimeOffset})">
  890. <summary>Returns a character string that represents the specified datepart of the specified date.</summary>
  891. <returns>The specified part of the specified date.</returns>
  892. <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
  893. <param name="date">The date.</param>
  894. </member>
  895. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DatePart(System.String,System.Nullable{System.DateTime})">
  896. <summary>Returns an integer that represents the specified datepart of the specified date.</summary>
  897. <returns>The the specified datepart of the specified date.</returns>
  898. <param name="datePartArg">The part of the date to return the value.</param>
  899. <param name="date">The date.</param>
  900. </member>
  901. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DatePart(System.String,System.Nullable{System.DateTimeOffset})">
  902. <summary>Returns an integer that represents the specified datepart of the specified date.</summary>
  903. <returns>The specified datepart of the specified date.</returns>
  904. <param name="datePartArg">The part of the date to return the value.</param>
  905. <param name="date">The date.</param>
  906. </member>
  907. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DatePart(System.String,System.String)">
  908. <summary>Returns an integer that represents the specified datepart of the specified date.</summary>
  909. <returns>The specified datepart of the specified date.</returns>
  910. <param name="datePartArg">The part of the date to return the value.</param>
  911. <param name="date">The date.</param>
  912. </member>
  913. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DatePart(System.String,System.Nullable{System.TimeSpan})">
  914. <summary>Returns an integer that represents the specified datepart of the specified date.</summary>
  915. <returns>The specified datepart of the specified date.</returns>
  916. <param name="datePartArg">The part of the date to return the value.</param>
  917. <param name="date">The date.</param>
  918. </member>
  919. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.GetDate">
  920. <summary>Returns the current database system timestamp as a datetime value without the database time zone offset. This value is derived from the operating system of the computer on which the instance of SQL Server is running.</summary>
  921. <returns>The current database timestamp.</returns>
  922. </member>
  923. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.GetUtcDate">
  924. <summary>Returns the current database system timestamp as a datetime value. The database time zone offset is not included. This value represents the current UTC time (Coordinated Universal Time). This value is derived from the operating system of the computer on which the instance of SQL Server is running.</summary>
  925. <returns>The current database UTC timestamp.</returns>
  926. </member>
  927. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.Boolean})">
  928. <summary>Returns the number of bytes used to represent any expression.</summary>
  929. <returns>The number of bytes in the input value.</returns>
  930. <param name="arg">The value to be examined for data length.</param>
  931. </member>
  932. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.Double})">
  933. <summary>Returns the number of bytes used to represent any expression.</summary>
  934. <returns>The number of bytes in the input value.</returns>
  935. <param name="arg">The value to be examined for data length.</param>
  936. </member>
  937. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.Decimal})">
  938. <summary>Returns the number of bytes used to represent any expression.</summary>
  939. <returns>The number of bytes in the input value.</returns>
  940. <param name="arg">The value to be examined for data length.</param>
  941. </member>
  942. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.DateTime})">
  943. <summary>Returns the number of bytes used to represent any expression.</summary>
  944. <returns>The number of bytes in the input value.</returns>
  945. <param name="arg">The value to be examined for data length.</param>
  946. </member>
  947. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.TimeSpan})">
  948. <summary>Returns the number of bytes used to represent any expression.</summary>
  949. <returns>The number of bytes in the input value.</returns>
  950. <param name="arg">The value to be examined for data length.</param>
  951. </member>
  952. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.DateTimeOffset})">
  953. <summary>Returns the number of bytes used to represent any expression.</summary>
  954. <returns>The number of bytes in the input value.</returns>
  955. <param name="arg">The value to be examined for data length.</param>
  956. </member>
  957. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.String)">
  958. <summary>Returns the number of bytes used to represent any expression.</summary>
  959. <returns>The number of bytes in the input value.</returns>
  960. <param name="arg">The value to be examined for data length.</param>
  961. </member>
  962. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Byte[])">
  963. <summary>Returns the number of bytes used to represent any expression.</summary>
  964. <returns>The number of bytes in the input value.</returns>
  965. <param name="arg">The value to be examined for length.</param>
  966. </member>
  967. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.DataLength(System.Nullable{System.Guid})">
  968. <summary>Returns the number of bytes used to represent any expression.</summary>
  969. <returns>The number of bytes in the input value.</returns>
  970. <param name="arg">The value to be examined for data length.</param>
  971. </member>
  972. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Boolean})">
  973. <summary>Returns the checksum value computed over the input argument.</summary>
  974. <returns>The checksum computed over the input value.</returns>
  975. <param name="arg1">The value for which the checksum is calculated.</param>
  976. </member>
  977. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Double})">
  978. <summary>Returns the checksum value computed over the input argument.</summary>
  979. <returns>The checksum computed over the input value.</returns>
  980. <param name="arg1">The value for which the checksum is calculated.</param>
  981. </member>
  982. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Decimal})">
  983. <summary>Returns the checksum value computed over the input argument.</summary>
  984. <returns>The checksum computed over the input value.</returns>
  985. <param name="arg1">The value for which the checksum is calculated.</param>
  986. </member>
  987. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.String)">
  988. <summary>Returns the checksum value computed over the input argument.</summary>
  989. <returns>The checksum computed over the input value.</returns>
  990. <param name="arg1">The value for which the checksum is calculated.</param>
  991. </member>
  992. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTime})">
  993. <summary>Returns the checksum value computed over the input argument.</summary>
  994. <returns>The checksum computed over the input values.</returns>
  995. <param name="arg1">The value for which the checksum is calculated.</param>
  996. </member>
  997. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.TimeSpan})">
  998. <summary>Returns the checksum value computed over the input argument.</summary>
  999. <returns>The checksum computed over the input value.</returns>
  1000. <param name="arg1">The value for which the checksum is calculated.</param>
  1001. </member>
  1002. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTimeOffset})">
  1003. <summary>Returns the checksum value computed over the input argument.</summary>
  1004. <returns>The checksum computed over the input value.</returns>
  1005. <param name="arg1">The value for which the checksum is calculated.</param>
  1006. </member>
  1007. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Byte[])">
  1008. <summary>Returns the checksum value computed over the input argument.</summary>
  1009. <returns>The checksum computed over the input value.</returns>
  1010. <param name="arg1">The character array for which the checksum is calculated.</param>
  1011. </member>
  1012. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Guid})">
  1013. <summary>Returns the checksum value computed over the input argument.</summary>
  1014. <returns>The checksum computed over the input value.</returns>
  1015. <param name="arg1">The value for which the checksum is calculated.</param>
  1016. </member>
  1017. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Boolean},System.Nullable{System.Boolean})">
  1018. <summary>Returns the checksum value computed over the input arguments.</summary>
  1019. <returns>The checksum computed over the input values.</returns>
  1020. <param name="arg1">The value for which the checksum is calculated.</param>
  1021. <param name="arg2">The value for which the checksum is calculated.</param>
  1022. </member>
  1023. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Double},System.Nullable{System.Double})">
  1024. <summary>Returns the checksum value computed over the input arguments.</summary>
  1025. <returns>The checksum computed over the input values.</returns>
  1026. <param name="arg1">The value for which the checksum is calculated.</param>
  1027. <param name="arg2">The value for which the checksum is calculated.</param>
  1028. </member>
  1029. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Decimal},System.Nullable{System.Decimal})">
  1030. <summary>Returns the checksum value computed over the input arguments.</summary>
  1031. <returns>The checksum computed over the input values.</returns>
  1032. <param name="arg1">The value for which the checksum is calculated.</param>
  1033. <param name="arg2">The value for which the checksum is calculated.</param>
  1034. </member>
  1035. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.String,System.String)">
  1036. <summary>Returns the checksum value computed over the input arguments.</summary>
  1037. <returns>The checksum computed over the input values.</returns>
  1038. <param name="arg1">The value for which the checksum is calculated.</param>
  1039. <param name="arg2">The value for which the checksum is calculated.</param>
  1040. </member>
  1041. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTime},System.Nullable{System.DateTime})">
  1042. <summary>Returns the checksum value computed over the input arguments.</summary>
  1043. <returns>The checksum computed over the input values.</returns>
  1044. <param name="arg1">The value for which the checksum is calculated.</param>
  1045. <param name="arg2">The value for which the checksum is calculated.</param>
  1046. </member>
  1047. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.TimeSpan},System.Nullable{System.TimeSpan})">
  1048. <summary>Returns the checksum value computed over the input arguments.</summary>
  1049. <returns>The checksum computed over the input values.</returns>
  1050. <param name="arg1">The value for which the checksum is calculated.</param>
  1051. <param name="arg2">The value for which the checksum is calculated.</param>
  1052. </member>
  1053. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})">
  1054. <summary>Returns the checksum value computed over the input arguments.</summary>
  1055. <returns>The checksum computed over the input values.</returns>
  1056. <param name="arg1">The value for which the checksum is calculated.</param>
  1057. <param name="arg2">The value for which the checksum is calculated.</param>
  1058. </member>
  1059. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Byte[],System.Byte[])">
  1060. <summary>Returns the checksum value computed over the input arguments.</summary>
  1061. <returns>The checksum computed over the input values.</returns>
  1062. <param name="arg1">The character array for which the checksum is calculated.</param>
  1063. <param name="arg2">The character array for which the checksum is calculated.</param>
  1064. </member>
  1065. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Guid},System.Nullable{System.Guid})">
  1066. <summary>Returns the checksum value computed over the input arguments.</summary>
  1067. <returns>The checksum computed over the input values.</returns>
  1068. <param name="arg1">The value for which the checksum is calculated.</param>
  1069. <param name="arg2">The value for which the checksum is calculated.</param>
  1070. </member>
  1071. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{System.Boolean})">
  1072. <summary>Returns the checksum value computed over the input arguments.</summary>
  1073. <returns>The checksum computed over the input values.</returns>
  1074. <param name="arg1">The value for which the checksum is calculated.</param>
  1075. <param name="arg2">The value for which the checksum is calculated.</param>
  1076. <param name="arg3">The value for which the checksum is calculated.</param>
  1077. </member>
  1078. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Double})">
  1079. <summary>Returns the checksum value computed over the input arguments.</summary>
  1080. <returns>The checksum computed over the input values.</returns>
  1081. <param name="arg1">The value for which the checksum is calculated.</param>
  1082. <param name="arg2">The value for which the checksum is calculated.</param>
  1083. <param name="arg3">The value for which the checksum is calculated.</param>
  1084. </member>
  1085. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Decimal},System.Nullable{System.Decimal},System.Nullable{System.Decimal})">
  1086. <summary>Returns the checksum value computed over the input arguments.</summary>
  1087. <returns>The checksum computed over the input values.</returns>
  1088. <param name="arg1">The value for which the checksum is calculated.</param>
  1089. <param name="arg2">The value for which the checksum is calculated.</param>
  1090. <param name="arg3">The value for which the checksum is calculated.</param>
  1091. </member>
  1092. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.String,System.String,System.String)">
  1093. <summary>Returns the checksum value computed over the input arguments.</summary>
  1094. <returns>The checksum computed over the input values.</returns>
  1095. <param name="arg1">The value for which the checksum is calculated.</param>
  1096. <param name="arg2">The value for which the checksum is calculated.</param>
  1097. <param name="arg3">The value for which the checksum is calculated.</param>
  1098. </member>
  1099. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTime},System.Nullable{System.DateTime},System.Nullable{System.DateTime})">
  1100. <summary>Returns the checksum value computed over the input arguments.</summary>
  1101. <returns>The checksum computed over the input values.</returns>
  1102. <param name="arg1">The value for which the checksum is calculated.</param>
  1103. <param name="arg2">The value for which the checksum is calculated.</param>
  1104. <param name="arg3">The value for which the checksum is calculated.</param>
  1105. </member>
  1106. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset},System.Nullable{System.DateTimeOffset})">
  1107. <summary>Returns the checksum value computed over the input arguments.</summary>
  1108. <returns>The checksum computed over the input values.</returns>
  1109. <param name="arg1">The value for which the checksum is calculated.</param>
  1110. <param name="arg2">The value for which the checksum is calculated.</param>
  1111. <param name="arg3">The value for which the checksum is calculated.</param>
  1112. </member>
  1113. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.TimeSpan},System.Nullable{System.TimeSpan},System.Nullable{System.TimeSpan})">
  1114. <summary>Returns the checksum value computed over the input arguments.</summary>
  1115. <returns>The checksum computed over the input values.</returns>
  1116. <param name="arg1">The value for which the checksum is calculated.</param>
  1117. <param name="arg2">The value for which the checksum is calculated.</param>
  1118. <param name="arg3">The value for which the checksum is calculated.</param>
  1119. </member>
  1120. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Byte[],System.Byte[],System.Byte[])">
  1121. <summary>Returns the checksum value computed over the input arguments.</summary>
  1122. <returns>The checksum computed over the input values.</returns>
  1123. <param name="arg1">The character array for which the checksum is calculated.</param>
  1124. <param name="arg2">The character array for which the checksum is calculated.</param>
  1125. <param name="arg3">The character array for which the checksum is calculated.</param>
  1126. </member>
  1127. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.Checksum(System.Nullable{System.Guid},System.Nullable{System.Guid},System.Nullable{System.Guid})">
  1128. <summary>Returns the checksum value computed over the input arguments.</summary>
  1129. <returns>The checksum computed over the input values.</returns>
  1130. <param name="arg1">The value for which the checksum is calculated.</param>
  1131. <param name="arg2">The value for which the checksum is calculated.</param>
  1132. <param name="arg3">The value for which the checksum is calculated.</param>
  1133. </member>
  1134. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CurrentTimestamp">
  1135. <summary>Returns the current date and time. </summary>
  1136. <returns>The current date and time.</returns>
  1137. </member>
  1138. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.CurrentUser">
  1139. <summary>Returns the name of the current user.</summary>
  1140. <returns>The name of the current user.</returns>
  1141. </member>
  1142. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.HostName">
  1143. <summary>Returns the workstation name.</summary>
  1144. <returns>The name of the workstation.</returns>
  1145. </member>
  1146. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.UserName(System.Nullable{System.Int32})">
  1147. <summary>Returns a database user name corresponding to a specified identification number.</summary>
  1148. <returns>The user name.</returns>
  1149. <param name="arg">A user ID.</param>
  1150. </member>
  1151. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.UserName">
  1152. <summary>Returns a database user name corresponding to a specified identification number.</summary>
  1153. <returns>The user name.</returns>
  1154. </member>
  1155. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.IsNumeric(System.String)">
  1156. <summary>Indicates whether the input value is a valid numeric type.</summary>
  1157. <returns>1 if the input expression is a valid numeric data type; otherwise, 0.</returns>
  1158. <param name="arg">A string expression.</param>
  1159. </member>
  1160. <member name="M:System.Data.Entity.SqlServer.SqlFunctions.IsDate(System.String)">
  1161. <summary>Indicates whether the input value is a valid date or time.</summary>
  1162. <returns>1 if the input expression is a valid date or time value of datetime or smalldatetime data types; otherwise, 0.</returns>
  1163. <param name="arg">The tested value.</param>
  1164. </member>
  1165. <member name="T:System.Data.Entity.SqlServer.SqlGen.BoolWrapper">
  1166. <summary>
  1167. Used for wrapping a boolean value as an object.
  1168. </summary>
  1169. </member>
  1170. <member name="T:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator">
  1171. <summary>
  1172. Class generating SQL for a DML command tree.
  1173. </summary>
  1174. </member>
  1175. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.UseGeneratedValuesVariable(System.Data.Entity.Core.Common.CommandTrees.DbInsertCommandTree,System.Data.Entity.SqlServer.SqlVersion)">
  1176. <summary>
  1177. Determine whether we should use a generated values variable to return server generated values.
  1178. This is true when we're attempting to insert a row where the primary key is server generated
  1179. but is not an integer type (and therefore can't be used with scope_identity()). It is also true
  1180. where there is a compound server generated key.
  1181. </summary>
  1182. </member>
  1183. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.GenerateReturningSql(System.Data.Entity.SqlServer.SqlGen.SqlStringBuilder,System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree,System.Data.Entity.Core.Metadata.Edm.EntityType,System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean)">
  1184. <summary>
  1185. Generates SQL fragment returning server-generated values.
  1186. Requires: translator knows about member values so that we can figure out
  1187. how to construct the key predicate.
  1188. <code>Sample SQL:
  1189. select IdentityValue
  1190. from dbo.MyTable
  1191. where @@ROWCOUNT > 0 and IdentityValue = scope_identity()
  1192. or
  1193. select TimestampValue
  1194. from dbo.MyTable
  1195. where @@ROWCOUNT > 0 and Id = 1
  1196. Note that we filter on rowcount to ensure no rows are returned if no rows were modified.
  1197. On SQL Server 2005 and up, we have an additional syntax used for non integer return types:
  1198. declare @generatedValues table(ID uniqueidentifier)
  1199. insert dbo.MyTable
  1200. output ID into @generated_values
  1201. values (...);
  1202. select ID
  1203. from @generatedValues as g join dbo.MyTable as t on g.ID = t.ID
  1204. where @@ROWCOUNT > 0;</code>
  1205. </summary>
  1206. <param name="commandText"> Builder containing command text </param>
  1207. <param name="tree"> Modification command tree </param>
  1208. <param name="tableType"> Type of table. </param>
  1209. <param name="translator"> Translator used to produce DML SQL statement for the tree </param>
  1210. <param name="returning"> Returning expression. If null, the method returns immediately without producing a SELECT statement. </param>
  1211. </member>
  1212. <member name="T:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator">
  1213. <summary>
  1214. Lightweight expression translator for DML expression trees, which have constrained
  1215. scope and support.
  1216. </summary>
  1217. </member>
  1218. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator.#ctor(System.Data.Entity.SqlServer.SqlGen.SqlStringBuilder,System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree,System.Boolean,System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Collections.Generic.ICollection{System.Data.Entity.Core.Metadata.Edm.EdmProperty},System.Boolean)">
  1219. <summary>
  1220. Initialize a new expression translator populating the given string builder
  1221. with command text. Command text builder and command tree must not be null.
  1222. </summary>
  1223. <param name="commandText"> Command text with which to populate commands </param>
  1224. <param name="commandTree"> Command tree generating SQL </param>
  1225. <param name="preserveMemberValues"> Indicates whether the translator should preserve member values while compiling t-SQL (only needed for server generation) </param>
  1226. </member>
  1227. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator.RegisterMemberValue(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  1228. <summary>
  1229. Call this method to register a property value pair so the translator "remembers"
  1230. the values for members of the row being modified. These values can then be used
  1231. to form a predicate for server-generation (based on the key of the row)
  1232. </summary>
  1233. <param name="propertyExpression"> DbExpression containing the column reference (property expression). </param>
  1234. <param name="value"> DbExpression containing the value of the column. </param>
  1235. </member>
  1236. <member name="T:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator">
  1237. <summary>
  1238. Provider to convert provider agnostic migration operations into SQL commands
  1239. that can be run against a Microsoft SQL Server database.
  1240. </summary>
  1241. </member>
  1242. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Collections.Generic.IEnumerable{System.Data.Entity.Migrations.Model.MigrationOperation},System.String)">
  1243. <summary>
  1244. Converts a set of migration operations into Microsoft SQL Server specific SQL.
  1245. </summary>
  1246. <param name="migrationOperations"> The operations to be converted. </param>
  1247. <param name="providerManifestToken"> Token representing the version of SQL Server being targeted (i.e. "2005", "2008"). </param>
  1248. <returns> A list of SQL statements to be executed to perform the migration operations. </returns>
  1249. </member>
  1250. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.GenerateProcedureBody(System.Collections.Generic.ICollection{System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree},System.String,System.String)">
  1251. <summary>
  1252. Generates the SQL body for a stored procedure.
  1253. </summary>
  1254. <param name="commandTrees">The command trees representing the commands for an insert, update or delete operation.</param>
  1255. <param name="rowsAffectedParameter">The rows affected parameter name.</param>
  1256. <param name="providerManifestToken">The provider manifest token.</param>
  1257. <returns>The SQL body for the stored procedure.</returns>
  1258. </member>
  1259. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.UpdateDatabaseOperation)">
  1260. <summary>
  1261. Generates the specified update database operation which represents applying a series of migrations.
  1262. The generated script is idempotent, meaning it contains conditional logic to check if individual migrations
  1263. have already been applied and only apply the pending ones.
  1264. </summary>
  1265. <param name="updateDatabaseOperation">The update database operation.</param>
  1266. </member>
  1267. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.MigrationOperation)">
  1268. <summary>
  1269. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.MigrationOperation"/>.
  1270. Allows derived providers to handle additional operation types.
  1271. Generated SQL should be added using the Statement method.
  1272. </summary>
  1273. <param name="migrationOperation"> The operation to produce SQL for. </param>
  1274. </member>
  1275. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.CreateConnection">
  1276. <summary>
  1277. Creates an empty connection for the current provider.
  1278. Allows derived providers to use connection other than <see cref="T:System.Data.SqlClient.SqlConnection"/>.
  1279. </summary>
  1280. <returns> An empty connection for the current provider. </returns>
  1281. </member>
  1282. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.CreateProcedureOperation)">
  1283. <summary>
  1284. Generates the specified create procedure operation.
  1285. </summary>
  1286. <param name="createProcedureOperation">The create procedure operation.</param>
  1287. </member>
  1288. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.AlterProcedureOperation)">
  1289. <summary>
  1290. Generates the specified alter procedure operation.
  1291. </summary>
  1292. <param name="alterProcedureOperation">The alter procedure operation.</param>
  1293. </member>
  1294. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropProcedureOperation)">
  1295. <summary>
  1296. Generates the specified drop procedure operation.
  1297. </summary>
  1298. <param name="dropProcedureOperation">The drop procedure operation.</param>
  1299. </member>
  1300. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.CreateTableOperation)">
  1301. <summary>
  1302. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
  1303. Generated SQL should be added using the Statement method.
  1304. </summary>
  1305. <param name="createTableOperation"> The operation to produce SQL for. </param>
  1306. </member>
  1307. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.GenerateMakeSystemTable(System.Data.Entity.Migrations.Model.CreateTableOperation,System.Data.Entity.Migrations.Utilities.IndentedTextWriter)">
  1308. <summary>
  1309. Generates SQL to mark a table as a system table.
  1310. Generated SQL should be added using the Statement method.
  1311. </summary>
  1312. <param name="createTableOperation"> The table to mark as a system table. </param>
  1313. <param name="writer"> The <see cref="T:System.Data.Entity.Migrations.Utilities.IndentedTextWriter"/> to write the generated SQL to. </param>
  1314. </member>
  1315. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.GenerateCreateSchema(System.String)">
  1316. <summary>
  1317. Generates SQL to create a database schema.
  1318. Generated SQL should be added using the Statement method.
  1319. </summary>
  1320. <param name="schema"> The name of the schema to create. </param>
  1321. </member>
  1322. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.AddForeignKeyOperation)">
  1323. <summary>
  1324. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.AddForeignKeyOperation"/>.
  1325. Generated SQL should be added using the Statement method.
  1326. </summary>
  1327. <param name="addForeignKeyOperation"> The operation to produce SQL for. </param>
  1328. </member>
  1329. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropForeignKeyOperation)">
  1330. <summary>
  1331. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.DropForeignKeyOperation"/>.
  1332. Generated SQL should be added using the Statement method.
  1333. </summary>
  1334. <param name="dropForeignKeyOperation"> The operation to produce SQL for. </param>
  1335. </member>
  1336. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.CreateIndexOperation)">
  1337. <summary>
  1338. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.CreateIndexOperation"/>.
  1339. Generated SQL should be added using the Statement method.
  1340. </summary>
  1341. <param name="createIndexOperation"> The operation to produce SQL for. </param>
  1342. </member>
  1343. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropIndexOperation)">
  1344. <summary>
  1345. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.DropIndexOperation"/>.
  1346. Generated SQL should be added using the Statement method.
  1347. </summary>
  1348. <param name="dropIndexOperation"> The operation to produce SQL for. </param>
  1349. </member>
  1350. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation)">
  1351. <summary>
  1352. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation"/>.
  1353. Generated SQL should be added using the Statement method.
  1354. </summary>
  1355. <param name="addPrimaryKeyOperation"> The operation to produce SQL for. </param>
  1356. </member>
  1357. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation)">
  1358. <summary>
  1359. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation"/>.
  1360. Generated SQL should be added using the Statement method.
  1361. </summary>
  1362. <param name="dropPrimaryKeyOperation"> The operation to produce SQL for. </param>
  1363. </member>
  1364. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.AddColumnOperation)">
  1365. <summary>
  1366. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.AddColumnOperation"/>.
  1367. Generated SQL should be added using the Statement method.
  1368. </summary>
  1369. <param name="addColumnOperation"> The operation to produce SQL for. </param>
  1370. </member>
  1371. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropColumnOperation)">
  1372. <summary>
  1373. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.DropColumnOperation"/>.
  1374. Generated SQL should be added using the Statement method.
  1375. </summary>
  1376. <param name="dropColumnOperation"> The operation to produce SQL for. </param>
  1377. </member>
  1378. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.AlterColumnOperation)">
  1379. <summary>
  1380. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.AlterColumnOperation"/>.
  1381. Generated SQL should be added using the Statement method.
  1382. </summary>
  1383. <param name="alterColumnOperation"> The operation to produce SQL for. </param>
  1384. </member>
  1385. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.DropTableOperation)">
  1386. <summary>
  1387. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.DropTableOperation"/>.
  1388. Generated SQL should be added using the Statement method.
  1389. </summary>
  1390. <param name="dropTableOperation"> The operation to produce SQL for. </param>
  1391. </member>
  1392. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.SqlOperation)">
  1393. <summary>
  1394. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.SqlOperation"/>.
  1395. Generated SQL should be added using the Statement method.
  1396. </summary>
  1397. <param name="sqlOperation"> The operation to produce SQL for. </param>
  1398. </member>
  1399. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.RenameColumnOperation)">
  1400. <summary>
  1401. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.RenameColumnOperation"/>.
  1402. Generated SQL should be added using the Statement method.
  1403. </summary>
  1404. <param name="renameColumnOperation"> The operation to produce SQL for. </param>
  1405. </member>
  1406. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.RenameTableOperation)">
  1407. <summary>
  1408. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.RenameTableOperation"/>.
  1409. Generated SQL should be added using the Statement method.
  1410. </summary>
  1411. <param name="renameTableOperation"> The operation to produce SQL for. </param>
  1412. </member>
  1413. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.RenameProcedureOperation)">
  1414. <summary>
  1415. Generates the specified rename procedure operation.
  1416. </summary>
  1417. <param name="renameProcedureOperation">The rename procedure operation.</param>
  1418. </member>
  1419. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.MoveProcedureOperation)">
  1420. <summary>
  1421. Generates the specified move procedure operation.
  1422. </summary>
  1423. <param name="moveProcedureOperation">The move procedure operation.</param>
  1424. </member>
  1425. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.MoveTableOperation)">
  1426. <summary>
  1427. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.MoveTableOperation"/>.
  1428. Generated SQL should be added using the Statement method.
  1429. </summary>
  1430. <param name="moveTableOperation"> The operation to produce SQL for. </param>
  1431. </member>
  1432. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Migrations.Model.HistoryOperation)">
  1433. <summary>
  1434. Generates SQL for a <see cref="T:System.Data.Entity.Migrations.Model.HistoryOperation"/>.
  1435. Generated SQL should be added using the Statement method.
  1436. </summary>
  1437. <param name="historyOperation"> The operation to produce SQL for. </param>
  1438. </member>
  1439. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Byte[])">
  1440. <summary>
  1441. Generates SQL to specify a constant byte[] default value being set on a column.
  1442. This method just generates the actual value, not the SQL to set the default value.
  1443. </summary>
  1444. <param name="defaultValue"> The value to be set. </param>
  1445. <returns> SQL representing the default value. </returns>
  1446. </member>
  1447. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Boolean)">
  1448. <summary>
  1449. Generates SQL to specify a constant bool default value being set on a column.
  1450. This method just generates the actual value, not the SQL to set the default value.
  1451. </summary>
  1452. <param name="defaultValue"> The value to be set. </param>
  1453. <returns> SQL representing the default value. </returns>
  1454. </member>
  1455. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.DateTime)">
  1456. <summary>
  1457. Generates SQL to specify a constant DateTime default value being set on a column.
  1458. This method just generates the actual value, not the SQL to set the default value.
  1459. </summary>
  1460. <param name="defaultValue"> The value to be set. </param>
  1461. <returns> SQL representing the default value. </returns>
  1462. </member>
  1463. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.DateTimeOffset)">
  1464. <summary>
  1465. Generates SQL to specify a constant DateTimeOffset default value being set on a column.
  1466. This method just generates the actual value, not the SQL to set the default value.
  1467. </summary>
  1468. <param name="defaultValue"> The value to be set. </param>
  1469. <returns> SQL representing the default value. </returns>
  1470. </member>
  1471. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Guid)">
  1472. <summary>
  1473. Generates SQL to specify a constant Guid default value being set on a column.
  1474. This method just generates the actual value, not the SQL to set the default value.
  1475. </summary>
  1476. <param name="defaultValue"> The value to be set. </param>
  1477. <returns> SQL representing the default value. </returns>
  1478. </member>
  1479. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.String)">
  1480. <summary>
  1481. Generates SQL to specify a constant string default value being set on a column.
  1482. This method just generates the actual value, not the SQL to set the default value.
  1483. </summary>
  1484. <param name="defaultValue"> The value to be set. </param>
  1485. <returns> SQL representing the default value. </returns>
  1486. </member>
  1487. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.TimeSpan)">
  1488. <summary>
  1489. Generates SQL to specify a constant TimeSpan default value being set on a column.
  1490. This method just generates the actual value, not the SQL to set the default value.
  1491. </summary>
  1492. <param name="defaultValue"> The value to be set. </param>
  1493. <returns> SQL representing the default value. </returns>
  1494. </member>
  1495. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Spatial.DbGeography)">
  1496. <summary>
  1497. Generates SQL to specify a constant geogrpahy default value being set on a column.
  1498. This method just generates the actual value, not the SQL to set the default value.
  1499. </summary>
  1500. <param name="defaultValue"> The value to be set. </param>
  1501. <returns> SQL representing the default value. </returns>
  1502. </member>
  1503. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Data.Entity.Spatial.DbGeometry)">
  1504. <summary>
  1505. Generates SQL to specify a constant geometry default value being set on a column.
  1506. This method just generates the actual value, not the SQL to set the default value.
  1507. </summary>
  1508. <param name="defaultValue"> The value to be set. </param>
  1509. <returns> SQL representing the default value. </returns>
  1510. </member>
  1511. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(System.Object)">
  1512. <summary>
  1513. Generates SQL to specify a constant default value being set on a column.
  1514. This method just generates the actual value, not the SQL to set the default value.
  1515. </summary>
  1516. <param name="defaultValue"> The value to be set. </param>
  1517. <returns> SQL representing the default value. </returns>
  1518. </member>
  1519. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.BuildColumnType(System.Data.Entity.Migrations.Model.ColumnModel)">
  1520. <summary>
  1521. Generates SQL to specify the data type of a column.
  1522. This method just generates the actual type, not the SQL to create the column.
  1523. </summary>
  1524. <param name="columnModel"> The definition of the column. </param>
  1525. <returns> SQL representing the data type. </returns>
  1526. </member>
  1527. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Name(System.String)">
  1528. <summary>
  1529. Generates a quoted name. The supplied name may or may not contain the schema.
  1530. </summary>
  1531. <param name="name"> The name to be quoted. </param>
  1532. <returns> The quoted name. </returns>
  1533. </member>
  1534. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Quote(System.String)">
  1535. <summary>
  1536. Quotes an identifier for SQL Server.
  1537. </summary>
  1538. <param name="identifier"> The identifier to be quoted. </param>
  1539. <returns> The quoted identifier. </returns>
  1540. </member>
  1541. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Statement(System.String,System.Boolean,System.String)">
  1542. <summary>
  1543. Adds a new Statement to be executed against the database.
  1544. </summary>
  1545. <param name="sql"> The statement to be executed. </param>
  1546. <param name="suppressTransaction"> Gets or sets a value indicating whether this statement should be performed outside of the transaction scope that is used to make the migration process transactional. If set to true, this operation will not be rolled back if the migration process fails. </param>
  1547. </member>
  1548. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Writer">
  1549. <summary>
  1550. Gets a new <see cref="T:System.Data.Entity.Migrations.Utilities.IndentedTextWriter"/> that can be used to build SQL.
  1551. This is just a helper method to create a writer. Writing to the writer will
  1552. not cause SQL to be registered for execution. You must pass the generated
  1553. SQL to the Statement method.
  1554. </summary>
  1555. <returns> An empty text writer to use for SQL generation. </returns>
  1556. </member>
  1557. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Statement(System.Data.Entity.Migrations.Utilities.IndentedTextWriter,System.String)">
  1558. <summary>
  1559. Adds a new Statement to be executed against the database.
  1560. </summary>
  1561. <param name="writer"> The writer containing the SQL to be executed. </param>
  1562. </member>
  1563. <member name="M:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.ResolveNameConflicts(System.Data.Entity.Migrations.Model.CreateTableOperation)">
  1564. <summary>
  1565. Creates a shallow copy of the source CreateTableOperation and the associated
  1566. AddPrimaryKeyOperation but renames the table and the primary key in order
  1567. to avoid name conflicts with existing objects.
  1568. </summary>
  1569. </member>
  1570. <member name="P:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.GuidColumnDefault">
  1571. <summary>
  1572. Returns the column default value to use for store-generated GUID columns when
  1573. no default value is explicitly specified in the migration.
  1574. Returns newsequentialid() for on-premises SQL Server 2005 and later.
  1575. Returns newid() for SQL Azure.
  1576. </summary>
  1577. <value>Either newsequentialid() or newid() as described above.</value>
  1578. </member>
  1579. <member name="T:System.Data.Entity.SqlServer.SqlSpatialFunctions">
  1580. <summary>
  1581. Contains function stubs that expose SqlServer methods in Linq to Entities.
  1582. </summary>
  1583. </member>
  1584. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.PointGeography(System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Int32})">
  1585. <summary>Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID). </summary>
  1586. <returns>The constructed geography instance.</returns>
  1587. <param name="latitude">The x-coordinate of the Point being generated.</param>
  1588. <param name="longitude">The y-coordinate of the Point being generated</param>
  1589. <param name="spatialReferenceId">The SRID of the geography instance.</param>
  1590. </member>
  1591. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.AsTextZM(System.Data.Entity.Spatial.DbGeography)">
  1592. <summary>Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.</summary>
  1593. <returns>The Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance.</returns>
  1594. <param name="geographyValue">The geography value.</param>
  1595. </member>
  1596. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.BufferWithTolerance(System.Data.Entity.Spatial.DbGeography,System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Boolean})">
  1597. <summary>Returns a geometric object representing the union of all point values whose distance from a geography instance is less than or equal to a specified value, allowing for a specified tolerance.</summary>
  1598. <returns>The union of all point values whose distance from a geography instance is less than or equal to a specified value</returns>
  1599. <param name="geographyValue">The geography value.</param>
  1600. <param name="distance">The distance.</param>
  1601. <param name="tolerance">The specified tolerance.</param>
  1602. <param name="relative">Specifying whether the tolerance value is relative or absolute.</param>
  1603. </member>
  1604. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.EnvelopeAngle(System.Data.Entity.Spatial.DbGeography)">
  1605. <summary>Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the geography instance in degrees.</summary>
  1606. <returns>the maximum angle between the point returned by EnvelopeCenter().</returns>
  1607. <param name="geographyValue">The geography value.</param>
  1608. </member>
  1609. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.EnvelopeCenter(System.Data.Entity.Spatial.DbGeography)">
  1610. <summary>Returns a point that can be used as the center of a bounding circle for the geography instance.</summary>
  1611. <returns>A SqlGeography value that specifies the location of the center of a bounding circle.</returns>
  1612. <param name="geographyValue">The geography value.</param>
  1613. </member>
  1614. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.Filter(System.Data.Entity.Spatial.DbGeography,System.Data.Entity.Spatial.DbGeography)">
  1615. <summary>Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.</summary>
  1616. <returns>True if a geography instance potentially intersects another SqlGeography instance; otherwise, false.</returns>
  1617. <param name="geographyValue">The geography value.</param>
  1618. <param name="geographyOther">Another geography instance to compare against the instance on which Filter is invoked.</param>
  1619. </member>
  1620. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.InstanceOf(System.Data.Entity.Spatial.DbGeography,System.String)">
  1621. <summary>Tests if the SqlGeography instance is the same as the specified type.</summary>
  1622. <returns>A string that specifies one of the 12 types exposed in the geography type hierarchy.</returns>
  1623. <param name="geographyValue">The geography value.</param>
  1624. <param name="geometryTypeName">A string that specifies one of the 12 types exposed in the geography type hierarchy.</param>
  1625. </member>
  1626. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.NumRings(System.Data.Entity.Spatial.DbGeography)">
  1627. <summary>Returns the total number of rings in a Polygon instance.</summary>
  1628. <returns>The total number of rings.</returns>
  1629. <param name="geographyValue">The geography value.</param>
  1630. </member>
  1631. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.Reduce(System.Data.Entity.Spatial.DbGeography,System.Nullable{System.Double})">
  1632. <summary>Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.</summary>
  1633. <returns>
  1634. Returns <see cref="T:System.Data.Entity.Spatial.DbGeography" />.
  1635. </returns>
  1636. <param name="geographyValue">The geography value.</param>
  1637. <param name="tolerance">The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.</param>
  1638. </member>
  1639. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.RingN(System.Data.Entity.Spatial.DbGeography,System.Nullable{System.Int32})">
  1640. <summary>Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().</summary>
  1641. <returns>A SqlGeography object that represents the ring specified by n.</returns>
  1642. <param name="geographyValue">The geography value.</param>
  1643. <param name="index">An int expression between 1 and the number of rings in a polygon instance.</param>
  1644. </member>
  1645. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.PointGeometry(System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Int32})">
  1646. <summary>Constructs a geometry instance representing a Point instance from its x and y values and a spatial reference ID (SRID). </summary>
  1647. <returns>The constructed geometry instance.</returns>
  1648. <param name="xCoordinate">The x-coordinate of the Point being generated.</param>
  1649. <param name="yCoordinate">The y-coordinate of the Point being generated</param>
  1650. <param name="spatialReferenceId">The SRID of the geography instance.</param>
  1651. </member>
  1652. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.AsTextZM(System.Data.Entity.Spatial.DbGeometry)">
  1653. <summary>Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.</summary>
  1654. <returns>The Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geometry instance.</returns>
  1655. <param name="geometryValue">The geometry value.</param>
  1656. </member>
  1657. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.BufferWithTolerance(System.Data.Entity.Spatial.DbGeometry,System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Boolean})">
  1658. <summary>Returns a geometric object representing the union of all point values whose distance from a geometry instance is less than or equal to a specified value, allowing for a specified tolerance.</summary>
  1659. <returns>The union of all point values whose distance from a geometry instance is less than or equal to a specified value</returns>
  1660. <param name="geometryValue">The geometry value.</param>
  1661. <param name="distance">The distance.</param>
  1662. <param name="tolerance">The specified tolerance.</param>
  1663. <param name="relative">Specifying whether the tolerance value is relative or absolute.</param>
  1664. </member>
  1665. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.InstanceOf(System.Data.Entity.Spatial.DbGeometry,System.String)">
  1666. <summary>Tests if the SqlGeometry instance is the same as the specified type.</summary>
  1667. <returns>A string that specifies one of the 12 types exposed in the geography type hierarchy.</returns>
  1668. <param name="geometryValue">The geometry value.</param>
  1669. <param name="geometryTypeName">A string that specifies one of the 12 types exposed in the geography type hierarchy.</param>
  1670. </member>
  1671. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.Filter(System.Data.Entity.Spatial.DbGeometry,System.Data.Entity.Spatial.DbGeometry)">
  1672. <summary>Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeometry instance, assuming an index is available.</summary>
  1673. <returns>True if a geography instance potentially intersects another SqlGeography instance; otherwise, false.</returns>
  1674. <param name="geometryValue">The geometry value.</param>
  1675. <param name="geometryOther">Another geography instance to compare against the instance on which Filter is invoked.</param>
  1676. </member>
  1677. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.MakeValid(System.Data.Entity.Spatial.DbGeometry)">
  1678. <summary>Converts an invalid geometry instance into a geometry instance with a valid Open Geospatial Consortium (OGC) type. </summary>
  1679. <returns>The converted geometry instance.</returns>
  1680. <param name="geometryValue">The geometry value.</param>
  1681. </member>
  1682. <member name="M:System.Data.Entity.SqlServer.SqlSpatialFunctions.Reduce(System.Data.Entity.Spatial.DbGeometry,System.Nullable{System.Double})">
  1683. <summary>Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.</summary>
  1684. <returns>
  1685. Returns <see cref="T:System.Data.Entity.Spatial.DbGeometry" />.
  1686. </returns>
  1687. <param name="geometryValue">The geometry value.</param>
  1688. <param name="tolerance">The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.</param>
  1689. </member>
  1690. <member name="M:System.Data.Entity.SqlServer.SqlTypesAssemblyLoader.#ctor(System.Data.Entity.SqlServer.SqlTypesAssembly)">
  1691. <summary>
  1692. Used to create an instance of <see cref="T:System.Data.Entity.SqlServer.SqlTypesAssemblyLoader"/> for a specific SQL Types assembly
  1693. such that it can be used for converting EF spatial types backed by one version to those backed by
  1694. the version actually in use in this app domain.
  1695. </summary>
  1696. </member>
  1697. <member name="M:System.Data.Entity.SqlServer.SqlTypesAssemblyLoader.TryGetSqlTypesAssembly">
  1698. <summary>
  1699. Returns the highest available version of the Microsoft.SqlServer.Types assembly that could be
  1700. located using Assembly.Load; may return <c>null</c> if no version of the assembly could be found.
  1701. </summary>
  1702. </member>
  1703. <member name="T:System.Data.Entity.SqlServer.SqlVersionUtils">
  1704. <summary>
  1705. This class is a simple utility class that determines the SQL Server version from the
  1706. connection.
  1707. </summary>
  1708. </member>
  1709. <member name="M:System.Data.Entity.SqlServer.SqlVersionUtils.GetSqlVersion(System.Data.Common.DbConnection)">
  1710. <summary>
  1711. Get the SqlVersion from the connection. Returns one of Sql8, Sql9, Sql10, Sql11
  1712. The passed connection must be open
  1713. </summary>
  1714. <param name="connection"> current sql connection </param>
  1715. <returns> Sql Version for the current connection </returns>
  1716. </member>
  1717. <member name="T:System.Data.Entity.SqlServer.Utilities.SqlDataReaderWrapper">
  1718. <summary>
  1719. This is a wrapper for <see cref="T:System.Data.SqlClient.SqlDataReader"/> that allows a mock implementation to be used.
  1720. </summary>
  1721. </member>
  1722. <member name="M:System.Data.Entity.SqlServer.Utilities.DbExpressionExtensions.GetLeafNodes(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Func{System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.IEnumerable{System.Data.Entity.Core.Common.CommandTrees.DbExpression}})">
  1723. <summary>
  1724. Uses a stack to non-recursively traverse a given tree structure and retrieve the leaf nodes.
  1725. </summary>
  1726. <param name="root"> The node that represents the root of the tree. </param>
  1727. <param name="kind"> Expressions not of this kind are considered leaves. </param>
  1728. <param name="getChildNodes">
  1729. A function that traverses the tree by retrieving the <b>immediate</b> descendants of a (non-leaf) node.
  1730. </param>
  1731. <returns> An enumerable containing the leaf nodes. </returns>
  1732. </member>
  1733. <member name="T:System.Data.Entity.SqlServer.SqlGen.ISqlFragment">
  1734. <summary>
  1735. Represents the sql fragment for any node in the query tree.
  1736. </summary>
  1737. <remarks>
  1738. The nodes in a query tree produce various kinds of sql
  1739. <list type="bullet">
  1740. <item>A select statement.</item>
  1741. <item>A reference to an extent. (symbol)</item>
  1742. <item>A raw string.</item>
  1743. </list>
  1744. We have this interface to allow for a common return type for the methods
  1745. in the expression visitor <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor`1"/>
  1746. Add the endd of translation, the sql fragments are converted into real strings.
  1747. </remarks>
  1748. </member>
  1749. <member name="M:System.Data.Entity.SqlServer.SqlGen.ISqlFragment.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  1750. <summary>
  1751. Write the string represented by this fragment into the stream.
  1752. </summary>
  1753. <param name="writer"> The stream that collects the strings. </param>
  1754. <param name="sqlGenerator"> Context information used for renaming. The global lists are used to generated new names without collisions. </param>
  1755. </member>
  1756. <member name="T:System.Data.Entity.SqlServer.SqlGen.JoinSymbol">
  1757. <summary>
  1758. A Join symbol is a special kind of Symbol.
  1759. It has to carry additional information
  1760. <list type="bullet">
  1761. <item>
  1762. ColumnList for the list of columns in the select clause if this
  1763. symbol represents a sql select statement. This is set by
  1764. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  1765. .
  1766. </item>
  1767. <item>ExtentList is the list of extents in the select clause.</item>
  1768. <item>
  1769. FlattenedExtentList - if the Join has multiple extents flattened at the
  1770. top level, we need this information to ensure that extent aliases are renamed
  1771. correctly in
  1772. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)"/>
  1773. </item>
  1774. <item>
  1775. NameToExtent has all the extents in ExtentList as a dictionary.
  1776. This is used by
  1777. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  1778. to flatten
  1779. record accesses.
  1780. </item>
  1781. <item>
  1782. IsNestedJoin - is used to determine whether a JoinSymbol is an
  1783. ordinary join symbol, or one that has a corresponding SqlSelectStatement.
  1784. </item>
  1785. </list>
  1786. All the lists are set exactly once, and then used for lookups/enumerated.
  1787. </summary>
  1788. </member>
  1789. <member name="T:System.Data.Entity.SqlServer.SqlGen.Symbol">
  1790. <summary>
  1791. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SymbolTable"/>
  1792. This class represents an extent/nested select statement,
  1793. or a column.
  1794. The important fields are Name, Type and NewName.
  1795. NewName starts off the same as Name, and is then modified as necessary.
  1796. The rest are used by special symbols.
  1797. e.g. NeedsRenaming is used by columns to indicate that a new name must
  1798. be picked for the column in the second phase of translation.
  1799. IsUnnest is used by symbols for a collection expression used as a from clause.
  1800. This allows <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddFromSymbol(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.SqlServer.SqlGen.Symbol,System.Boolean)"/> to add the column list
  1801. after the alias.
  1802. </summary>
  1803. </member>
  1804. <member name="F:System.Data.Entity.SqlServer.SqlGen.Symbol.columns">
  1805. <summary>
  1806. Used to track the columns originating from this Symbol when it is used
  1807. in as a from extent in a SqlSelectStatement with a Join or as a From Extent
  1808. in a Join Symbol.
  1809. </summary>
  1810. </member>
  1811. <member name="F:System.Data.Entity.SqlServer.SqlGen.Symbol.outputColumns">
  1812. <summary>
  1813. Used to track the output columns of a SqlSelectStatement it represents
  1814. </summary>
  1815. </member>
  1816. <member name="M:System.Data.Entity.SqlServer.SqlGen.Symbol.#ctor(System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.Symbol},System.Boolean)">
  1817. <summary>
  1818. Use this constructor if the symbol represents a SqlStatement for which the output columns need to be tracked.
  1819. </summary>
  1820. </member>
  1821. <member name="M:System.Data.Entity.SqlServer.SqlGen.Symbol.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  1822. <summary>
  1823. Write this symbol out as a string for sql. This is just
  1824. the new name of the symbol (which could be the same as the old name).
  1825. We rename columns here if necessary.
  1826. </summary>
  1827. </member>
  1828. <member name="T:System.Data.Entity.SqlServer.SqlGen.OptionalColumn">
  1829. <summary>
  1830. Represents a column in a select list that should be printed only if it is later used.
  1831. Such columns get added by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>.
  1832. The SymbolUsageManager associated with the OptionalColumn has the information whether the column
  1833. has been used based on its symbol.
  1834. </summary>
  1835. </member>
  1836. <member name="M:System.Data.Entity.SqlServer.SqlGen.OptionalColumn.Append(System.Object)">
  1837. <summary>
  1838. Append to the "fragment" representing this column
  1839. </summary>
  1840. </member>
  1841. <member name="M:System.Data.Entity.SqlServer.SqlGen.OptionalColumn.WriteSqlIfUsed(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String)">
  1842. <summary>
  1843. Writes that fragment that represents the optional column
  1844. if the usage manager says it is used.
  1845. </summary>
  1846. </member>
  1847. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker">
  1848. <summary>
  1849. The Sql8ConformanceChecker walks a DbExpression tree and determines whether
  1850. it should be rewritten in order to be translated to SQL appropriate for SQL Server 2000.
  1851. The tree should be rewritten if it contains any of the following expressions:
  1852. <list type="bullet">
  1853. <item>
  1854. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/>
  1855. </item>
  1856. <item>
  1857. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>
  1858. </item>
  1859. <item>
  1860. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  1861. </item>
  1862. </list>
  1863. Also, it throws if it determines that the tree can not
  1864. be translated into SQL appropriate for SQL Server 2000.
  1865. This happens if:
  1866. <list type="bullet">
  1867. <item>
  1868. The tree contains
  1869. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression"/>
  1870. </item>
  1871. <item>
  1872. The tree contains
  1873. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression"/>
  1874. with property Limit of type
  1875. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression"/>
  1876. </item>
  1877. <item>
  1878. The tree contains
  1879. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  1880. with property Count of type
  1881. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression"/>
  1882. </item>
  1883. </list>
  1884. The visitor only checks for expressions for which the support differs between SQL Server 2000 and SQL Server 2005,
  1885. but does not check/throw for expressions that are not supported for both providers.
  1886. Implementation note: In the cases when the visitor encounters an expression that requires rewrite,
  1887. it still needs to walk its structure in case something below it is not supported and needs to throw.
  1888. </summary>
  1889. </member>
  1890. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.NeedsRewrite(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  1891. <summary>
  1892. The entry point
  1893. </summary>
  1894. <returns> True if the tree needs to be rewriten, false otherwise </returns>
  1895. </member>
  1896. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.#ctor">
  1897. <summary>
  1898. Default Constructor
  1899. </summary>
  1900. </member>
  1901. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)">
  1902. <summary>
  1903. Default handling for DbUnaryExpression-derived classes. Simply visits its argument
  1904. </summary>
  1905. <param name="expr"> The DbUnaryExpression to visit </param>
  1906. </member>
  1907. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)">
  1908. <summary>
  1909. Default handling for DbBinaryExpression-derived classes. Visits both arguments.
  1910. </summary>
  1911. <param name="expr"> The DbBinaryExpression to visit </param>
  1912. </member>
  1913. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitAggregate(System.Data.Entity.Core.Common.CommandTrees.DbAggregate)">
  1914. <summary>
  1915. Walks the structure
  1916. </summary>
  1917. </member>
  1918. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionBinding(System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding)">
  1919. <summary>
  1920. DbExpressionBinding handler
  1921. </summary>
  1922. </member>
  1923. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  1924. <summary>
  1925. Used as handler for expressions
  1926. </summary>
  1927. </member>
  1928. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitSortClause(System.Data.Entity.Core.Common.CommandTrees.DbSortClause)">
  1929. <summary>
  1930. Used as handler for SortClauses
  1931. </summary>
  1932. </member>
  1933. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitList``1(System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.ListElementHandler{``0},System.Collections.Generic.IList{``0})">
  1934. <summary>
  1935. Helper method for iterating a list
  1936. </summary>
  1937. </member>
  1938. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitAggregateList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbAggregate})">
  1939. <summary>
  1940. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding"/>s.
  1941. </summary>
  1942. </member>
  1943. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionBindingList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding})">
  1944. <summary>
  1945. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding"/>s.
  1946. </summary>
  1947. </member>
  1948. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression})">
  1949. <summary>
  1950. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpression"/>s.
  1951. </summary>
  1952. </member>
  1953. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitSortClauseList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbSortClause})">
  1954. <summary>
  1955. Handling for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSortClause"/>s.
  1956. </summary>
  1957. </member>
  1958. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  1959. <summary>
  1960. Called when an <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpression"/> of an otherwise unrecognized type is encountered.
  1961. </summary>
  1962. <param name="expression"> The expression </param>
  1963. <exception cref="T:System.NotSupportedException">
  1964. Always thrown if this method is called, since it indicates that
  1965. <paramref name="expression"/>
  1966. is of an unsupported type
  1967. </exception>
  1968. </member>
  1969. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)">
  1970. <summary>
  1971. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  1972. </summary>
  1973. <param name="expression"> The DbAndExpression that is being visited. </param>
  1974. </member>
  1975. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)">
  1976. <summary>
  1977. Not supported on SQL Server 2000.
  1978. </summary>
  1979. <param name="expression"> The DbApplyExpression that is being visited. </param>
  1980. <exception cref="T:System.NotSupportedException">Always</exception>
  1981. </member>
  1982. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression)">
  1983. <summary>
  1984. Default handling for DbArithmeticExpression. Visits all arguments.
  1985. </summary>
  1986. <param name="expression"> The DbArithmeticExpression that is being visited. </param>
  1987. </member>
  1988. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression)">
  1989. <summary>
  1990. Walks the strucutre
  1991. </summary>
  1992. <param name="expression"> The DbCaseExpression that is being visited. </param>
  1993. </member>
  1994. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCastExpression)">
  1995. <summary>
  1996. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  1997. </summary>
  1998. <param name="expression"> The DbCastExpression that is being visited. </param>
  1999. </member>
  2000. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression)">
  2001. <summary>
  2002. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  2003. </summary>
  2004. <param name="expression"> The DbComparisonExpression that is being visited. </param>
  2005. </member>
  2006. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)">
  2007. <summary>
  2008. Returns false
  2009. </summary>
  2010. <param name="expression"> The DbConstantExpression that is being visited. </param>
  2011. </member>
  2012. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCrossJoinExpression)">
  2013. <summary>
  2014. Walks the structure
  2015. </summary>
  2016. <param name="expression"> The DbCrossJoinExpression that is being visited. </param>
  2017. </member>
  2018. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDerefExpression)">
  2019. <summary>
  2020. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2021. </summary>
  2022. <param name="expression"> The DeRefExpression that is being visited. </param>
  2023. </member>
  2024. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression)">
  2025. <summary>
  2026. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2027. </summary>
  2028. <param name="expression"> The DbDistinctExpression that is being visited. </param>
  2029. </member>
  2030. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbElementExpression)">
  2031. <summary>
  2032. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2033. </summary>
  2034. <param name="expression"> The DbElementExpression that is being visited. </param>
  2035. </member>
  2036. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression)">
  2037. <summary>
  2038. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2039. </summary>
  2040. <param name="expression"> The DbEntityRefExpression that is being visited. </param>
  2041. </member>
  2042. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  2043. <summary>
  2044. Returns true, the tree needs to be rewritten.
  2045. </summary>
  2046. <param name="expression"> The DbExceptExpression that is being visited. </param>
  2047. </member>
  2048. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)">
  2049. <summary>
  2050. Walks the structure
  2051. </summary>
  2052. <param name="expression"> The DbFilterExpression that is being visited. </param>
  2053. </member>
  2054. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2055. <summary>
  2056. Visits the arguments
  2057. </summary>
  2058. <param name="expression"> The DbFunctionExpression that is being visited. </param>
  2059. </member>
  2060. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression)">
  2061. <summary>
  2062. Visits the arguments and lambda body
  2063. </summary>
  2064. <param name="expression"> The DbLambdaExpression that is being visited. </param>
  2065. </member>
  2066. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression)">
  2067. <summary>
  2068. Walks the structure
  2069. </summary>
  2070. <param name="expression"> The DbExpression that is being visited. </param>
  2071. </member>
  2072. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  2073. <summary>
  2074. Returns true.
  2075. </summary>
  2076. <param name="expression"> The DbIntersectExpression that is being visited. </param>
  2077. </member>
  2078. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)">
  2079. <summary>
  2080. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2081. </summary>
  2082. <param name="expression"> The DbIsEmptyExpression that is being visited. </param>
  2083. </member>
  2084. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)">
  2085. <summary>
  2086. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2087. </summary>
  2088. <param name="expression"> The DbIsNullExpression that is being visited. </param>
  2089. </member>
  2090. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression)">
  2091. <summary>
  2092. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2093. </summary>
  2094. <param name="expression"> The DbIsOfExpression that is being visited. </param>
  2095. </member>
  2096. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)">
  2097. <summary>
  2098. Walks the structure
  2099. </summary>
  2100. <param name="expression"> The DbJoinExpression that is being visited. </param>
  2101. </member>
  2102. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression)">
  2103. <summary>
  2104. Walks the structure
  2105. </summary>
  2106. <param name="expression"> The DbLikeExpression that is being visited. </param>
  2107. </member>
  2108. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression)">
  2109. <summary>
  2110. Walks the structure
  2111. </summary>
  2112. <exception cref="T:System.NotSupportedException">expression.Limit is DbParameterReferenceExpression</exception>
  2113. </member>
  2114. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  2115. <summary>
  2116. Walks the arguments
  2117. </summary>
  2118. <param name="expression"> The DbNewInstanceExpression that is being visited. </param>
  2119. </member>
  2120. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNotExpression)">
  2121. <summary>
  2122. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2123. </summary>
  2124. <param name="expression"> The DbNotExpression that is being visited. </param>
  2125. </member>
  2126. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNullExpression)">
  2127. <summary>
  2128. Returns false
  2129. </summary>
  2130. <param name="expression"> The DbNullExpression that is being visited. </param>
  2131. <returns> false </returns>
  2132. </member>
  2133. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression)">
  2134. <summary>
  2135. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2136. </summary>
  2137. <param name="expression"> The DbOfTypeExpression that is being visited. </param>
  2138. </member>
  2139. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression)">
  2140. <summary>
  2141. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  2142. </summary>
  2143. <param name="expression"> The DbOrExpression that is being visited. </param>
  2144. </member>
  2145. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbInExpression)">
  2146. <summary>
  2147. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbInExpression"/>
  2148. </summary>
  2149. <param name="expression"> The DbInExpression that is being visited. </param>
  2150. </member>
  2151. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression)">
  2152. <summary>
  2153. Returns false
  2154. </summary>
  2155. <param name="expression"> The DbParameterReferenceExpression that is being visited. </param>
  2156. </member>
  2157. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)">
  2158. <summary>
  2159. Walks the structure
  2160. </summary>
  2161. <param name="expression"> The DbProjectExpression that is being visited. </param>
  2162. </member>
  2163. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)">
  2164. <summary>
  2165. Returns false
  2166. </summary>
  2167. <param name="expression"> The DbPropertyExpression that is being visited. </param>
  2168. </member>
  2169. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)">
  2170. <summary>
  2171. Walks the structure
  2172. </summary>
  2173. <param name="expression"> The DbQuantifierExpression that is being visited. </param>
  2174. </member>
  2175. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefExpression)">
  2176. <summary>
  2177. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2178. </summary>
  2179. <param name="expression"> The DbRefExpression that is being visited. </param>
  2180. </member>
  2181. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefKeyExpression)">
  2182. <summary>
  2183. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2184. </summary>
  2185. <param name="expression"> The DbRefKeyExpression that is being visited. </param>
  2186. </member>
  2187. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRelationshipNavigationExpression)">
  2188. <summary>
  2189. Walks the structure
  2190. </summary>
  2191. <param name="expression"> The DbRelationshipNavigationExpression that is being visited. </param>
  2192. </member>
  2193. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbScanExpression)">
  2194. <summary>
  2195. Returns false;
  2196. </summary>
  2197. <param name="expression"> The DbScanExpression that is being visited. </param>
  2198. </member>
  2199. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  2200. <summary>
  2201. Resturns true
  2202. </summary>
  2203. <exception cref="T:System.NotSupportedException">expression.Count is DbParameterReferenceExpression</exception>
  2204. </member>
  2205. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSortExpression)">
  2206. <summary>
  2207. Walks the structure
  2208. </summary>
  2209. <param name="expression"> The DbSortExpression that is being visited. </param>
  2210. </member>
  2211. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbTreatExpression)">
  2212. <summary>
  2213. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  2214. </summary>
  2215. <param name="expression"> The DbTreatExpression that is being visited. </param>
  2216. </member>
  2217. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)">
  2218. <summary>
  2219. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  2220. </summary>
  2221. <param name="expression"> The DbUnionAllExpression that is being visited. </param>
  2222. </member>
  2223. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)">
  2224. <summary>
  2225. Returns false
  2226. </summary>
  2227. <param name="expression"> The DbVariableReferenceExpression that is being visited. </param>
  2228. <returns> false </returns>
  2229. </member>
  2230. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.ListElementHandler`1">
  2231. <summary>
  2232. Used for <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitList``1(System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.ListElementHandler{``0},System.Collections.Generic.IList{``0})"/>
  2233. </summary>
  2234. </member>
  2235. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter">
  2236. <summary>
  2237. Rewrites an expression tree to make it suitable for translation to SQL appropriate for SQL Server 2000
  2238. In particular, it replaces expressions that are not directly supported on SQL Server 2000
  2239. with alternative translations. The following expressions are translated:
  2240. <list type="bullet">
  2241. <item>
  2242. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/>
  2243. </item>
  2244. <item>
  2245. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>
  2246. </item>
  2247. <item>
  2248. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  2249. </item>
  2250. </list>
  2251. The other expressions are copied unmodified.
  2252. The new expression belongs to a new query command tree.
  2253. </summary>
  2254. </member>
  2255. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Rewrite(System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree)">
  2256. <summary>
  2257. The only entry point.
  2258. Rewrites the given tree by replacing expressions that are not directly supported on SQL Server 2000
  2259. with alterntive translations.
  2260. </summary>
  2261. <param name="originalTree"> The tree to rewrite </param>
  2262. <returns> The new tree </returns>
  2263. </member>
  2264. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.#ctor(System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace)">
  2265. <summary>
  2266. Private Constructor.
  2267. </summary>
  2268. </member>
  2269. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  2270. <summary>
  2271. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2272. </summary>
  2273. </member>
  2274. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  2275. <summary>
  2276. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2277. </summary>
  2278. </member>
  2279. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  2280. <summary>
  2281. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2282. Logicaly, <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/> translates to:
  2283. SELECT Y.x1, Y.x2, ..., Y.xn
  2284. FROM (
  2285. SELECT X.x1, X.x2, ..., X.xn,
  2286. FROM input AS X
  2287. EXCEPT
  2288. SELECT TOP(count) Z.x1, Z.x2, ..., Z.xn
  2289. FROM input AS Z
  2290. ORDER BY sk1, sk2, ...
  2291. ) AS Y
  2292. ORDER BY sk1, sk2, ...
  2293. Here, input refers to the input of the <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>, and count to the count property of the
  2294. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  2295. .
  2296. The implementation of EXCEPT is non-duplicate eliminating, and does equality comparison only over the
  2297. equality comparable columns of the input.
  2298. This corresponds to the following expression tree:
  2299. SORT
  2300. |
  2301. NON-DISTINCT EXCEPT (specially translated,
  2302. |
  2303. | - Left: clone of input
  2304. | - Right:
  2305. |
  2306. Limit
  2307. |
  2308. | - Limit: Count
  2309. | - Input
  2310. |
  2311. Sort
  2312. |
  2313. input
  2314. </summary>
  2315. </member>
  2316. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind)">
  2317. <summary>
  2318. This method is invoked when tranforming <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/> and <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/> by doing comparison over all input columns.
  2319. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2320. </summary>
  2321. </member>
  2322. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)">
  2323. <summary>
  2324. This method is used for translating <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/> and <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/>,
  2325. and for translating the "Except" part of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>.
  2326. into the follwoing expression:
  2327. A INTERSECT B, A EXCEPT B
  2328. (DISTINCT)
  2329. |
  2330. FILTER
  2331. |
  2332. | - Input: A
  2333. | - Predicate:(NOT)
  2334. |
  2335. ANY
  2336. |
  2337. | - Input: B
  2338. | - Predicate: (B.b1 = A.a1 or (B.b1 is null and A.a1 is null))
  2339. AND (B.b2 = A.a2 or (B.b2 is null and A.a2 is null))
  2340. AND ...
  2341. AND (B.bn = A.an or (B.bn is null and A.an is null)))
  2342. Here, A corresponds to right and B to left.
  2343. (NOT) is present when transforming Except
  2344. for the purpose of translating <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/> or <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>.
  2345. (DISTINCT) is present when transforming for the purpose of translating
  2346. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/> or <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>.
  2347. For <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>, the input to ANY is caped with project which projects out only
  2348. the columns represented in the sortExpressionsOverLeft list and only these are used in the predicate.
  2349. This is because we want to support skip over input with non-equal comarable columns and we have no way to recognize these.
  2350. </summary>
  2351. <param name="left"> </param>
  2352. <param name="right"> </param>
  2353. <param name="expressionKind"> </param>
  2354. <param name="sortExpressionsOverLeft"> note that this list gets destroyed by this method </param>
  2355. <param name="sortExpressionsBindingVariableName"> </param>
  2356. </member>
  2357. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.FlattenProperties(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression})">
  2358. <summary>
  2359. Adds the flattened properties on the input to the flattenedProperties list.
  2360. </summary>
  2361. </member>
  2362. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.RemoveNonSortProperties(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String,System.String)">
  2363. <summary>
  2364. Helper method for
  2365. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2366. Removes all pairs of property expressions from list1 and list2, for which the property expression in list1
  2367. does not have a 'matching' property expression in list2.
  2368. The lists list1 and list2 are known to not create duplicate, and the purpose of the sortList is just for this method.
  2369. Thus, to optimize the match process, we remove the seen property expressions from the sort list in
  2370. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.HasMatchInList(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String,System.String)"/>
  2371. when iterating both list simultaneously.
  2372. </summary>
  2373. </member>
  2374. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.HasMatchInList(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String,System.String)">
  2375. <summary>
  2376. Helper method for <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.RemoveNonSortProperties(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String,System.String)"/>
  2377. Checks whether expr has a 'match' in the given list of property expressions.
  2378. If it does, the matching expression is removed form the list, to speed up future matching.
  2379. </summary>
  2380. </member>
  2381. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.AreMatching(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression,System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression,System.String,System.String)">
  2382. <summary>
  2383. Determines whether two expressions match.
  2384. They match if they are of the shape
  2385. expr1 -> DbPropertyExpression(... (DbPropertyExpression(DbVariableReferenceExpression(expr1BindingVariableName), nameX), ..., name1)
  2386. expr1 -> DbPropertyExpression(... (DbPropertyExpression(DbVariableReferenceExpression(expr2BindingVariableName), nameX), ..., name1),
  2387. i.e. if they only differ in the name of the binding.
  2388. </summary>
  2389. </member>
  2390. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.CapWithProject(System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression})">
  2391. <summary>
  2392. Helper method for
  2393. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.TransformIntersectOrExcept(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression},System.String)"/>
  2394. Creates a
  2395. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression"/>
  2396. over the given inputBinding that projects out the given flattenedProperties.
  2397. and updates the flattenedProperties to be over the newly created project.
  2398. </summary>
  2399. <returns>
  2400. An <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding"/> over the newly created <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression"/>
  2401. </returns>
  2402. </member>
  2403. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder">
  2404. <summary>
  2405. This class is like StringBuilder. While traversing the tree for the first time,
  2406. we do not know all the strings that need to be appended e.g. things that need to be
  2407. renamed, nested select statements etc. So, we use a builder that can collect
  2408. all kinds of sql fragments.
  2409. </summary>
  2410. </member>
  2411. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.Append(System.Object)">
  2412. <summary>
  2413. Add an object to the list - we do not verify that it is a proper sql fragment
  2414. since this is an internal method.
  2415. </summary>
  2416. </member>
  2417. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.AppendLine">
  2418. <summary>
  2419. This is to pretty print the SQL. The writer <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlWriter"/>
  2420. needs to know about new lines so that it can add the right amount of
  2421. indentation at the beginning of lines.
  2422. </summary>
  2423. </member>
  2424. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  2425. <summary>
  2426. We delegate the writing of the fragment to the appropriate type.
  2427. </summary>
  2428. </member>
  2429. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.IsEmpty">
  2430. <summary>
  2431. Whether the builder is empty. This is used by the <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)"/>
  2432. to determine whether a sql statement can be reused.
  2433. </summary>
  2434. </member>
  2435. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler">
  2436. <summary>
  2437. Enacapsulates the logic required to translate function calls represented as instances of DbFunctionExpression into SQL.
  2438. There are several special cases that modify how the translation should proceed. These include:
  2439. - 'Special' canonical functions, for which the function name or arguments differ between the EDM canonical function and the SQL function
  2440. - 'Special' server functions, which are similar to the 'special' canonical functions but sourced by the SQL Server provider manifest
  2441. - Niladic functions, which require the parentheses that would usually follow the function name to be omitted
  2442. - Spatial canonical functions, which must translate to a static method call, instance method call, or instance property access against
  2443. one of the built-in spatial CLR UDTs (geography/geometry).
  2444. </summary>
  2445. </member>
  2446. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeStoreFunctionHandlers">
  2447. <summary>
  2448. All special store functions and their handlers
  2449. </summary>
  2450. </member>
  2451. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeCanonicalFunctionHandlers">
  2452. <summary>
  2453. All special non-aggregate canonical functions and their handlers
  2454. </summary>
  2455. </member>
  2456. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeFunctionNameToOperatorDictionary">
  2457. <summary>
  2458. Initalizes the mapping from functions to TSql operators
  2459. for all functions that translate to TSql operators
  2460. </summary>
  2461. </member>
  2462. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeDateAddFunctionNameToDatepartDictionary">
  2463. <summary>
  2464. Initalizes the mapping from names of canonical function for date/time addition
  2465. to corresponding dateparts
  2466. </summary>
  2467. </member>
  2468. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeDateDiffFunctionNameToDatepartDictionary">
  2469. <summary>
  2470. Initalizes the mapping from names of canonical function for date/time difference
  2471. to corresponding dateparts
  2472. </summary>
  2473. </member>
  2474. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeographyStaticMethodFunctionsDictionary">
  2475. <summary>
  2476. Initalizes the mapping from names of canonical function that represent static geography methods to their corresponding
  2477. static method name, qualified with the 'geography::' prefix.
  2478. </summary>
  2479. </member>
  2480. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeographyInstancePropertyFunctionsDictionary">
  2481. <summary>
  2482. Initalizes the mapping from names of canonical function that represent geography instance properties to their corresponding
  2483. store property name.
  2484. </summary>
  2485. </member>
  2486. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeRenamedGeographyInstanceMethodFunctions">
  2487. <summary>
  2488. Initalizes the mapping of canonical function name to instance method name for geography instance functions that differ in name from the sql server equivalent.
  2489. </summary>
  2490. </member>
  2491. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeometryStaticMethodFunctionsDictionary">
  2492. <summary>
  2493. Initalizes the mapping from names of canonical function that represent static geometry methods to their corresponding
  2494. static method name, qualified with the 'geometry::' prefix.
  2495. </summary>
  2496. </member>
  2497. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeometryInstancePropertyFunctionsDictionary">
  2498. <summary>
  2499. Initalizes the mapping from names of canonical function that represent geometry instance properties to their corresponding
  2500. store property name.
  2501. </summary>
  2502. </member>
  2503. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeRenamedGeometryInstanceMethodFunctions">
  2504. <summary>
  2505. Initalizes the mapping of canonical function name to instance method name for geometry instance functions that differ in name from the sql server equivalent.
  2506. </summary>
  2507. </member>
  2508. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpecialStoreFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2509. <summary>
  2510. Determines whether the given function is a store function that
  2511. requires special handling
  2512. </summary>
  2513. </member>
  2514. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpecialCanonicalFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2515. <summary>
  2516. Determines whether the given function is a canonical function that
  2517. requires special handling
  2518. </summary>
  2519. </member>
  2520. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpatialCanonicalFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind@)">
  2521. <summary>
  2522. Determines whether the given function is a canonical function the translates
  2523. to a spatial (geography/geometry) property access or method call.
  2524. </summary>
  2525. </member>
  2526. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionDefault(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2527. <summary>
  2528. Default handling for functions.
  2529. Translates them to FunctionName(arg1, arg2, ..., argn)
  2530. </summary>
  2531. </member>
  2532. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionDefaultGivenName(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.String)">
  2533. <summary>
  2534. Default handling for functions with a given name.
  2535. Translates them to FunctionName(arg1, arg2, ..., argn)
  2536. </summary>
  2537. </member>
  2538. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionDefaultCastReturnValue(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.String,System.String)">
  2539. <summary>
  2540. Default handling for functions with a given name and given return value cast.
  2541. Translates them to CAST(FunctionName(arg1, arg2, ..., argn) AS returnType)
  2542. </summary>
  2543. </member>
  2544. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionArgumentsDefault(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2545. <summary>
  2546. Default handling on function arguments.
  2547. Appends the list of arguments to the given result
  2548. If the function is niladic it does not append anything,
  2549. otherwise it appends (arg1, arg2, .., argn)
  2550. </summary>
  2551. </member>
  2552. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionGivenNameBasedOnVersion(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.String,System.String)">
  2553. <summary>
  2554. Handler for functions that need to be translated to different store function based on version
  2555. </summary>
  2556. </member>
  2557. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialStoreFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2558. <summary>
  2559. Handler for special build in functions
  2560. </summary>
  2561. </member>
  2562. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialCanonicalFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2563. <summary>
  2564. Handler for special canonical functions
  2565. </summary>
  2566. </member>
  2567. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialFunction(System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.FunctionHandler},System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2568. <summary>
  2569. Dispatches the special function processing to the appropriate handler
  2570. </summary>
  2571. </member>
  2572. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialFunctionToOperator(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Boolean)">
  2573. <summary>
  2574. Handles functions that are translated into TSQL operators.
  2575. The given function should have one or two arguments.
  2576. Functions with one arguemnt are translated into
  2577. op arg
  2578. Functions with two arguments are translated into
  2579. arg0 op arg1
  2580. Also, the arguments can be optionaly enclosed in parethesis
  2581. </summary>
  2582. <param name="sqlgen"> </param>
  2583. <param name="e"> </param>
  2584. <param name="parenthesiseArguments"> Whether the arguments should be enclosed in parethesis </param>
  2585. </member>
  2586. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleConcatFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2587. <summary>
  2588. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialFunctionToOperator(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Boolean)"></see>
  2589. </summary>
  2590. </member>
  2591. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionBitwise(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2592. <summary>
  2593. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialFunctionToOperator(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Boolean)"></see>
  2594. </summary>
  2595. </member>
  2596. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleDatepartDateFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2597. <summary>
  2598. Handles special case in which datapart 'type' parameter is present. all the functions
  2599. handles here have *only* the 1st parameter as datepart. datepart value is passed along
  2600. the QP as string and has to be expanded as TSQL keyword.
  2601. </summary>
  2602. </member>
  2603. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDatepart(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2604. <summary>
  2605. Handler for canonical functions for extracting date parts.
  2606. For example:
  2607. Year(date) -> DATEPART( year, date)
  2608. </summary>
  2609. </member>
  2610. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionGetTotalOffsetMinutes(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2611. <summary>
  2612. Handler for canonical funcitons for GetTotalOffsetMinutes.
  2613. GetTotalOffsetMinutes(e) --> Datepart(tzoffset, e)
  2614. </summary>
  2615. </member>
  2616. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDatepart(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2617. <summary>
  2618. Handler for turning a canonical function into DATEPART
  2619. Results in DATEPART(datepart, e)
  2620. </summary>
  2621. </member>
  2622. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2623. <summary>
  2624. Handler for the canonical function CurrentDateTime
  2625. For Sql8 and Sql9: CurrentDateTime() -> GetDate()
  2626. For Sql10: CurrentDateTime() -> SysDateTime()
  2627. </summary>
  2628. </member>
  2629. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentUtcDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2630. <summary>
  2631. Handler for the canonical function CurrentUtcDateTime
  2632. For Sql8 and Sql9: CurrentUtcDateTime() -> GetUtcDate()
  2633. For Sql10: CurrentUtcDateTime() -> SysUtcDateTime()
  2634. </summary>
  2635. </member>
  2636. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentDateTimeOffset(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2637. <summary>
  2638. Handler for the canonical function CurrentDateTimeOffset
  2639. For Sql8 and Sql9: throw
  2640. For Sql10: CurrentDateTimeOffset() -> SysDateTimeOffset()
  2641. </summary>
  2642. </member>
  2643. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2644. <summary>
  2645. See <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateTimeTypeCreation(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Boolean,System.Boolean)"/> for exact translation
  2646. Pre Katmai creates datetime.
  2647. On Katmai creates datetime2.
  2648. </summary>
  2649. </member>
  2650. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateDateTimeOffset(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2651. <summary>
  2652. See <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateTimeTypeCreation(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Boolean,System.Boolean)"/> for exact translation
  2653. Pre Katmai not supported.
  2654. On Katmai creates datetimeoffset.
  2655. </summary>
  2656. </member>
  2657. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2658. <summary>
  2659. See <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateTimeTypeCreation(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Boolean,System.Boolean)"/> for exact translation
  2660. Pre Katmai not supported.
  2661. On Katmai creates time.
  2662. </summary>
  2663. </member>
  2664. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateTimeTypeCreation(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Boolean,System.Boolean)">
  2665. <summary>
  2666. Helper for all date and time types creating functions.
  2667. The given expression is in general trainslated into:
  2668. CONVERT(@typename, [datePart] + [timePart] + [timeZonePart], 121), where the datePart and the timeZonePart are optional
  2669. The individual parts are translated as:
  2670. Date part:
  2671. convert(varchar(255), @year) + '-' + convert(varchar(255), @month) + '-' + convert(varchar(255), @day)
  2672. Time part:
  2673. PRE KATMAI: convert(varchar(255), @hour)+ ':' + convert(varchar(255), @minute)+ ':' + str(@second, 6, 3)
  2674. KATMAI: convert(varchar(255), @hour)+ ':' + convert(varchar(255), @minute)+ ':' + str(@second, 10, 7)
  2675. Time zone part:
  2676. (case when @tzoffset >= 0 then '+' else '-' end) + convert(varchar(255), ABS(@tzoffset)/60) + ':' + convert(varchar(255), ABS(@tzoffset)%60)
  2677. </summary>
  2678. </member>
  2679. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.AppendConvertToVarchar(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2680. <summary>
  2681. Helper method that wrapps the given expession with a conver to varchar(255)
  2682. </summary>
  2683. </member>
  2684. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTruncateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2685. <summary>
  2686. TruncateTime(DateTime X)
  2687. PreKatmai: TRUNCATETIME(X) => CONVERT(DATETIME, CONVERT(VARCHAR(255), expression, 102), 102)
  2688. Katmai: TRUNCATETIME(X) => CONVERT(DATETIME2, CONVERT(VARCHAR(255), expression, 102), 102)
  2689. TruncateTime(DateTimeOffset X)
  2690. TRUNCATETIME(X) => CONVERT(datetimeoffset, CONVERT(VARCHAR(255), expression, 102)
  2691. + ' 00:00:00 ' + Right(convert(varchar(255), @arg, 121), 6), 102)
  2692. </summary>
  2693. </member>
  2694. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateAddKatmaiOrNewer(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2695. <summary>
  2696. Handler for date addition functions supported only starting from Katmai
  2697. </summary>
  2698. </member>
  2699. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateAdd(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2700. <summary>
  2701. Handler for all date/time addition canonical functions.
  2702. Translation, e.g.
  2703. AddYears(datetime, number) => DATEADD(year, number, datetime)
  2704. </summary>
  2705. </member>
  2706. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateDiffKatmaiOrNewer(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2707. <summary>
  2708. Hanndler for date differencing functions supported only starting from Katmai
  2709. </summary>
  2710. </member>
  2711. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateDiff(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2712. <summary>
  2713. Handler for all date/time addition canonical functions.
  2714. Translation, e.g.
  2715. DiffYears(datetime, number) => DATEDIFF(year, number, datetime)
  2716. </summary>
  2717. </member>
  2718. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionIndexOf(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2719. <summary>
  2720. Function rename IndexOf -> CHARINDEX
  2721. </summary>
  2722. </member>
  2723. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionNewGuid(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2724. <summary>
  2725. Function rename NewGuid -> NEWID
  2726. </summary>
  2727. </member>
  2728. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionLength(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2729. <summary>
  2730. Function rename Length -> LEN
  2731. </summary>
  2732. </member>
  2733. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionRound(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2734. <summary>
  2735. Round(numericExpression) -> Round(numericExpression, 0);
  2736. Round(numericExpression, digits) -> Round(numericExpression, digits);
  2737. </summary>
  2738. </member>
  2739. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTruncate(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2740. <summary>
  2741. Truncate(numericExpression) -> Round(numericExpression, 0, 1); (does not exist as canonical function yet)
  2742. Truncate(numericExpression, digits) -> Round(numericExpression, digits, 1);
  2743. </summary>
  2744. </member>
  2745. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionRoundOrTruncate(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Boolean)">
  2746. <summary>
  2747. Common handler for the canonical functions ROUND and TRUNCATE
  2748. </summary>
  2749. </member>
  2750. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionAbs(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2751. <summary>
  2752. Handle the canonical function Abs().
  2753. </summary>
  2754. </member>
  2755. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTrim(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2756. <summary>
  2757. TRIM(string) -> LTRIM(RTRIM(string))
  2758. </summary>
  2759. </member>
  2760. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionToLower(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2761. <summary>
  2762. Function rename ToLower -> LOWER
  2763. </summary>
  2764. </member>
  2765. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionToUpper(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2766. <summary>
  2767. Function rename ToUpper -> UPPER
  2768. </summary>
  2769. </member>
  2770. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.TranslateConstantParameterForLike(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Boolean,System.Boolean)">
  2771. <summary>
  2772. Function to translate the StartsWith, EndsWith and Contains canonical functions to LIKE expression in T-SQL
  2773. and also add the trailing ESCAPE '~' when escaping of the search string for the LIKE expression has occurred
  2774. </summary>
  2775. </member>
  2776. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionContains(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2777. <summary>
  2778. Handler for Contains. Wraps the normal translation with a case statement
  2779. </summary>
  2780. </member>
  2781. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionContains(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2782. <summary>
  2783. CONTAINS(arg0, arg1) => arg0 LIKE '%arg1%'
  2784. </summary>
  2785. </member>
  2786. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionStartsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2787. <summary>
  2788. Handler for StartsWith. Wraps the normal translation with a case statement
  2789. </summary>
  2790. </member>
  2791. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionStartsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2792. <summary>
  2793. STARTSWITH(arg0, arg1) => arg0 LIKE 'arg1%'
  2794. </summary>
  2795. </member>
  2796. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionEndsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2797. <summary>
  2798. Handler for EndsWith. Wraps the normal translation with a case statement
  2799. </summary>
  2800. </member>
  2801. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionEndsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2802. <summary>
  2803. ENDSWITH(arg0, arg1) => arg0 LIKE '%arg1'
  2804. </summary>
  2805. </member>
  2806. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.WrapPredicate(System.Func{System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Data.Entity.SqlServer.SqlGen.SqlBuilder},System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2807. <summary>
  2808. Turns a predicate into a statement returning a bit
  2809. PREDICATE => CASE WHEN (PREDICATE) THEN CAST(1 AS BIT) WHEN (NOT (PREDICATE)) CAST (O AS BIT) END
  2810. The predicate is produced by the given predicateTranslator.
  2811. </summary>
  2812. </member>
  2813. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.WriteFunctionName(System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Data.Entity.Core.Metadata.Edm.EdmFunction)">
  2814. <summary>
  2815. Writes the function name to the given SqlBuilder.
  2816. </summary>
  2817. </member>
  2818. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsStoreFunction(System.Data.Entity.Core.Metadata.Edm.EdmFunction)">
  2819. <summary>
  2820. Is this a Store function (ie) does it have the builtinAttribute specified and it is not a canonical function?
  2821. </summary>
  2822. </member>
  2823. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt64(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2824. <summary>
  2825. determines if the function requires the return type be enforeced by use of a cast expression
  2826. </summary>
  2827. </member>
  2828. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt32(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2829. <summary>
  2830. determines if the function requires the return type be enforeced by use of a cast expression
  2831. </summary>
  2832. </member>
  2833. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt16(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2834. <summary>
  2835. determines if the function requires the return type be enforeced by use of a cast expression
  2836. </summary>
  2837. </member>
  2838. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToSingle(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2839. <summary>
  2840. determines if the function requires the return type be enforeced by use of a cast expression
  2841. </summary>
  2842. </member>
  2843. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToGivenType(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Collections.Generic.ISet{System.String},System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind)">
  2844. <summary>
  2845. Determines if the function requires the return type be enforced by use of a cast expression
  2846. </summary>
  2847. </member>
  2848. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlGenerator">
  2849. <summary>
  2850. Translates the command object into a SQL string that can be executed on
  2851. SQL Server 2000 and SQL Server 2005.
  2852. </summary>
  2853. <remarks>
  2854. The translation is implemented as a visitor <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor`1"/>
  2855. over the query tree. It makes a single pass over the tree, collecting the sql
  2856. fragments for the various nodes in the tree <see cref="T:System.Data.Entity.SqlServer.SqlGen.ISqlFragment"/>.
  2857. The major operations are
  2858. <list type="bullet">
  2859. <item>
  2860. Select statement minimization. Multiple nodes in the query tree
  2861. that can be part of a single SQL select statement are merged. e.g. a
  2862. Filter node that is the input of a Project node can typically share the
  2863. same SQL statement.
  2864. </item>
  2865. <item>
  2866. Alpha-renaming. As a result of the statement minimization above, there
  2867. could be name collisions when using correlated subqueries
  2868. <example>
  2869. <code>Filter(
  2870. b = Project( c.x
  2871. c = Extent(foo)
  2872. )
  2873. exists (
  2874. Filter(
  2875. c = Extent(foo)
  2876. b.x = c.x
  2877. )
  2878. )
  2879. )</code>
  2880. The first Filter, Project and Extent will share the same SQL select statement.
  2881. The alias for the Project i.e. b, will be replaced with c.
  2882. If the alias c for the Filter within the exists clause is not renamed,
  2883. we will get <c>c.x = c.x</c>, which is incorrect.
  2884. Instead, the alias c within the second filter should be renamed to c1, to give
  2885. <c>c.x = c1.x</c> i.e. b is renamed to c, and c is renamed to c1.
  2886. </example>
  2887. </item>
  2888. <item>
  2889. Join flattening. In the query tree, a list of join nodes is typically
  2890. represented as a tree of Join nodes, each with 2 children. e.g.
  2891. <example>
  2892. <code>a = Join(InnerJoin
  2893. b = Join(CrossJoin
  2894. c = Extent(foo)
  2895. d = Extent(foo)
  2896. )
  2897. e = Extent(foo)
  2898. on b.c.x = e.x
  2899. )</code>
  2900. If translated directly, this will be translated to
  2901. <code>FROM ( SELECT c.*, d.*
  2902. FROM foo as c
  2903. CROSS JOIN foo as d) as b
  2904. INNER JOIN foo as e on b.x' = e.x</code>
  2905. It would be better to translate this as
  2906. <code>FROM foo as c
  2907. CROSS JOIN foo as d
  2908. INNER JOIN foo as e on c.x = e.x</code>
  2909. This allows the optimizer to choose an appropriate join ordering for evaluation.
  2910. </example>
  2911. </item>
  2912. <item>
  2913. Select * and column renaming. In the example above, we noticed that
  2914. in some cases we add
  2915. <c>SELECT * FROM ...</c>
  2916. to complete the SQL
  2917. statement. i.e. there is no explicit PROJECT list.
  2918. In this case, we enumerate all the columns available in the FROM clause
  2919. This is particularly problematic in the case of Join trees, since the columns
  2920. from the extents joined might have the same name - this is illegal. To solve
  2921. this problem, we will have to rename columns if they are part of a SELECT *
  2922. for a JOIN node - we do not need renaming in any other situation.
  2923. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  2924. .
  2925. </item>
  2926. </list>
  2927. <para> Renaming issues. When rows or columns are renamed, we produce names that are unique globally with respect to the query. The names are derived from the original names, with an integer as a suffix. e.g. CustomerId will be renamed to CustomerId1, CustomerId2 etc. Since the names generated are globally unique, they will not conflict when the columns of a JOIN SELECT statement are joined with another JOIN. </para>
  2928. <para>
  2929. Record flattening. SQL server does not have the concept of records. However, a join statement produces records. We have to flatten the record accesses into a simple <c>alias.column</c> form.
  2930. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  2931. </para>
  2932. <para>
  2933. Building the SQL. There are 2 phases
  2934. <list type="numbered">
  2935. <item>
  2936. Traverse the tree, producing a sql builder
  2937. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2938. </item>
  2939. <item>
  2940. Write the SqlBuilder into a string, renaming the aliases and columns
  2941. as needed.
  2942. </item>
  2943. </list>
  2944. In the first phase, we traverse the tree. We cannot generate the SQL string right away, since
  2945. <list type="bullet">
  2946. <item>The WHERE clause has to be visited before the from clause.</item>
  2947. <item>
  2948. extent aliases and column aliases need to be renamed. To minimize
  2949. renaming collisions, all the names used must be known, before any renaming
  2950. choice is made.
  2951. </item>
  2952. </list>
  2953. To defer the renaming choices, we use symbols
  2954. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  2955. . These are renamed in the second phase. Since visitor methods cannot transfer information to child nodes through parameters, we use some global stacks,
  2956. <list type="bullet">
  2957. <item>
  2958. A stack for the current SQL select statement. This is needed by
  2959. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/>
  2960. to create a
  2961. list of free variables used by a select statement. This is needed for
  2962. alias renaming.
  2963. </item>
  2964. <item>
  2965. A stack for the join context. When visiting an extent,
  2966. we need to know whether we are inside a join or not. If we are inside
  2967. a join, we do not create a new SELECT statement.
  2968. </item>
  2969. </list>
  2970. </para>
  2971. <para>
  2972. Global state. To enable renaming, we maintain
  2973. <list type="bullet">
  2974. <item>The set of all extent aliases used.</item>
  2975. <item>The set of all parameter names.</item>
  2976. <item>The set of all column names that may need to be renamed.</item>
  2977. </list>
  2978. Finally, we have a symbol table to lookup variable references. All references to the same extent have the same symbol.
  2979. </para>
  2980. <para>
  2981. Sql select statement sharing. Each of the relational operator nodes
  2982. <list type="bullet">
  2983. <item>Project</item>
  2984. <item>Filter</item>
  2985. <item>GroupBy</item>
  2986. <item>Sort/OrderBy</item>
  2987. </list>
  2988. can add its non-input (e.g. project, predicate, sort order etc.) to the SQL statement for the input, or create a new SQL statement. If it chooses to reuse the input's SQL statement, we play the following symbol table trick to accomplish renaming. The symbol table entry for the alias of the current node points to the symbol for the input in the input's SQL statement.
  2989. <example>
  2990. <code>Project(b.x
  2991. b = Filter(
  2992. c = Extent(foo)
  2993. c.x = 5)
  2994. )</code>
  2995. The Extent node creates a new SqlSelectStatement. This is added to the
  2996. symbol table by the Filter as {c, Symbol(c)}. Thus, <c>c.x</c> is resolved to
  2997. <c>Symbol(c).x</c>.
  2998. Looking at the project node, we add {b, Symbol(c)} to the symbol table if the
  2999. SQL statement is reused, and {b, Symbol(b)}, if there is no reuse.
  3000. Thus, <c>b.x</c> is resolved to <c>Symbol(c).x</c> if there is reuse, and to
  3001. <c>Symbol(b).x</c> if there is no reuse.
  3002. </example>
  3003. </para>
  3004. </remarks>
  3005. </member>
  3006. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.selectStatementStack">
  3007. <summary>
  3008. Every relational node has to pass its SELECT statement to its children
  3009. This allows them (DbVariableReferenceExpression eventually) to update the list of
  3010. outer extents (free variables) used by this select statement.
  3011. </summary>
  3012. </member>
  3013. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.isParentAJoinStack">
  3014. <summary>
  3015. Nested joins and extents need to know whether they should create
  3016. a new Select statement, or reuse the parent's. This flag
  3017. indicates whether the parent is a join or not.
  3018. </summary>
  3019. </member>
  3020. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.isVarRefSingle">
  3021. <summary>
  3022. VariableReferenceExpressions are allowed only as children of DbPropertyExpression
  3023. or MethodExpression. The cheapest way to ensure this is to set the following
  3024. property in DbVariableReferenceExpression and reset it in the allowed parent expressions.
  3025. </summary>
  3026. </member>
  3027. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._candidateParametersToForceNonUnicode">
  3028. <summary>
  3029. Maintain the list of (string) DbParameterReferenceExpressions that should be compensated, viz.
  3030. forced to non-unicode format. A parameter is added to the list if it is being compared to a
  3031. non-unicode store column and none of its other usages in the query tree, disqualify it
  3032. (For example - if the parameter is also being projected or compared to a unicode column)
  3033. The goal of the compensation is to have the store index picked up by the server.
  3034. String constants are also compensated and the decision is local, unlike parameters.
  3035. </summary>
  3036. </member>
  3037. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._forceNonUnicode">
  3038. <summary>
  3039. Set and reset in DbComparisonExpression and DbLikeExpression visit methods. Maintains
  3040. global state information that the children of these nodes are candidates for compensation.
  3041. </summary>
  3042. </member>
  3043. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._ignoreForceNonUnicodeFlag">
  3044. <summary>
  3045. Set when it is is safe to ignore the unicode/non-unicode aspect. See <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsNullExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression,System.Boolean)"/> for an example.
  3046. </summary>
  3047. </member>
  3048. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._sqlVersion">
  3049. <summary>
  3050. The current SQL Server version
  3051. </summary>
  3052. </member>
  3053. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.#ctor(System.Data.Entity.SqlServer.SqlVersion)">
  3054. <summary>
  3055. Basic constructor.
  3056. </summary>
  3057. <param name="sqlVersion"> server version </param>
  3058. </member>
  3059. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GenerateSql(System.Data.Entity.Core.Common.CommandTrees.DbCommandTree,System.Data.Entity.SqlServer.SqlVersion,System.Collections.Generic.List{System.Data.SqlClient.SqlParameter}@,System.Data.CommandType@,System.Collections.Generic.HashSet{System.String}@)">
  3060. <summary>
  3061. General purpose static function that can be called from System.Data assembly
  3062. </summary>
  3063. <param name="tree"> command tree </param>
  3064. <param name="sqlVersion"> Server version </param>
  3065. <param name="parameters"> Parameters to add to the command tree corresponding to constants in the command tree. Used only in ModificationCommandTrees. </param>
  3066. <param name="commandType"> CommandType for generated command. </param>
  3067. <param name="paramsToForceNonUnicode"> </param>
  3068. <returns> The string representing the SQL to be executed. </returns>\
  3069. </member>
  3070. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GenerateSql(System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree,System.Collections.Generic.HashSet{System.String}@)">
  3071. <summary>
  3072. Translate a command tree to a SQL string.
  3073. The input tree could be translated to either a SQL SELECT statement
  3074. or a SELECT expression. This choice is made based on the return type
  3075. of the expression
  3076. CollectionType => select statement
  3077. non collection type => select expression
  3078. </summary>
  3079. <returns> The string representing the SQL to be executed. </returns>
  3080. </member>
  3081. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.ISqlFragment)">
  3082. <summary>
  3083. Convert the SQL fragments to a string. Writes a string representing the SQL to be executed
  3084. into the specified writer.
  3085. </summary>
  3086. <param name="writer"> </param>
  3087. <param name="sqlStatement">The fragment to be emitted</param>
  3088. <returns>The writer specified for fluent continuations. </returns>
  3089. </member>
  3090. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)">
  3091. <summary>
  3092. Translate(left) AND Translate(right)
  3093. </summary>
  3094. <returns>
  3095. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> .
  3096. </returns>
  3097. </member>
  3098. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)">
  3099. <summary>
  3100. An apply is just like a join, so it shares the common join processing
  3101. in <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitJoinExpression(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding},System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression)"/>
  3102. </summary>
  3103. <returns>
  3104. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  3105. </returns>
  3106. </member>
  3107. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression)">
  3108. <summary>
  3109. For binary expressions, we delegate to <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitBinaryExpression(System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)"/>.
  3110. We handle the other expressions directly.
  3111. </summary>
  3112. <returns>
  3113. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3114. </returns>
  3115. </member>
  3116. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression)">
  3117. <summary>
  3118. If the ELSE clause is null, we do not write it out.
  3119. </summary>
  3120. <returns>
  3121. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3122. </returns>
  3123. </member>
  3124. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression)">
  3125. <summary>
  3126. The parser generates Not(Equals(...)) for &lt;&gt;.
  3127. </summary>
  3128. <returns>
  3129. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> .
  3130. </returns>
  3131. </member>
  3132. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CheckIfForceNonUnicodeRequired(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3133. <summary>
  3134. Checks if the arguments of the input Comparison or Like expression are candidates
  3135. for compensation. If yes, sets global state variable - _forceNonUnicode.
  3136. </summary>
  3137. <param name="e"> DBComparisonExpression or DbLikeExpression </param>
  3138. </member>
  3139. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchPatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3140. <summary>
  3141. The grammar for the pattern that we are looking for is -
  3142. Pattern := Target OP Source | Source OP Target
  3143. OP := Like | In | Comparison
  3144. Source := Non-unicode DbPropertyExpression
  3145. Target := Target FUNC Target | DbConstantExpression | DBParameterExpression
  3146. FUNC := CONCAT | RTRIM | LTRIM | TRIM | SUBSTRING | TOLOWER | TOUPPER | REVERSE | REPLACE
  3147. </summary>
  3148. </member>
  3149. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchTargetPatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3150. <summary>
  3151. Matches the non-terminal symbol "target" in above grammar.
  3152. </summary>
  3153. </member>
  3154. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchSourcePatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3155. <summary>
  3156. Determines if the expression represents a non-unicode string column(char/varchar store type)
  3157. </summary>
  3158. </member>
  3159. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsConstParamOrNullExpressionUnicodeNotSpecified(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3160. <summary>
  3161. Determines if the expression represents a string constant or parameter with the facet, unicode=null.
  3162. </summary>
  3163. </member>
  3164. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)">
  3165. <summary>
  3166. Generate tsql for a constant. Avoid the explicit cast (if possible) when
  3167. the isCastOptional parameter is set
  3168. </summary>
  3169. <param name="e"> the constant expression </param>
  3170. <param name="isCastOptional"> can we avoid the CAST </param>
  3171. <returns> the tsql fragment </returns>
  3172. </member>
  3173. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertValidDouble(System.Double)">
  3174. <summary>
  3175. Helper method for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  3176. </summary>
  3177. <param name="value"> A double value </param>
  3178. <exception cref="T:System.NotSupportedException">
  3179. If a value of positive or negative infinity, or
  3180. <see cref="F:System.Double.NaN"/>
  3181. is specified
  3182. </exception>
  3183. </member>
  3184. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertValidSingle(System.Single)">
  3185. <summary>
  3186. Helper method for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  3187. </summary>
  3188. <param name="value"> A single value </param>
  3189. <exception cref="T:System.NotSupportedException">
  3190. If a value of positive or negative infinity, or
  3191. <see cref="F:System.Single.NaN"/>
  3192. is specified
  3193. </exception>
  3194. </member>
  3195. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.WrapWithCastIfNeeded(System.Boolean,System.String,System.String,System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  3196. <summary>
  3197. Helper function for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  3198. Appends the given constant value to the result either 'as is' or wrapped with a cast to the given type.
  3199. </summary>
  3200. </member>
  3201. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)">
  3202. <summary>
  3203. We do not pass constants as parameters.
  3204. </summary>
  3205. <returns>
  3206. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> . Strings are wrapped in single quotes and escaped. Numbers are written literally.
  3207. </returns>
  3208. </member>
  3209. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression)">
  3210. <summary>
  3211. The DISTINCT has to be added to the beginning of SqlSelectStatement.Select,
  3212. but it might be too late for that. So, we use a flag on SqlSelectStatement
  3213. instead, and add the "DISTINCT" in the second phase.
  3214. </summary>
  3215. <returns>
  3216. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3217. </returns>
  3218. </member>
  3219. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbElementExpression)">
  3220. <summary>
  3221. An element expression returns a scalar - so it is translated to
  3222. ( Select ... )
  3223. </summary>
  3224. </member>
  3225. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  3226. <summary>
  3227. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>
  3228. </summary>
  3229. </member>
  3230. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3231. <summary>
  3232. Only concrete expression types will be visited.
  3233. </summary>
  3234. </member>
  3235. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbScanExpression)">
  3236. <returns>
  3237. If we are in a Join context, returns a <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> with the extent name, otherwise, a new
  3238. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3239. with the From field set.
  3240. </returns>
  3241. </member>
  3242. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GetTargetTSql(System.Data.Entity.Core.Metadata.Edm.EntitySetBase)">
  3243. <summary>
  3244. Gets escaped TSql identifier describing this entity set.
  3245. </summary>
  3246. </member>
  3247. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)">
  3248. <summary>
  3249. The bodies of <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>, <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression)"/>,
  3250. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)"/>, <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSortExpression)"/> are similar.
  3251. Each does the following.
  3252. <list type="number">
  3253. <item>Visit the input expression</item>
  3254. <item>
  3255. Determine if the input's SQL statement can be reused, or a new
  3256. one must be created.
  3257. </item>
  3258. <item>Create a new symbol table scope</item>
  3259. <item>
  3260. Push the Sql statement onto a stack, so that children can
  3261. update the free variable list.
  3262. </item>
  3263. <item>Visit the non-input expression.</item>
  3264. <item>Cleanup</item>
  3265. </list>
  3266. </summary>
  3267. <returns>
  3268. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3269. </returns>
  3270. </member>
  3271. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  3272. <summary>
  3273. Lambda functions are not supported.
  3274. The functions supported are:
  3275. <list type="number">
  3276. <item>Canonical Functions - We recognize these by their dataspace, it is DataSpace.CSpace</item>
  3277. <item>Store Functions - We recognize these by the BuiltInAttribute and not being Canonical</item>
  3278. <item>User-defined Functions - All the rest</item>
  3279. </list>
  3280. We handle Canonical and Store functions the same way: If they are in the list of functions
  3281. that need special handling, we invoke the appropriate handler, otherwise we translate them to
  3282. FunctionName(arg1, arg2, ..., argn).
  3283. We translate user-defined functions to NamespaceName.FunctionName(arg1, arg2, ..., argn).
  3284. </summary>
  3285. <returns>
  3286. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3287. </returns>
  3288. </member>
  3289. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression)">
  3290. <summary>
  3291. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> for general details.
  3292. We modify both the GroupBy and the Select fields of the SqlSelectStatement.
  3293. GroupBy gets just the keys without aliases,
  3294. and Select gets the keys and the aggregates with aliases.
  3295. Sql Server does not support arbitrarily complex expressions inside aggregates,
  3296. and requires keys to have reference to the input scope,
  3297. so in some cases we create a nested query in which we alias the arguments to the aggregates.
  3298. The exact limitations of Sql Server are:
  3299. <list type="number">
  3300. <item>
  3301. If an expression being aggregated contains an outer reference, then that outer
  3302. reference must be the only column referenced in the expression (SQLBUDT #488741)
  3303. </item>
  3304. <item>
  3305. Sql Server cannot perform an aggregate function on an expression containing
  3306. an aggregate or a subquery. (SQLBUDT #504600)
  3307. </item>
  3308. <item>
  3309. Sql Server requries each GROUP BY expression (key) to contain at least one column
  3310. that is not an outer reference. (SQLBUDT #616523)
  3311. </item>
  3312. <item>
  3313. Aggregates on the right side of an APPLY cannot reference columns from the left side.
  3314. (SQLBUDT #617683)
  3315. </item>
  3316. </list>
  3317. The default translation, without inner query is:
  3318. SELECT
  3319. kexp1 AS key1, kexp2 AS key2,... kexpn AS keyn,
  3320. aggf1(aexpr1) AS agg1, .. aggfn(aexprn) AS aggn
  3321. FROM input AS a
  3322. GROUP BY kexp1, kexp2, .. kexpn
  3323. When we inject an innner query, the equivalent translation is:
  3324. SELECT
  3325. key1 AS key1, key2 AS key2, .. keyn AS keys,
  3326. aggf1(agg1) AS agg1, aggfn(aggn) AS aggn
  3327. FROM (
  3328. SELECT
  3329. kexp1 AS key1, kexp2 AS key2,... kexpn AS keyn,
  3330. aexpr1 AS agg1, .. aexprn AS aggn
  3331. FROM input AS a
  3332. ) as a
  3333. GROUP BY key1, key2, keyn
  3334. </summary>
  3335. <returns>
  3336. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3337. </returns>
  3338. </member>
  3339. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  3340. <summary>
  3341. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>
  3342. </summary>
  3343. </member>
  3344. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)">
  3345. <summary>
  3346. Not(IsEmpty) has to be handled specially, so we delegate to
  3347. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsEmptyExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression,System.Boolean)"/>.
  3348. </summary>
  3349. <returns>
  3350. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> . <code>[NOT] EXISTS( ... )</code>
  3351. </returns>
  3352. </member>
  3353. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)">
  3354. <summary>
  3355. Not(IsNull) is handled specially, so we delegate to
  3356. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsNullExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression,System.Boolean)"/>
  3357. </summary>
  3358. <returns>
  3359. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> <code>IS [NOT] NULL</code>
  3360. </returns>
  3361. </member>
  3362. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression)">
  3363. <summary>
  3364. No error is raised if the store cannot support this.
  3365. </summary>
  3366. <returns>
  3367. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3368. </returns>
  3369. </member>
  3370. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCrossJoinExpression)">
  3371. <summary>
  3372. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitJoinExpression(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding},System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression)"/>
  3373. </summary>
  3374. <returns>
  3375. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  3376. </returns>
  3377. </member>
  3378. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)">
  3379. <summary>
  3380. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitJoinExpression(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding},System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression)"/>
  3381. </summary>
  3382. <returns>
  3383. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  3384. </returns>
  3385. </member>
  3386. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression)">
  3387. <returns>
  3388. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3389. </returns>
  3390. </member>
  3391. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression)">
  3392. <summary>
  3393. Translates to TOP expression. For Sql8, limit can only be a constant expression
  3394. </summary>
  3395. <returns>
  3396. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3397. </returns>
  3398. </member>
  3399. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  3400. <summary>
  3401. DbNewInstanceExpression is allowed as a child of DbProjectExpression only.
  3402. If anyone else is the parent, we throw.
  3403. We also perform special casing for collections - where we could convert
  3404. them into Unions
  3405. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitNewInstanceExpression(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression,System.Boolean,System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.Symbol}@)"/> for the actual implementation.
  3406. </summary>
  3407. </member>
  3408. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNotExpression)">
  3409. <summary>
  3410. The Not expression may cause the translation of its child to change.
  3411. These children are
  3412. <list type="bullet">
  3413. <item>
  3414. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbNotExpression"/>
  3415. NOT(Not(x)) becomes x
  3416. </item>
  3417. <item>
  3418. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression"/>
  3419. NOT EXISTS becomes EXISTS
  3420. </item>
  3421. <item>
  3422. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression"/>
  3423. IS NULL becomes IS NOT NULL
  3424. </item>
  3425. <item>
  3426. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression"/>
  3427. = becomes &lt;&gt;
  3428. </item>
  3429. </list>
  3430. </summary>
  3431. <returns>
  3432. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3433. </returns>
  3434. </member>
  3435. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNullExpression)">
  3436. <returns>
  3437. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3438. </returns>
  3439. </member>
  3440. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression)">
  3441. <returns>
  3442. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3443. </returns>
  3444. </member>
  3445. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression)">
  3446. <summary>
  3447. Visit a DbOrExpression and consider the subexpressions
  3448. for whether to generate OR conditions or an IN clause.
  3449. </summary>
  3450. <param name="e"> DbOrExpression to be visited </param>
  3451. <returns>
  3452. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> fragment of SQL generated
  3453. </returns>
  3454. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)"/>
  3455. </member>
  3456. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbInExpression)">
  3457. <summary>
  3458. Visits a DbInExpression and generates the corresponding SQL fragment.
  3459. </summary>
  3460. <param name="e">
  3461. A <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbInExpression"/> that specifies the expression to be visited.
  3462. </param>
  3463. <returns>
  3464. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> that specifies the generated SQL fragment.
  3465. </returns>
  3466. </member>
  3467. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.TryTranslateIntoIn(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression,System.Data.Entity.SqlServer.SqlGen.ISqlFragment@)">
  3468. <summary>
  3469. Determine if a DbOrExpression can be optimized into one or more IN clauses
  3470. and generate an ISqlFragment if it is possible.
  3471. </summary>
  3472. <param name="e"> DbOrExpression to attempt translation upon </param>
  3473. <param name="sqlFragment"> Fragment of SQL generated </param>
  3474. <returns> True if an IN clause is possible and sqlFragment has been generated, false otherwise </returns>
  3475. </member>
  3476. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsKeyForIn(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3477. <summary>
  3478. Determines if a DbExpression is a valid key for the purposes of generating an In clause optimization.
  3479. </summary>
  3480. <param name="e"> DbExpression to consider </param>
  3481. <returns> True if the expression can be used as a key, false otherwise </returns>
  3482. </member>
  3483. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.TryAddExpressionForIn(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression,System.Collections.Generic.IDictionary{System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression}})">
  3484. <summary>
  3485. Looks at both sides of a DbBinaryExpression to consider if either side is a valid candidate to
  3486. be a key and if so adds it to the KeyToListMap as a key with the other side as the value.
  3487. </summary>
  3488. <param name="e"> DbBinaryExpression to consider </param>
  3489. <param name="values"> KeyToListMap to add the sides of the binary expression to </param>
  3490. <returns> True if the expression was added, false otherwise </returns>
  3491. </member>
  3492. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.HasBuiltMapForIn(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.IDictionary{System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression}})">
  3493. <summary>
  3494. Attempts to build a KeyToListMap containing valid references and the appropriate value equality
  3495. tests associated with each so that they can be optimized into IN clauses. Calls itself recursively
  3496. to consider additional OR branches.
  3497. </summary>
  3498. <param name="e"> DbExpression representing the branch to evaluate </param>
  3499. <param name="values"> KeyToListMap to which to add references and value equality tests encountered </param>
  3500. <returns> True if this branch contained just equality tests or further OR branches, false otherwise </returns>
  3501. </member>
  3502. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression)">
  3503. <summary>
  3504. This method handles the DBParameterReference expressions. If the parameter is in
  3505. a part of the tree, which matches our criteria for forcing to non-unicode, then
  3506. we add it to the list of candidate parameters. If the parameter occurs in a different
  3507. usage scenario, then disqualify it from being forced to non-unicode.
  3508. </summary>
  3509. <returns>
  3510. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3511. </returns>
  3512. </member>
  3513. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)">
  3514. <summary>
  3515. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> for the general ideas.
  3516. </summary>
  3517. <returns>
  3518. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3519. </returns>
  3520. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  3521. </member>
  3522. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)">
  3523. <summary>
  3524. This method handles record flattening, which works as follows.
  3525. consider an expression <c>Prop(y, Prop(x, Prop(d, Prop(c, Prop(b, Var(a)))))</c>
  3526. where a,b,c are joins, d is an extent and x and y are fields.
  3527. b has been flattened into a, and has its own SELECT statement.
  3528. c has been flattened into b.
  3529. d has been flattened into c.
  3530. We visit the instance, so we reach Var(a) first. This gives us a (join)symbol.
  3531. Symbol(a).b gives us a join symbol, with a SELECT statement i.e. Symbol(b).
  3532. From this point on , we need to remember Symbol(b) as the source alias,
  3533. and then try to find the column. So, we use a SymbolPair.
  3534. We have reached the end when the symbol no longer points to a join symbol.
  3535. </summary>
  3536. <returns>
  3537. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.JoinSymbol"/> if we have not reached the first Join node that has a SELECT statement. A
  3538. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SymbolPair"/>
  3539. if we have seen the JoinNode, and it has a SELECT statement. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> with {Input}.propertyName otherwise.
  3540. </returns>
  3541. </member>
  3542. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)">
  3543. <summary>
  3544. Any(input, x) => Exists(Filter(input,x))
  3545. All(input, x) => Not Exists(Filter(input, not(x))
  3546. </summary>
  3547. </member>
  3548. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  3549. <summary>
  3550. For Sql9 it translates to:
  3551. SELECT Y.x1, Y.x2, ..., Y.xn
  3552. FROM (
  3553. SELECT X.x1, X.x2, ..., X.xn, row_number() OVER (ORDER BY sk1, sk2, ...) AS [row_number]
  3554. FROM input as X
  3555. ) as Y
  3556. WHERE Y.[row_number] &gt; count
  3557. ORDER BY sk1, sk2, ...
  3558. </summary>
  3559. <returns>
  3560. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3561. </returns>
  3562. </member>
  3563. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSortExpression)">
  3564. <summary>
  3565. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  3566. </summary>
  3567. <returns>
  3568. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3569. </returns>
  3570. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  3571. </member>
  3572. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbTreatExpression)">
  3573. <returns>
  3574. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3575. </returns>
  3576. </member>
  3577. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)">
  3578. <summary>
  3579. This code is shared by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)"/>
  3580. and <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)"/>
  3581. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitSetOpExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)"/>
  3582. Since the left and right expression may not be Sql select statements,
  3583. we must wrap them up to look like SQL select statements.
  3584. </summary>
  3585. </member>
  3586. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)">
  3587. <summary>
  3588. This method determines whether an extent from an outer scope(free variable)
  3589. is used in the CurrentSelectStatement.
  3590. An extent in an outer scope, if its symbol is not in the FromExtents
  3591. of the CurrentSelectStatement.
  3592. </summary>
  3593. <returns>
  3594. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/> .
  3595. </returns>
  3596. </member>
  3597. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitAggregate(System.Data.Entity.Core.Common.CommandTrees.DbAggregate,System.Object)">
  3598. <summary>
  3599. Aggregates are not visited by the normal visitor walk.
  3600. </summary>
  3601. <param name="aggregate"> The aggregate go be translated </param>
  3602. <param name="aggregateArgument"> The translated aggregate argument </param>
  3603. </member>
  3604. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.ParenthesizeExpressionIfNeeded(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  3605. <summary>
  3606. Dump out an expression - optionally wrap it with parantheses if possible
  3607. </summary>
  3608. </member>
  3609. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitBinaryExpression(System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3610. <summary>
  3611. Handler for inline binary expressions.
  3612. Produces left op right.
  3613. For associative operations does flattening.
  3614. Puts parenthesis around the arguments if needed.
  3615. </summary>
  3616. </member>
  3617. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.FlattenAssociativeExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3618. <summary>
  3619. Creates a flat list of the associative arguments.
  3620. For example, for ((A1 + (A2 - A3)) + A4) it will create A1, (A2 - A3), A4
  3621. Only 'unfolds' the given arguments that are of the given expression kind.
  3622. </summary>
  3623. </member>
  3624. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.ExtractAssociativeArguments(System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.Collections.Generic.List{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3625. <summary>
  3626. Helper method for FlattenAssociativeExpression.
  3627. Creates a flat list of the associative arguments and appends to the given argument list.
  3628. For example, for ((A1 + (A2 - A3)) + A4) it will add A1, (A2 - A3), A4 to the list.
  3629. Only 'unfolds' the given expression if it is of the given expression kind.
  3630. </summary>
  3631. </member>
  3632. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitComparisonExpression(System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3633. <summary>
  3634. Private handler for comparison expressions - almost identical to VisitBinaryExpression.
  3635. We special case constants, so that we don't emit unnecessary casts
  3636. </summary>
  3637. <param name="op"> the comparison op </param>
  3638. <param name="left"> the left-side expression </param>
  3639. <param name="right"> the right-side expression </param>
  3640. </member>
  3641. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitInputExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Data.Entity.SqlServer.SqlGen.Symbol@)">
  3642. <summary>
  3643. This is called by the relational nodes. It does the following
  3644. <list>
  3645. <item>
  3646. If the input is not a SqlSelectStatement, it assumes that the input
  3647. is a collection expression, and creates a new SqlSelectStatement
  3648. </item>
  3649. </list>
  3650. </summary>
  3651. <returns>
  3652. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> and the main fromSymbol for this select statement.
  3653. </returns>
  3654. </member>
  3655. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsEmptyExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression,System.Boolean)">
  3656. <summary>
  3657. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)"/>
  3658. </summary>
  3659. <param name="e"> </param>
  3660. <param name="negate"> Was the parent a DbNotExpression? </param>
  3661. </member>
  3662. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitCollectionConstructor(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  3663. <summary>
  3664. Translate a NewInstance(Element(X)) expression into
  3665. "select top(1) * from X"
  3666. </summary>
  3667. </member>
  3668. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsNullExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression,System.Boolean)">
  3669. <summary>
  3670. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)"/>
  3671. </summary>
  3672. <param name="e"> </param>
  3673. <param name="negate"> Was the parent a DbNotExpression? </param>
  3674. </member>
  3675. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitJoinExpression(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding},System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3676. <summary>
  3677. This handles the processing of join expressions.
  3678. The extents on a left spine are flattened, while joins
  3679. not on the left spine give rise to new nested sub queries.
  3680. Joins work differently from the rest of the visiting, in that
  3681. the parent (i.e. the join node) creates the SqlSelectStatement
  3682. for the children to use.
  3683. The "parameter" IsInJoinContext indicates whether a child extent should
  3684. add its stuff to the existing SqlSelectStatement, or create a new SqlSelectStatement
  3685. By passing true, we ask the children to add themselves to the parent join,
  3686. by passing false, we ask the children to create new Select statements for
  3687. themselves.
  3688. This method is called from <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)"/> and
  3689. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)"/>.
  3690. </summary>
  3691. <returns>
  3692. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  3693. </returns>
  3694. </member>
  3695. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.ProcessJoinInputResult(System.Data.Entity.SqlServer.SqlGen.ISqlFragment,System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding,System.Int32)">
  3696. <summary>
  3697. This is called from <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitJoinExpression(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding},System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind,System.String,System.Data.Entity.Core.Common.CommandTrees.DbExpression)"/>.
  3698. This is responsible for maintaining the symbol table after visiting
  3699. a child of a join expression.
  3700. The child's sql statement may need to be completed.
  3701. The child's result could be one of
  3702. <list type="number">
  3703. <item>The same as the parent's - this is treated specially.</item>
  3704. <item>A sql select statement, which may need to be completed</item>
  3705. <item>An extent - just copy it to the from clause</item>
  3706. <item>
  3707. Anything else (from a collection-valued expression) -
  3708. unnest and copy it.
  3709. </item>
  3710. </list>
  3711. If the input was a Join, we need to create a new join symbol,
  3712. otherwise, we create a normal symbol.
  3713. We then call AddFromSymbol to add the AS clause, and update the symbol table.
  3714. If the child's result was the same as the parent's, we have to clean up
  3715. the list of symbols in the FromExtents list, since this contains symbols from
  3716. the children of both the parent and the child.
  3717. The happens when the child visited is a Join, and is the leftmost child of
  3718. the parent.
  3719. </summary>
  3720. </member>
  3721. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitNewInstanceExpression(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression,System.Boolean,System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.Symbol}@)">
  3722. <summary>
  3723. We assume that this is only called as a child of a Project.
  3724. This replaces <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)"/>, since
  3725. we do not allow DbNewInstanceExpression as a child of any node other than
  3726. DbProjectExpression.
  3727. We write out the translation of each of the columns in the record.
  3728. </summary>
  3729. <returns>
  3730. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  3731. </returns>
  3732. </member>
  3733. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitSetOpExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)">
  3734. <summary>
  3735. Handler for set operations
  3736. It generates left separator right.
  3737. Only for SQL 8.0 it may need to create a new select statement
  3738. above the set operation if the left child's output columns got renamed
  3739. </summary>
  3740. </member>
  3741. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.SqlServer.SqlGen.Symbol,System.Collections.Generic.List{System.Data.Entity.SqlServer.SqlGen.Symbol},System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.Symbol})">
  3742. <summary>
  3743. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  3744. Add the column names from the referenced extent/join to the
  3745. select statement.
  3746. If the symbol is a JoinSymbol, we recursively visit all the extents,
  3747. halting at real extents and JoinSymbols that have an associated SqlSelectStatement.
  3748. The column names for a real extent can be derived from its type.
  3749. The column names for a Join Select statement can be got from the
  3750. list of columns that was created when the Join's select statement
  3751. was created.
  3752. We do the following for each column.
  3753. <list type="number">
  3754. <item>Add the SQL string for each column to the SELECT clause</item>
  3755. <item>
  3756. Add the column to the list of columns - so that it can
  3757. become part of the "type" of a JoinSymbol
  3758. </item>
  3759. <item>
  3760. Check if the column name collides with a previous column added
  3761. to the same select statement. Flag both the columns for renaming if true.
  3762. </item>
  3763. <item>Add the column to a name lookup dictionary for collision detection.</item>
  3764. </list>
  3765. </summary>
  3766. <param name="selectStatement"> The select statement that started off as SELECT * </param>
  3767. <param name="symbol"> The symbol containing the type information for the columns to be added. </param>
  3768. <param name="columnList">
  3769. Columns that have been added to the Select statement. This is created in
  3770. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  3771. .
  3772. </param>
  3773. <param name="columnDictionary"> A dictionary of the columns above. </param>
  3774. </member>
  3775. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CreateOptionalColumn(System.Data.Entity.SqlServer.SqlGen.Symbol,System.Data.Entity.SqlServer.SqlGen.Symbol)">
  3776. <summary>
  3777. Creates an optional column and registers the corresponding symbol with
  3778. the optionalColumnUsageManager it has not already been registered.
  3779. </summary>
  3780. </member>
  3781. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddColumn(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.SqlServer.SqlGen.Symbol,System.Collections.Generic.List{System.Data.Entity.SqlServer.SqlGen.Symbol},System.Collections.Generic.Dictionary{System.String,System.Data.Entity.SqlServer.SqlGen.Symbol},System.String)">
  3782. <summary>
  3783. Helper method for AddColumns. Adds a column with the given column name
  3784. to the Select list of the given select statement.
  3785. </summary>
  3786. <param name="selectStatement"> The select statement to whose SELECT part the column should be added </param>
  3787. <param name="symbol"> The symbol from which the column to be added originated </param>
  3788. <param name="columnList">
  3789. Columns that have been added to the Select statement. This is created in
  3790. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  3791. .
  3792. </param>
  3793. <param name="columnDictionary"> A dictionary of the columns above. </param>
  3794. <param name="columnName"> The name of the column to be added. </param>
  3795. </member>
  3796. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)">
  3797. <summary>
  3798. Expands Select * to "select the_list_of_columns"
  3799. If the columns are taken from an extent, they are written as
  3800. {original_column_name AS Symbol(original_column)} to allow renaming.
  3801. If the columns are taken from a Join, they are written as just
  3802. {original_column_name}, since there cannot be a name collision.
  3803. We concatenate the columns from each of the inputs to the select statement.
  3804. Since the inputs may be joins that are flattened, we need to recurse.
  3805. The inputs are inferred from the symbols in FromExtents.
  3806. </summary>
  3807. </member>
  3808. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddFromSymbol(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.SqlServer.SqlGen.Symbol)">
  3809. <summary>
  3810. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddFromSymbol(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.SqlServer.SqlGen.Symbol,System.Boolean)"/>
  3811. </summary>
  3812. </member>
  3813. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddFromSymbol(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.SqlServer.SqlGen.Symbol,System.Boolean)">
  3814. <summary>
  3815. This method is called after the input to a relational node is visited.
  3816. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)"/> and <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.ProcessJoinInputResult(System.Data.Entity.SqlServer.SqlGen.ISqlFragment,System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding,System.Int32)"/>
  3817. There are 2 scenarios
  3818. <list type="number">
  3819. <item>
  3820. The fromSymbol is new i.e. the select statement has just been
  3821. created, or a join extent has been added.
  3822. </item>
  3823. <item>The fromSymbol is old i.e. we are reusing a select statement.</item>
  3824. </list>
  3825. If we are not reusing the select statement, we have to complete the
  3826. FROM clause with the alias
  3827. <code>-- if the input was an extent
  3828. FROM = [SchemaName].[TableName]
  3829. -- if the input was a Project
  3830. FROM = (SELECT ... FROM ... WHERE ...)</code>
  3831. These become
  3832. <code>-- if the input was an extent
  3833. FROM = [SchemaName].[TableName] AS alias
  3834. -- if the input was a Project
  3835. FROM = (SELECT ... FROM ... WHERE ...) AS alias</code>
  3836. and look like valid FROM clauses.
  3837. Finally, we have to add the alias to the global list of aliases used,
  3838. and also to the current symbol table.
  3839. </summary>
  3840. <param name="selectStatement"> </param>
  3841. <param name="inputVarName"> The alias to be used. </param>
  3842. <param name="fromSymbol"> </param>
  3843. <param name="addToSymbolTable"> </param>
  3844. </member>
  3845. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddSortKeys(System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbSortClause})">
  3846. <summary>
  3847. Translates a list of SortClauses.
  3848. Used in the translation of OrderBy
  3849. </summary>
  3850. <param name="orderByClause"> The SqlBuilder to which the sort keys should be appended </param>
  3851. <param name="sortKeys"> </param>
  3852. </member>
  3853. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CreateNewSelectStatement(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Data.Entity.SqlServer.SqlGen.Symbol@)">
  3854. <summary>
  3855. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CreateNewSelectStatement(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean,System.Data.Entity.SqlServer.SqlGen.Symbol@)"/>
  3856. </summary>
  3857. </member>
  3858. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CreateNewSelectStatement(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean,System.Data.Entity.SqlServer.SqlGen.Symbol@)">
  3859. <summary>
  3860. This is called after a relational node's input has been visited, and the
  3861. input's sql statement cannot be reused. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)"/>
  3862. When the input's sql statement cannot be reused, we create a new sql
  3863. statement, with the old one as the from clause of the new statement.
  3864. The old statement must be completed i.e. if it has an empty select list,
  3865. the list of columns must be projected out.
  3866. If the old statement being completed has a join symbol as its from extent,
  3867. the new statement must have a clone of the join symbol as its extent.
  3868. We cannot reuse the old symbol, but the new select statement must behave
  3869. as though it is working over the "join" record.
  3870. </summary>
  3871. <returns> A new select statement, with the old one as the from clause. </returns>
  3872. </member>
  3873. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.EscapeSingleQuote(System.String,System.Boolean)">
  3874. <summary>
  3875. Before we embed a string literal in a SQL string, we should
  3876. convert all ' to '', and enclose the whole string in single quotes.
  3877. </summary>
  3878. <returns> The escaped sql string. </returns>
  3879. </member>
  3880. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GetSqlPrimitiveType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3881. <summary>
  3882. Returns the sql primitive/native type name.
  3883. It will include size, precision or scale depending on type information present in the
  3884. type facets
  3885. </summary>
  3886. </member>
  3887. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.HandleCountExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3888. <summary>
  3889. Handles the expression represending DbLimitExpression.Limit and DbSkipExpression.Count.
  3890. If it is a constant expression, it simply does to string thus avoiding casting it to the specific value
  3891. (which would be done if <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)"/> is called)
  3892. </summary>
  3893. </member>
  3894. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsApplyExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3895. <summary>
  3896. This is used to determine if a particular expression is an Apply operation.
  3897. This is only the case when the DbExpressionKind is CrossApply or OuterApply.
  3898. </summary>
  3899. </member>
  3900. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsJoinExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3901. <summary>
  3902. This is used to determine if a particular expression is a Join operation.
  3903. This is true for DbCrossJoinExpression and DbJoinExpression, the
  3904. latter of which may have one of several different ExpressionKinds.
  3905. </summary>
  3906. </member>
  3907. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsComplexExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3908. <summary>
  3909. This is used to determine if a calling expression needs to place
  3910. round brackets around the translation of the expression e.
  3911. Constants, parameters and properties do not require brackets,
  3912. everything else does.
  3913. </summary>
  3914. <returns> true, if the expression needs brackets </returns>
  3915. </member>
  3916. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsCompatible(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind)">
  3917. <summary>
  3918. Determine if the owner expression can add its unique sql to the input's
  3919. SqlSelectStatement
  3920. </summary>
  3921. <param name="result"> The SqlSelectStatement of the input to the relational node. </param>
  3922. <param name="expressionKind"> The kind of the expression node(not the input's) </param>
  3923. </member>
  3924. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.QuoteIdentifier(System.String)">
  3925. <summary>
  3926. We use the normal box quotes for SQL server. We do not deal with ANSI quotes
  3927. i.e. double quotes.
  3928. </summary>
  3929. </member>
  3930. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3931. <summary>
  3932. Simply calls <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean,System.Boolean)"/>
  3933. with addDefaultColumns set to true and markAllDefaultColumnsAsUsed set to false.
  3934. </summary>
  3935. </member>
  3936. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean,System.Boolean)">
  3937. <summary>
  3938. This is called from <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GenerateSql(System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree,System.Collections.Generic.HashSet{System.String}@)"/>
  3939. and nodes which require a select statement as an argument e.g. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)"/>,
  3940. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>.
  3941. SqlGenerator needs its child to have a proper alias if the child is
  3942. just an extent or a join.
  3943. The normal relational nodes result in complete valid SQL statements.
  3944. For the rest, we need to treat them as there was a dummy
  3945. <code>-- originally {expression}
  3946. -- change that to
  3947. SELECT *
  3948. FROM {expression} as c</code>
  3949. DbLimitExpression needs to start the statement but not add the default columns
  3950. </summary>
  3951. </member>
  3952. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitFilterExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean)">
  3953. <summary>
  3954. This method is called by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> and
  3955. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)"/>
  3956. </summary>
  3957. <param name="input"> </param>
  3958. <param name="predicate"> </param>
  3959. <param name="negatePredicate">
  3960. This is passed from <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)"/> in the All(...) case.
  3961. </param>
  3962. </member>
  3963. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.WrapNonQueryExtent(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.SqlServer.SqlGen.ISqlFragment,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind)">
  3964. <summary>
  3965. If the sql fragment for an input expression is not a SqlSelect statement
  3966. or other acceptable form (e.g. an extent as a SqlBuilder), we need
  3967. to wrap it in a form acceptable in a FROM clause. These are
  3968. primarily the
  3969. <list type="bullet">
  3970. <item>The set operation expressions - union all, intersect, except</item>
  3971. <item>TVFs, which are conceptually similar to tables</item>
  3972. </list>
  3973. </summary>
  3974. </member>
  3975. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByAggregatesNeedInnerQuery(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbAggregate},System.String)">
  3976. <summary>
  3977. Helper method for the Group By visitor
  3978. Returns true if at least one of the aggregates in the given list
  3979. has an argument that is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/> and is not
  3980. a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>,
  3981. either potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>
  3982. This is really due to the following two limitations of Sql Server:
  3983. <list type="number">
  3984. <item>
  3985. If an expression being aggregated contains an outer reference, then that outer
  3986. reference must be the only column referenced in the expression (SQLBUDT #488741)
  3987. </item>
  3988. <item>
  3989. Sql Server cannot perform an aggregate function on an expression containing
  3990. an aggregate or a subquery. (SQLBUDT #504600)
  3991. </item>
  3992. </list>
  3993. Potentially, we could furhter optimize this.
  3994. </summary>
  3995. </member>
  3996. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByAggregateNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)">
  3997. <summary>
  3998. Returns true if the given expression is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/> or a
  3999. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>
  4000. referencing the given inputVarRefName, either
  4001. potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  4002. </summary>
  4003. </member>
  4004. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByKeysNeedInnerQuery(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.String)">
  4005. <summary>
  4006. Helper method for the Group By visitor
  4007. Returns true if at least one of the expressions in the given list
  4008. is not <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>
  4009. referencing the given inputVarRefName potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  4010. This is really due to the following limitation: Sql Server requires each GROUP BY expression
  4011. (key) to contain at least one column that is not an outer reference. (SQLBUDT #616523)
  4012. Potentially, we could further optimize this.
  4013. </summary>
  4014. </member>
  4015. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByKeyNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)">
  4016. <summary>
  4017. Returns true if the given expression is not <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over
  4018. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/> referencing the given inputVarRefName
  4019. potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  4020. This is really due to the following limitation: Sql Server requires each GROUP BY expression
  4021. (key) to contain at least one column that is not an outer reference. (SQLBUDT #616523)
  4022. Potentially, we could further optimize this.
  4023. </summary>
  4024. </member>
  4025. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByExpressionNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String,System.Boolean)">
  4026. <summary>
  4027. Helper method for processing Group By keys and aggregates.
  4028. Returns true if the given expression is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/>
  4029. (and allowConstants is specified)or a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over
  4030. a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/> referencing the given inputVarRefName,
  4031. either potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  4032. </summary>
  4033. </member>
  4034. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertKatmaiOrNewer(System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind)">
  4035. <summary>
  4036. Throws not supported exception if the server is pre-katmai
  4037. </summary>
  4038. </member>
  4039. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertKatmaiOrNewer(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  4040. <summary>
  4041. Throws not supported exception if the server is pre-katmai
  4042. </summary>
  4043. </member>
  4044. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CurrentSelectStatement">
  4045. <summary>
  4046. The top of the stack
  4047. </summary>
  4048. </member>
  4049. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsParentAJoin">
  4050. <summary>
  4051. Determine if the parent is a join.
  4052. </summary>
  4053. </member>
  4054. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.KeyFieldExpressionComparer">
  4055. <summary>
  4056. Required by the KeyToListMap to allow certain DbExpression subclasses to be used as a key
  4057. which is not normally possible given their lack of Equals and GetHashCode implementations
  4058. for testing object value equality.
  4059. </summary>
  4060. </member>
  4061. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.KeyFieldExpressionComparer.Equals(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  4062. <summary>
  4063. Compare two DbExpressions to see if they are equal for the purposes of
  4064. our key management. We only support DbPropertyExpression, DbParameterReferenceExpression,
  4065. VariableReferenceExpression and DbCastExpression types. Everything else will fail to
  4066. be considered equal.
  4067. </summary>
  4068. <param name="x"> First DbExpression to consider for equality </param>
  4069. <param name="y"> Second DbExpression to consider for equality </param>
  4070. <returns> True if the types are allowed and equal, false otherwise </returns>
  4071. </member>
  4072. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.KeyFieldExpressionComparer.GetHashCode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  4073. <summary>
  4074. Calculates a hashcode for a given number of DbExpression subclasses to allow the KeyToListMap
  4075. to efficiently and reliably locate existing keys.
  4076. </summary>
  4077. <param name="obj"> DbExpression to calculate a hashcode for </param>
  4078. <returns> Integer containing the hashcode </returns>
  4079. </member>
  4080. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder">
  4081. <summary>
  4082. This class is used for building the SELECT clause of a Sql Statement
  4083. It is used to gather information about required and optional columns
  4084. and whether TOP and DISTINCT should be specified.
  4085. The underlying SqlBuilder is used for gathering the required columns.
  4086. The list of OptionalColumns is used for gathering the optional columns.
  4087. Whether a given OptionalColumn should be written is known only after the entire
  4088. command tree has been processed.
  4089. The IsDistinct property indicates that we want distinct columns.
  4090. This is given out of band, since the input expression to the select clause
  4091. may already have some columns projected out, and we use append-only SqlBuilders.
  4092. The DISTINCT is inserted when we finally write the object into a string.
  4093. Also, we have a Top property, which is non-null if the number of results should
  4094. be limited to certain number. It is given out of band for the same reasons as DISTINCT.
  4095. </summary>
  4096. </member>
  4097. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  4098. <summary>
  4099. Writes the string representing the Select statement:
  4100. SELECT (DISTINCT) (TOP topClause) (optionalColumns) (requiredColumns)
  4101. If Distinct is specified or this is part of a top most statement
  4102. all optional columns are marked as used.
  4103. Optional columns are only written if marked as used.
  4104. In addition, if no required columns are specified and no optional columns are
  4105. marked as used, the first optional column is written.
  4106. </summary>
  4107. </member>
  4108. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.WriteOptionalColumns(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  4109. <summary>
  4110. Writes the optional columns that are used.
  4111. If this is the topmost statement or distict is specifed as part of the same statement
  4112. all optoinal columns are written.
  4113. </summary>
  4114. <returns> Whether at least one column got written </returns>
  4115. </member>
  4116. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.IsDistinct">
  4117. <summary>
  4118. Do we need to add a DISTINCT at the beginning of the SELECT
  4119. </summary>
  4120. </member>
  4121. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.IsEmpty">
  4122. <summary>
  4123. Whether any columns have been specified.
  4124. </summary>
  4125. </member>
  4126. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement">
  4127. <summary>
  4128. A SqlSelectStatement represents a canonical SQL SELECT statement.
  4129. It has fields for the 5 main clauses
  4130. <list type="number">
  4131. <item>SELECT</item>
  4132. <item>FROM</item>
  4133. <item>WHERE</item>
  4134. <item>GROUP BY</item>
  4135. <item>ORDER BY</item>
  4136. </list>
  4137. We do not have HAVING, since the CQT does not have such a node.
  4138. Each of the fields is a SqlBuilder, so we can keep appending SQL strings
  4139. or other fragments to build up the clause.
  4140. The FromExtents contains the list of inputs in use for the select statement.
  4141. There is usually just one element in this - Select statements for joins may
  4142. temporarily have more than one.
  4143. If the select statement is created by a Join node, we maintain a list of
  4144. all the extents that have been flattened in the join in AllJoinExtents
  4145. <example>
  4146. in J(j1= J(a,b), c)
  4147. FromExtents has 2 nodes JoinSymbol(name=j1, ...) and Symbol(name=c)
  4148. AllJoinExtents has 3 nodes Symbol(name=a), Symbol(name=b), Symbol(name=c)
  4149. </example>
  4150. If any expression in the non-FROM clause refers to an extent in a higher scope,
  4151. we add that extent to the OuterExtents list. This list denotes the list
  4152. of extent aliases that may collide with the aliases used in this select statement.
  4153. It is set by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/>.
  4154. An extent is an outer extent if it is not one of the FromExtents.
  4155. </summary>
  4156. </member>
  4157. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  4158. <summary>
  4159. Write out a SQL select statement as a string.
  4160. We have to
  4161. <list type="number">
  4162. <item>
  4163. Check whether the aliases extents we use in this statement have
  4164. to be renamed.
  4165. We first create a list of all the aliases used by the outer extents.
  4166. For each of the FromExtents( or AllJoinExtents if it is non-null),
  4167. rename it if it collides with the previous list.
  4168. </item>
  4169. <item>Write each of the clauses (if it exists) as a string</item>
  4170. </list>
  4171. </summary>
  4172. </member>
  4173. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.OutputColumnsRenamed">
  4174. <summary>
  4175. Whether the columns ouput by this sql statement were renamed from what given in the command tree.
  4176. </summary>
  4177. </member>
  4178. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.OutputColumns">
  4179. <summary>
  4180. A dictionary of output columns
  4181. </summary>
  4182. </member>
  4183. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlWriter">
  4184. <summary>
  4185. This extends IndentedTextWriter/StringWriter primarily to add the ability to add an indent
  4186. to each line that is written out.
  4187. </summary>
  4188. </member>
  4189. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolPair">
  4190. <summary>
  4191. The SymbolPair exists to solve the record flattening problem.
  4192. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  4193. Consider a property expression D(v, "j3.j2.j1.a.x")
  4194. where v is a VarRef, j1, j2, j3 are joins, a is an extent and x is a columns.
  4195. This has to be translated eventually into {j'}.{x'}
  4196. The source field represents the outermost SqlStatement representing a join
  4197. expression (say j2) - this is always a Join symbol.
  4198. The column field keeps moving from one join symbol to the next, until it
  4199. stops at a non-join symbol.
  4200. This is returned by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>,
  4201. but never makes it into a SqlBuilder.
  4202. </summary>
  4203. </member>
  4204. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolTable">
  4205. <summary>
  4206. The symbol table is quite primitive - it is a stack with a new entry for
  4207. each scope. Lookups search from the top of the stack to the bottom, until
  4208. an entry is found.
  4209. The symbols are of the following kinds
  4210. <list type="bullet">
  4211. <item>
  4212. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  4213. represents tables (extents/nested selects/unnests)
  4214. </item>
  4215. <item>
  4216. <see cref="T:System.Data.Entity.SqlServer.SqlGen.JoinSymbol"/>
  4217. represents Join nodes
  4218. </item>
  4219. <item>
  4220. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  4221. columns.
  4222. </item>
  4223. </list>
  4224. Symbols represent names <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/> to be resolved,
  4225. or things to be renamed.
  4226. </summary>
  4227. </member>
  4228. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolUsageManager">
  4229. <summary>
  4230. Tracks the usage of symbols.
  4231. When registering a symbol with the usage manager if an input symbol is specified,
  4232. than the usage of the two is 'connected' - if one ever gets marked as used,
  4233. the other one becomes 'used' too.
  4234. </summary>
  4235. </member>
  4236. <member name="T:System.Data.Entity.SqlServer.SqlGen.TopClause">
  4237. <summary>
  4238. TopClause represents the a TOP expression in a SqlSelectStatement.
  4239. It has a count property, which indicates how many TOP rows should be selected and a
  4240. boolen WithTies property.
  4241. </summary>
  4242. </member>
  4243. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.#ctor(System.Data.Entity.SqlServer.SqlGen.ISqlFragment,System.Boolean)">
  4244. <summary>
  4245. Creates a TopClause with the given topCount and withTies.
  4246. </summary>
  4247. </member>
  4248. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.#ctor(System.Int32,System.Boolean)">
  4249. <summary>
  4250. Creates a TopClause with the given topCount and withTies.
  4251. </summary>
  4252. </member>
  4253. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  4254. <summary>
  4255. Write out the TOP part of sql select statement
  4256. It basically writes TOP (X) [WITH TIES].
  4257. The brackets around X are ommited for Sql8.
  4258. </summary>
  4259. </member>
  4260. <member name="P:System.Data.Entity.SqlServer.SqlGen.TopClause.WithTies">
  4261. <summary>
  4262. Do we need to add a WITH_TIES to the top statement
  4263. </summary>
  4264. </member>
  4265. <member name="P:System.Data.Entity.SqlServer.SqlGen.TopClause.TopCount">
  4266. <summary>
  4267. How many top rows should be selected.
  4268. </summary>
  4269. </member>
  4270. <member name="T:System.Data.Entity.SqlServer.SqlProviderManifest">
  4271. <summary>
  4272. The Provider Manifest for SQL Server
  4273. </summary>
  4274. </member>
  4275. <member name="F:System.Data.Entity.SqlServer.SqlProviderManifest.varcharMaxSize">
  4276. <summary>
  4277. Maximum size of SQL Server unicode
  4278. </summary>
  4279. </member>
  4280. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.#ctor(System.String)">
  4281. <summary>
  4282. Initializes a new instance of the <see cref="T:System.Data.Entity.SqlServer.SqlProviderManifest"/> class.
  4283. </summary>
  4284. <param name="manifestToken"> A token used to infer the capabilities of the store. </param>
  4285. </member>
  4286. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.EscapeLikeText(System.String,System.Boolean,System.Boolean@)">
  4287. <summary>
  4288. Function to detect wildcard characters %, _, [ and ^ and escape them with a preceding ~
  4289. This escaping is used when StartsWith, EndsWith and Contains canonical and CLR functions
  4290. are translated to their equivalent LIKE expression
  4291. NOTE: This code has been copied from LinqToSql
  4292. </summary>
  4293. <param name="text"> Original input as specified by the user </param>
  4294. <param name="alwaysEscapeEscapeChar"> escape the escape character ~ regardless whether wildcard characters were encountered </param>
  4295. <param name="usedEscapeChar"> true if the escaping was performed, false if no escaping was required </param>
  4296. <returns> The escaped string that can be used as pattern in a LIKE expression </returns>
  4297. </member>
  4298. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetDbInformation(System.String)">
  4299. <summary>
  4300. Providers should override this to return information specific to their provider.
  4301. This method should never return null.
  4302. </summary>
  4303. <param name="informationType"> The name of the information to be retrieved. </param>
  4304. <returns> An XmlReader at the begining of the information requested. </returns>
  4305. </member>
  4306. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetEdmType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  4307. <summary>
  4308. This method takes a type and a set of facets and returns the best mapped equivalent type
  4309. in EDM.
  4310. </summary>
  4311. <param name="storeType"> A TypeUsage encapsulating a store type and a set of facets </param>
  4312. <returns> A TypeUsage encapsulating an EDM type and a set of facets </returns>
  4313. </member>
  4314. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetStoreType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  4315. <summary>
  4316. This method takes a type and a set of facets and returns the best mapped equivalent type
  4317. in SQL Server, taking the store version into consideration.
  4318. </summary>
  4319. <param name="edmType"> A TypeUsage encapsulating an EDM type and a set of facets </param>
  4320. <returns> A TypeUsage encapsulating a store type and a set of facets </returns>
  4321. </member>
  4322. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.SupportsEscapingLikeArgument(System.Char@)">
  4323. <summary>
  4324. Returns true, SqlClient supports escaping strings to be used as arguments to like
  4325. The escape character is '~'
  4326. </summary>
  4327. <param name="escapeCharacter"> The character '~' </param>
  4328. <returns> True </returns>
  4329. </member>
  4330. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.EscapeLikeArgument(System.String)">
  4331. <summary>
  4332. Escapes the wildcard characters and the escape character in the given argument.
  4333. </summary>
  4334. <returns> Equivalent to the argument, with the wildcard characters and the escape character escaped </returns>
  4335. </member>
  4336. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.SupportsInExpression">
  4337. <summary>
  4338. Returns a boolean that specifies whether the corresponding provider can handle expression trees
  4339. containing instances of DbInExpression.
  4340. The Sql provider handles instances of DbInExpression.
  4341. </summary>
  4342. <returns> <c>true</c>. </returns>
  4343. </member>
  4344. <member name="T:System.Data.Entity.SqlServer.SqlProviderServices">
  4345. <summary>
  4346. The DbProviderServices implementation for the SqlClient provider for SQL Server.
  4347. </summary>
  4348. <remarks>
  4349. Note that instance of this type also resolve additional provider services for Microsoft SQL Server
  4350. when this type is registered as an EF provider either using an entry in the application's config file
  4351. or through code-based registration in <see cref="T:System.Data.Entity.DbConfiguration"/>.
  4352. The services resolved are:
  4353. Requests for <see cref="T:System.Data.Entity.Infrastructure.IDbConnectionFactory"/> are resolved to a Singleton instance of
  4354. <see cref="T:System.Data.Entity.Infrastructure.SqlConnectionFactory"/> to create connections to SQL Express by default.
  4355. Requests for <see cref="T:System.Func`1"/> for the invariant name "System.Data.SqlClient"
  4356. for any server name are resolved to a delegate that returns a <see cref="T:System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy"/>
  4357. to provide a non-retrying policy for SQL Server.
  4358. Requests for <see cref="T:System.Data.Entity.Migrations.Sql.MigrationSqlGenerator"/> for the invariant name "System.Data.SqlClient" are
  4359. resolved to <see cref="T:System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator"/> instances to provide default Migrations SQL
  4360. generation for SQL Server.
  4361. Requests for <see cref="T:System.Data.Entity.Spatial.DbSpatialServices"/> for the invariant name "System.Data.SqlClient" are
  4362. resolved to a Singleton instance of <see cref="T:System.Data.Entity.SqlServer.SqlSpatialServices"/> to provide default spatial
  4363. services for SQL Server.
  4364. </remarks>
  4365. </member>
  4366. <member name="F:System.Data.Entity.SqlServer.SqlProviderServices.ProviderInvariantName">
  4367. <summary>
  4368. This is the well-known string using in configuration files and code-based configuration as
  4369. the "provider invariant name" used to specify Microsoft SQL Server for ADO.NET and
  4370. Entity Framework provider services.
  4371. </summary>
  4372. </member>
  4373. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.#ctor">
  4374. <summary>
  4375. Private constructor to ensure only Singleton instance is created.
  4376. </summary>
  4377. </member>
  4378. <member name="F:System.Data.Entity.SqlServer.SqlProviderServices._providerInstance">
  4379. <summary>
  4380. Singleton object
  4381. </summary>
  4382. </member>
  4383. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.RegisterInfoMessageHandler(System.Data.Common.DbConnection,System.Action{System.String})">
  4384. <summary>
  4385. Registers a handler to process non-error messages coming from the database provider.
  4386. </summary>
  4387. <param name="connection"> The connection to receive information for. </param>
  4388. <param name="handler"> The handler to process messages. </param>
  4389. </member>
  4390. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.CreateDbCommandDefinition(System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Common.CommandTrees.DbCommandTree)">
  4391. <summary>
  4392. Create a Command Definition object, given the connection and command tree
  4393. </summary>
  4394. <param name="providerManifest"> provider manifest that was determined from metadata </param>
  4395. <param name="commandTree"> command tree for the statement </param>
  4396. <returns> an executable command definition object </returns>
  4397. </member>
  4398. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.CreateCommand(System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Common.CommandTrees.DbCommandTree)">
  4399. <summary>
  4400. Create a SqlCommand object, given the provider manifest and command tree
  4401. </summary>
  4402. <param name="providerManifest"> provider manifest </param>
  4403. <param name="commandTree"> command tree for the statement </param>
  4404. <returns> a command object </returns>
  4405. </member>
  4406. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.SetDbParameterValue(System.Data.Common.DbParameter,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Object)">
  4407. <summary>
  4408. Sets the parameter value and appropriate facets for the given <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage"/>.
  4409. </summary>
  4410. <param name="parameter">The parameter.</param>
  4411. <param name="parameterType">The type of the parameter.</param>
  4412. <param name="value">The value of the parameter.</param>
  4413. </member>
  4414. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetDbProviderManifestToken(System.Data.Common.DbConnection)">
  4415. <summary>
  4416. Returns provider manifest token for a given connection.
  4417. </summary>
  4418. <param name="connection"> Connection to find manifest token from. </param>
  4419. <returns> The provider manifest token for the specified connection. </returns>
  4420. </member>
  4421. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetDbProviderManifest(System.String)">
  4422. <summary>
  4423. Returns the provider manifest by using the specified version information.
  4424. </summary>
  4425. <param name="versionHint"> The token information associated with the provider manifest. </param>
  4426. <returns> The provider manifest by using the specified version information. </returns>
  4427. </member>
  4428. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetDbSpatialDataReader(System.Data.Common.DbDataReader,System.String)">
  4429. <summary>
  4430. Gets a spatial data reader for SQL Server.
  4431. </summary>
  4432. <param name="fromReader"> The reader where the spatial data came from. </param>
  4433. <param name="versionHint"> The manifest token associated with the provider manifest. </param>
  4434. <returns> The spatial data reader. </returns>
  4435. </member>
  4436. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbGetSpatialServices(System.String)">
  4437. <summary>
  4438. Gets a spatial data reader for SQL Server.
  4439. </summary>
  4440. <param name="versionHint"> The manifest token associated with the provider manifest. </param>
  4441. <returns> The spatial data reader. </returns>
  4442. </member>
  4443. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.CreateSqlParameter(System.String,System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Data.Entity.Core.Metadata.Edm.ParameterMode,System.Object,System.Boolean,System.Data.Entity.SqlServer.SqlVersion)">
  4444. <summary>
  4445. Creates a SqlParameter given a name, type, and direction
  4446. </summary>
  4447. </member>
  4448. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.EnsureSqlParameterValue(System.Object)">
  4449. <summary>
  4450. Validates that the specified value is compatible with SqlParameter and if not, attempts to return an appropriate value that is.
  4451. Currently only spatial values (DbGeography/DbGeometry) may not be directly usable with SqlParameter. For these types, an instance
  4452. of the corresponding SQL Server CLR spatial UDT will be manufactured based on the spatial data contained in
  4453. <paramref name="value" />.
  4454. If <paramref name="value" /> is an instance of DbGeography/DbGeometry that was read from SQL Server by this provider, then the wrapped
  4455. CLR UDT value is available via the ProviderValue property (see SqlSpatialServices for the full conversion process from instances of
  4456. DbGeography/DbGeometry to instances of the CLR SqlGeography/SqlGeometry UDTs)
  4457. </summary>
  4458. </member>
  4459. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetSqlDbType(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean,System.Data.Entity.SqlServer.SqlVersion,System.Nullable{System.Int32}@,System.Nullable{System.Byte}@,System.Nullable{System.Byte}@,System.String@)">
  4460. <summary>
  4461. Determines SqlDbType for the given primitive type. Extracts facet
  4462. information as well.
  4463. </summary>
  4464. </member>
  4465. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetParameterSize(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean)">
  4466. <summary>
  4467. Determines preferred value for SqlParameter.Size. Returns null
  4468. where there is no preference.
  4469. </summary>
  4470. </member>
  4471. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetKatmaiDateTimePrecision(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean)">
  4472. <summary>
  4473. Returns SqlParameter.Precision where the type facet exists. Otherwise,
  4474. returns null or the maximum available precision to avoid truncation (which can occur
  4475. for output parameters).
  4476. </summary>
  4477. </member>
  4478. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetParameterPrecision(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Nullable{System.Byte})">
  4479. <summary>
  4480. Returns SqlParameter.Precision where the type facet exists. Otherwise,
  4481. returns null.
  4482. </summary>
  4483. </member>
  4484. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetScale(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  4485. <summary>
  4486. Returns SqlParameter.Scale where the type facet exists. Otherwise,
  4487. returns null.
  4488. </summary>
  4489. </member>
  4490. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetStringDbType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  4491. <summary>
  4492. Chooses the appropriate SqlDbType for the given string type.
  4493. </summary>
  4494. </member>
  4495. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetBinaryDbType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  4496. <summary>
  4497. Chooses the appropriate SqlDbType for the given binary type.
  4498. </summary>
  4499. </member>
  4500. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabaseScript(System.String,System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  4501. <summary>
  4502. Generates a data definition language (DDL) script that creates schema objects
  4503. (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection
  4504. parameter and targeted for the version of the database corresponding to the provider manifest token.
  4505. </summary>
  4506. <param name="providerManifestToken"> The provider manifest token identifying the target version. </param>
  4507. <param name="storeItemCollection"> The structure of the database. </param>
  4508. <returns>
  4509. A DDL script that creates schema objects based on the contents of the StoreItemCollection parameter
  4510. and targeted for the version of the database corresponding to the provider manifest token.
  4511. </returns>
  4512. </member>
  4513. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  4514. <summary>
  4515. Create the database and the database objects.
  4516. If initial catalog is not specified, but AttachDBFilename is specified, we generate a random database name based on the AttachDBFilename.
  4517. Note: this causes pollution of the db, as when the connection string is later used, the mdf will get attached under a different name.
  4518. However if we try to replicate the name under which it would be attached, the following scenario would fail:
  4519. The file does not exist, but registered with database.
  4520. The user calls: If (DatabaseExists) DeleteDatabase
  4521. CreateDatabase
  4522. For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
  4523. </summary>
  4524. </member>
  4525. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetLdfFileName(System.String)">
  4526. <summary>
  4527. Get the Ldf name given the Mdf full name
  4528. </summary>
  4529. </member>
  4530. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GenerateDatabaseName(System.String)">
  4531. <summary>
  4532. Generates database name based on the given mdfFileName.
  4533. The logic is replicated from System.Web.DataAccess.SqlConnectionHelper
  4534. </summary>
  4535. </member>
  4536. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetMdfFileName(System.String)">
  4537. <summary>
  4538. Get the full mdf file name given the attachDBFile value from the connection string
  4539. </summary>
  4540. </member>
  4541. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbDatabaseExists(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  4542. <summary>
  4543. Determines whether the database for the given connection exists.
  4544. There are three cases:
  4545. 1. Initial Catalog = X, AttachDBFilename = null: (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
  4546. 2. Initial Catalog = X, AttachDBFilename = F: if (SELECT Count(*) FROM sys.databases WHERE [name]= X) > true,
  4547. if not, try to open the connection and then return (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
  4548. 3. Initial Catalog = null, AttachDBFilename = F: Try to open the connection. If that succeeds the result is true, otherwise
  4549. if the there are no databases corresponding to the given file return false, otherwise throw.
  4550. Note: We open the connection to cover the scenario when the mdf exists, but is not attached.
  4551. Given that opening the connection would auto-attach it, it would not be appropriate to return false in this case.
  4552. Also note that checking for the existence of the file does not work for a remote server. (Dev11 #290487)
  4553. For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
  4554. </summary>
  4555. </member>
  4556. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbDeleteDatabase(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  4557. <summary>
  4558. Delete the database for the given connection.
  4559. There are three cases:
  4560. 1. If Initial Catalog is specified (X) drop database X
  4561. 2. Else if AttachDBFilename is specified (F) drop all the databases corresponding to F
  4562. if none throw
  4563. 3. If niether the catalog not the file name is specified - throw
  4564. Note that directly deleting the files does not work for a remote server. However, even for not attached
  4565. databases the current logic would work assuming the user does: if (DatabaseExists) DeleteDatabase
  4566. </summary>
  4567. <param name="connection"> Connection </param>
  4568. <param name="commandTimeout"> Timeout for internal commands. </param>
  4569. <param name="storeItemCollection"> Item Collection. </param>
  4570. </member>
  4571. <member name="P:System.Data.Entity.SqlServer.SqlProviderServices.Instance">
  4572. <summary>
  4573. The Singleton instance of the SqlProviderServices type.
  4574. </summary>
  4575. </member>
  4576. <member name="P:System.Data.Entity.SqlServer.SqlProviderServices.TruncateDecimalsToScale">
  4577. <summary>
  4578. Set this flag to false to prevent <see cref="T:System.Decimal"/> values from being truncated to
  4579. the scale (number of decimal places) defined for the column. The default value is true,
  4580. indicating that decimal values will be truncated, in order to prevent breaking existing
  4581. applications that depend on this behavior.
  4582. </summary>
  4583. <remarks>
  4584. With this flag set to true <see cref="T:System.Data.SqlClient.SqlParameter"/> objects are created with their Scale
  4585. properties set. When this flag is set to false then the Scale properties are not set, meaning
  4586. that the truncation behavior of SqlParameter is avoided.
  4587. </remarks>
  4588. </member>
  4589. <member name="M:System.Data.Entity.SqlServer.SqlProviderUtilities.GetRequiredSqlConnection(System.Data.Common.DbConnection)">
  4590. <summary>
  4591. Requires that the given connection is of type T.
  4592. Returns the connection or throws.
  4593. </summary>
  4594. </member>
  4595. <member name="T:System.Data.Entity.SqlServer.SqlSpatialDataReader">
  4596. <summary>
  4597. SqlClient specific implementation of <see cref="T:System.Data.Entity.Spatial.DbSpatialDataReader"/>
  4598. </summary>
  4599. </member>
  4600. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeography(System.Int32)">
  4601. <inheritdoc/>
  4602. </member>
  4603. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeometry(System.Int32)">
  4604. <inheritdoc/>
  4605. </member>
  4606. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.IsGeographyColumn(System.Int32)">
  4607. <inheritdoc/>
  4608. </member>
  4609. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.IsGeometryColumn(System.Int32)">
  4610. <inheritdoc/>
  4611. </member>
  4612. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.CreateBinaryReadDelegate(System.Type)">
  4613. <summary>
  4614. Builds and compiles the Expression equivalent of the following:
  4615. (BinaryReader r) => { var result = new SpatialType(); result.Read(r); return r; }
  4616. The construct/read pattern is preferred over casting the result of calling GetValue on the DataReader,
  4617. because constructing the value directly allows client code to specify the type, rather than SqlClient using
  4618. the server-specified assembly qualified type name from TDS to try to locate the correct type on the client.
  4619. </summary>
  4620. </member>
  4621. <member name="P:System.Data.Entity.SqlServer.SqlSpatialServices.NativeTypesAvailable">
  4622. <inheritdoc />
  4623. </member>
  4624. <member name="T:System.Data.Entity.SqlServer.SqlTypesAssembly">
  4625. <summary>
  4626. SqlTypesAssembly allows for late binding to the capabilities of a specific version of the Microsoft.SqlServer.Types assembly
  4627. </summary>
  4628. </member>
  4629. <member name="M:System.Data.Entity.SqlServer.SqlTypesAssembly.#ctor">
  4630. <summary>
  4631. For testing.
  4632. </summary>
  4633. </member>
  4634. <member name="T:System.Data.Entity.SqlServer.SqlVersion">
  4635. <summary>
  4636. This enumeration describes the current SQL Server version.
  4637. </summary>
  4638. </member>
  4639. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql8">
  4640. <summary>
  4641. SQL Server 8 (2000).
  4642. </summary>
  4643. </member>
  4644. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql9">
  4645. <summary>
  4646. SQL Server 9 (2005).
  4647. </summary>
  4648. </member>
  4649. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql10">
  4650. <summary>
  4651. SQL Server 10 (2008).
  4652. </summary>
  4653. </member>
  4654. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql11">
  4655. <summary>
  4656. SQL Server 11 (2012).
  4657. </summary>
  4658. </member>
  4659. </members>
  4660. </doc>