EntityFramework.SqlServer.xml 243 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833
  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 execution strategy 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. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_GeographyValueNotSqlCompatible">
  154. <summary>
  155. A string like "The specified DbGeography value could not be converted to a SQL Server compatible value."
  156. </summary>
  157. </member>
  158. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_GeometryValueNotSqlCompatible">
  159. <summary>
  160. A string like "The specified DbGeometry value could not be converted to a SQL Server compatible value."
  161. </summary>
  162. </member>
  163. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.UnableToDetermineStoreVersion">
  164. <summary>
  165. A string like "Could not determine storage version; a valid storage connection or a version hint is required."
  166. </summary>
  167. </member>
  168. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_Sql2008RequiredForSpatial">
  169. <summary>
  170. A string like "Spatial types and functions are only supported by SQL Server 2008 or later."
  171. </summary>
  172. </member>
  173. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_SqlTypesAssemblyNotFound">
  174. <summary>
  175. 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. "
  176. </summary>
  177. </member>
  178. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_IncompleteCreateDatabase">
  179. <summary>
  180. 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."
  181. </summary>
  182. </member>
  183. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_IncompleteCreateDatabaseAggregate">
  184. <summary>
  185. A string like "See InnerExceptions for details."
  186. </summary>
  187. </member>
  188. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_MissingInitialCatalog">
  189. <summary>
  190. A string like "Unable to complete operation. The supplied SqlConnection does not specify an initial catalog or AttachDBFileName."
  191. </summary>
  192. </member>
  193. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_CannotDeleteDatabaseNoInitialCatalog">
  194. <summary>
  195. A string like "Unable to delete the database. There is no database that corresponds to the given AttachDBFileName."
  196. </summary>
  197. </member>
  198. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_DdlGeneration_CannotTellIfDatabaseExists">
  199. <summary>
  200. 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."
  201. </summary>
  202. </member>
  203. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlProvider_CredentialsMissingForMasterConnection">
  204. <summary>
  205. 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."
  206. </summary>
  207. </member>
  208. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ApplyNotSupportedOnSql8">
  209. <summary>
  210. 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."
  211. </summary>
  212. </member>
  213. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_NiladicFunctionsCannotHaveParameters">
  214. <summary>
  215. A string like "Functions listed in the provider manifest that are attributed as NiladicFunction='true' cannot have parameter declarations."
  216. </summary>
  217. </member>
  218. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ParameterForLimitNotSupportedOnSql8">
  219. <summary>
  220. 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."
  221. </summary>
  222. </member>
  223. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlGen_ParameterForSkipNotSupportedOnSql8">
  224. <summary>
  225. 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."
  226. </summary>
  227. </member>
  228. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.Spatial_WellKnownGeographyValueNotValid">
  229. <summary>
  230. A string like "The specified DbWellKnownGeographyValue does not contain either Well-Known Text or Well-Known Binary."
  231. </summary>
  232. </member>
  233. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.Spatial_WellKnownGeometryValueNotValid">
  234. <summary>
  235. A string like "The specified DbWellKnownGeometryValue does not contain either Well-Known Text or Well-Known Binary."
  236. </summary>
  237. </member>
  238. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoSrid">
  239. <summary>
  240. A string like "A Spatial Reference System Identifier (SRID) value could not be retrieved from the specified DbGeography value."
  241. </summary>
  242. </member>
  243. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoWkbOrWkt">
  244. <summary>
  245. A string like "The specified DbGeography value did not provide either Well-Known Binary or Well-Known Text."
  246. </summary>
  247. </member>
  248. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoSrid">
  249. <summary>
  250. A string like "A Spatial Reference System Identifier (SRID) value could not be retrieved from the specified DbGeometry value."
  251. </summary>
  252. </member>
  253. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoWkbOrWkt">
  254. <summary>
  255. A string like "The specified DbGeometry value did not provide either Well-Known Binary or Well-Known Text."
  256. </summary>
  257. </member>
  258. <member name="P:System.Data.Entity.SqlServer.Resources.Strings.TransientExceptionDetected">
  259. <summary>
  260. 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 the SQL Azure executionStrategy, see SqlAzureDbConfiguration."
  261. </summary>
  262. </member>
  263. <member name="T:System.Data.Entity.SqlServer.Resources.Error">
  264. <summary>
  265. Strongly-typed and parameterized exception factory.
  266. </summary>
  267. </member>
  268. <member name="M:System.Data.Entity.SqlServer.Resources.Error.ArgumentOutOfRange(System.String)">
  269. <summary>
  270. The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
  271. </summary>
  272. </member>
  273. <member name="M:System.Data.Entity.SqlServer.Resources.Error.NotImplemented">
  274. <summary>
  275. 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.
  276. </summary>
  277. </member>
  278. <member name="M:System.Data.Entity.SqlServer.Resources.Error.NotSupported">
  279. <summary>
  280. The exception that is thrown when an invoked method is not supported, or when there is an attempt to
  281. read, seek, or write to a stream that does not support the invoked functionality.
  282. </summary>
  283. </member>
  284. <member name="T:System.Data.Entity.SqlServer.Resources.EntityRes">
  285. <summary>
  286. AutoGenerated resource class. Usage:
  287. string s = EntityRes.GetString(EntityRes.MyIdenfitier);
  288. </summary>
  289. </member>
  290. <member name="T:System.Data.Entity.SqlServer.SqlAzureDbConfiguration">
  291. <summary>
  292. A class derived from this class can be placed in the same assembly as a class derived from
  293. <see cref="T:System.Data.Entity.DbContext"/> to enable the SQL Azure retry policy for it.
  294. </summary>
  295. </member>
  296. <member name="M:System.Data.Entity.SqlServer.SqlAzureDbConfiguration.#ctor">
  297. <summary>
  298. Initializes a new instance of <see cref="T:System.Data.Entity.SqlServer.SqlAzureDbConfiguration"/> and sets
  299. <see cref="T:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy"/> as the default execution strategy.
  300. </summary>
  301. </member>
  302. <member name="M:System.Data.Entity.SqlServer.SqlAzureDbConfiguration.AddExecutionStrategy(System.Func{System.Data.Entity.Infrastructure.IExecutionStrategy},System.String)">
  303. <summary>
  304. Adds an <see cref="T:System.Data.Entity.Infrastructure.IExecutionStrategy"/> factory method for a particular server name.
  305. The order in which the factories are added is important. The last one takes precedence.
  306. </summary>
  307. <param name="getExecutionStrategy">A function that returns a new instance of an execution strategy.</param>
  308. <param name="serverName">A string that will be matched against the server name in the connection string. <c>null</c> will match anything.</param>
  309. </member>
  310. <member name="T:System.Data.Entity.SqlServer.SqlAzureExecutionStrategy">
  311. <summary>
  312. An <see cref="T:System.Data.Entity.Infrastructure.ExecutionStrategy"/> that uses the <see cref="T:System.Data.Entity.Infrastructure.ExponentialRetryDelayStrategy"/> and
  313. <see cref="T:System.Data.Entity.SqlServer.SqlAzureRetriableExceptionDetector"/>.
  314. </summary>
  315. </member>
  316. <member name="T:System.Data.Entity.SqlServer.SqlAzureRetriableExceptionDetector">
  317. <summary>
  318. A <see cref="T:System.Data.Entity.Infrastructure.IRetriableExceptionDetector"/> that detects the exceptions caused by SQL Azure transient failures.
  319. </summary>
  320. </member>
  321. <member name="M:System.Data.Entity.SqlServer.SqlAzureRetriableExceptionDetector.ShouldRetryOn(System.Exception)">
  322. <inheritdoc/>
  323. </member>
  324. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendSql(System.String)">
  325. <summary>
  326. Appends raw SQL into the string builder.
  327. </summary>
  328. <param name="text"> Raw SQL string to append into the string builder. </param>
  329. </member>
  330. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendNewLine">
  331. <summary>
  332. Appends new line for visual formatting or for ending a comment.
  333. </summary>
  334. </member>
  335. <member name="M:System.Data.Entity.SqlServer.SqlDdlBuilder.AppendSqlInvariantFormat(System.String,System.Object[])">
  336. <summary>
  337. Append raw SQL into the string builder with formatting options and invariant culture formatting.
  338. </summary>
  339. <param name="format"> A composite format string. </param>
  340. <param name="args"> An array of objects to format. </param>
  341. </member>
  342. <member name="M:System.Data.Entity.SqlServer.SqlExecutionStrategyResolver.#ctor(System.Func{System.Data.Entity.Infrastructure.IExecutionStrategy},System.String)">
  343. <summary>
  344. Initializes a new instance of <see cref="T:System.Data.Entity.SqlServer.SqlExecutionStrategyResolver"/>
  345. </summary>
  346. <param name="getExecutionStrategy">A function that returns a new instance of an execution strategy.</param>
  347. <param name="serverName">A string that will be matched against the server name in the connection string. <c>null</c> will match anything.</param>
  348. </member>
  349. <member name="T:System.Data.Entity.SqlServer.SqlGen.BoolWrapper">
  350. <summary>
  351. Used for wrapping a boolean value as an object.
  352. </summary>
  353. </member>
  354. <member name="T:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator">
  355. <summary>
  356. Class generating SQL for a DML command tree.
  357. </summary>
  358. </member>
  359. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.UseGeneratedValuesVariable(System.Data.Entity.Core.Common.CommandTrees.DbInsertCommandTree,System.Data.Entity.SqlServer.SqlVersion)">
  360. <summary>
  361. Determine whether we should use a generated values variable to return server generated values.
  362. This is true when we're attempting to insert a row where the primary key is server generated
  363. but is not an integer type (and therefore can't be used with scope_identity()). It is also true
  364. where there is a compound server generated key.
  365. </summary>
  366. </member>
  367. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.GenerateReturningSql(System.Text.StringBuilder,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)">
  368. <summary>
  369. Generates SQL fragment returning server-generated values.
  370. Requires: translator knows about member values so that we can figure out
  371. how to construct the key predicate.
  372. <code>Sample SQL:
  373. select IdentityValue
  374. from dbo.MyTable
  375. where @@ROWCOUNT > 0 and IdentityValue = scope_identity()
  376. or
  377. select TimestampValue
  378. from dbo.MyTable
  379. where @@ROWCOUNT > 0 and Id = 1
  380. Note that we filter on rowcount to ensure no rows are returned if no rows were modified.
  381. On SQL Server 2005 and up, we have an additional syntax used for non integer return types:
  382. declare @generatedValues table(ID uniqueidentifier)
  383. insert dbo.MyTable
  384. output ID into @generated_values
  385. values (...);
  386. select ID
  387. from @generatedValues as g join dbo.MyTable as t on g.ID = t.ID
  388. where @@ROWCOUNT > 0;</code>
  389. </summary>
  390. <param name="commandText"> Builder containing command text </param>
  391. <param name="tree"> Modification command tree </param>
  392. <param name="tableType"> Type of table. </param>
  393. <param name="translator"> Translator used to produce DML SQL statement for the tree </param>
  394. <param name="returning"> Returning expression. If null, the method returns immediately without producing a SELECT statement. </param>
  395. </member>
  396. <member name="T:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator">
  397. <summary>
  398. Lightweight expression translator for DML expression trees, which have constrained
  399. scope and support.
  400. </summary>
  401. </member>
  402. <member name="M:System.Data.Entity.SqlServer.SqlGen.DmlSqlGenerator.ExpressionTranslator.#ctor(System.Text.StringBuilder,System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree,System.Boolean,System.Data.Entity.SqlServer.SqlVersion)">
  403. <summary>
  404. Initialize a new expression translator populating the given string builder
  405. with command text. Command text builder and command tree must not be null.
  406. </summary>
  407. <param name="commandText"> Command text with which to populate commands </param>
  408. <param name="commandTree"> Command tree generating SQL </param>
  409. <param name="preserveMemberValues"> Indicates whether the translator should preserve member values while compiling t-SQL (only needed for server generation) </param>
  410. </member>
  411. <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)">
  412. <summary>
  413. Call this method to register a property value pair so the translator "remembers"
  414. the values for members of the row being modified. These values can then be used
  415. to form a predicate for server-generation (based on the key of the row)
  416. </summary>
  417. <param name="propertyExpression"> DbExpression containing the column reference (property expression). </param>
  418. <param name="value"> DbExpression containing the value of the column. </param>
  419. </member>
  420. <member name="T:System.Data.Entity.SqlServer.SqlSpatialServicesForConversions">
  421. <summary>
  422. Used to create an instance of <see cref="T:System.Data.Entity.SqlServer.SqlSpatialServices"/> for a specific SQL Types assembly
  423. such that it can be used for converting EF spatial types backed by one version to those backed by
  424. the version actually in use in this app domain.
  425. </summary>
  426. </member>
  427. <member name="M:System.Data.Entity.SqlServer.SqlSpatialServices.#ctor(System.Data.Entity.SqlServer.SqlTypesAssemblyLoader)">
  428. <summary>
  429. For testing.
  430. </summary>
  431. </member>
  432. <member name="P:System.Data.Entity.SqlServer.SqlSpatialServices.NativeTypesAvailable">
  433. <inheritdoc />
  434. </member>
  435. <member name="M:System.Data.Entity.SqlServer.SqlTypesAssemblyLoader.TryGetSqlTypesAssembly">
  436. <summary>
  437. Returns the highest available version of the Microsoft.SqlServer.Types assembly that could be
  438. located using Assembly.Load; may return <c>null</c> if no version of the assembly could be found.
  439. </summary>
  440. </member>
  441. <member name="T:System.Data.Entity.SqlServer.SqlVersionUtils">
  442. <summary>
  443. This class is a simple utility class that determines the SQL Server version from the
  444. connection.
  445. </summary>
  446. </member>
  447. <member name="M:System.Data.Entity.SqlServer.SqlVersionUtils.GetSqlVersion(System.Data.Common.DbConnection)">
  448. <summary>
  449. Get the SqlVersion from the connection. Returns one of Sql8, Sql9, Sql10, Sql11
  450. The passed connection must be open
  451. </summary>
  452. <param name="connection"> current sql connection </param>
  453. <returns> Sql Version for the current connection </returns>
  454. </member>
  455. <member name="T:System.Data.Entity.SqlServer.Utilities.SqlDataReaderWrapper">
  456. <summary>
  457. This is a wrapper for <see cref="T:System.Data.SqlClient.SqlDataReader"/> that allows a mock implementation to be used.
  458. </summary>
  459. </member>
  460. <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}})">
  461. <summary>
  462. Uses a stack to non-recursively traverse a given tree structure and retrieve the leaf nodes.
  463. </summary>
  464. <param name="root"> The node that represents the root of the tree. </param>
  465. <param name="kind"> Expressions not of this kind are considered leaves. </param>
  466. <param name="getChildNodes">
  467. A function that traverses the tree by retrieving the <b>immediate</b> descendants of a (non-leaf) node.
  468. </param>
  469. <returns> An enumerable containing the leaf nodes. </returns>
  470. </member>
  471. <member name="T:System.Data.Entity.SqlServer.SqlGen.ISqlFragment">
  472. <summary>
  473. Represents the sql fragment for any node in the query tree.
  474. </summary>
  475. <remarks>
  476. The nodes in a query tree produce various kinds of sql
  477. <list type="bullet">
  478. <item>A select statement.</item>
  479. <item>A reference to an extent. (symbol)</item>
  480. <item>A raw string.</item>
  481. </list>
  482. We have this interface to allow for a common return type for the methods
  483. in the expression visitor <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor`1"/>
  484. Add the endd of translation, the sql fragments are converted into real strings.
  485. </remarks>
  486. </member>
  487. <member name="M:System.Data.Entity.SqlServer.SqlGen.ISqlFragment.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  488. <summary>
  489. Write the string represented by this fragment into the stream.
  490. </summary>
  491. <param name="writer"> The stream that collects the strings. </param>
  492. <param name="sqlGenerator"> Context information used for renaming. The global lists are used to generated new names without collisions. </param>
  493. </member>
  494. <member name="T:System.Data.Entity.SqlServer.SqlGen.JoinSymbol">
  495. <summary>
  496. A Join symbol is a special kind of Symbol.
  497. It has to carry additional information
  498. <list type="bullet">
  499. <item>
  500. ColumnList for the list of columns in the select clause if this
  501. symbol represents a sql select statement. This is set by
  502. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  503. .
  504. </item>
  505. <item>ExtentList is the list of extents in the select clause.</item>
  506. <item>
  507. FlattenedExtentList - if the Join has multiple extents flattened at the
  508. top level, we need this information to ensure that extent aliases are renamed
  509. correctly in
  510. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)"/>
  511. </item>
  512. <item>
  513. NameToExtent has all the extents in ExtentList as a dictionary.
  514. This is used by
  515. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  516. to flatten
  517. record accesses.
  518. </item>
  519. <item>
  520. IsNestedJoin - is used to determine whether a JoinSymbol is an
  521. ordinary join symbol, or one that has a corresponding SqlSelectStatement.
  522. </item>
  523. </list>
  524. All the lists are set exactly once, and then used for lookups/enumerated.
  525. </summary>
  526. </member>
  527. <member name="T:System.Data.Entity.SqlServer.SqlGen.Symbol">
  528. <summary>
  529. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SymbolTable"/>
  530. This class represents an extent/nested select statement,
  531. or a column.
  532. The important fields are Name, Type and NewName.
  533. NewName starts off the same as Name, and is then modified as necessary.
  534. The rest are used by special symbols.
  535. e.g. NeedsRenaming is used by columns to indicate that a new name must
  536. be picked for the column in the second phase of translation.
  537. IsUnnest is used by symbols for a collection expression used as a from clause.
  538. 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
  539. after the alias.
  540. </summary>
  541. </member>
  542. <member name="F:System.Data.Entity.SqlServer.SqlGen.Symbol.columns">
  543. <summary>
  544. Used to track the columns originating from this Symbol when it is used
  545. in as a from extent in a SqlSelectStatement with a Join or as a From Extent
  546. in a Join Symbol.
  547. </summary>
  548. </member>
  549. <member name="F:System.Data.Entity.SqlServer.SqlGen.Symbol.outputColumns">
  550. <summary>
  551. Used to track the output columns of a SqlSelectStatement it represents
  552. </summary>
  553. </member>
  554. <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)">
  555. <summary>
  556. Use this constructor if the symbol represents a SqlStatement for which the output columns need to be tracked.
  557. </summary>
  558. <param name="name"> </param>
  559. <param name="type"> </param>
  560. <param name="outputColumns"> </param>
  561. <param name="outputColumnsRenamed"> </param>
  562. </member>
  563. <member name="M:System.Data.Entity.SqlServer.SqlGen.Symbol.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  564. <summary>
  565. Write this symbol out as a string for sql. This is just
  566. the new name of the symbol (which could be the same as the old name).
  567. We rename columns here if necessary.
  568. </summary>
  569. <param name="writer"> </param>
  570. <param name="sqlGenerator"> </param>
  571. </member>
  572. <member name="T:System.Data.Entity.SqlServer.SqlGen.OptionalColumn">
  573. <summary>
  574. Represents a column in a select list that should be printed only if it is later used.
  575. Such columns get added by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>.
  576. The SymbolUsageManager associated with the OptionalColumn has the information whether the column
  577. has been used based on its symbol.
  578. </summary>
  579. </member>
  580. <member name="M:System.Data.Entity.SqlServer.SqlGen.OptionalColumn.Append(System.Object)">
  581. <summary>
  582. Append to the "fragment" representing this column
  583. </summary>
  584. </member>
  585. <member name="M:System.Data.Entity.SqlServer.SqlGen.OptionalColumn.WriteSqlIfUsed(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.String)">
  586. <summary>
  587. Writes that fragment that represents the optional column
  588. if the usage manager says it is used.
  589. </summary>
  590. <param name="writer"> </param>
  591. <param name="sqlGenerator"> </param>
  592. </member>
  593. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker">
  594. <summary>
  595. The Sql8ConformanceChecker walks a DbExpression tree and determines whether
  596. it should be rewritten in order to be translated to SQL appropriate for SQL Server 2000.
  597. The tree should be rewritten if it contains any of the following expressions:
  598. <list type="bullet">
  599. <item>
  600. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/>
  601. </item>
  602. <item>
  603. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>
  604. </item>
  605. <item>
  606. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  607. </item>
  608. </list>
  609. Also, it throws if it determines that the tree can not
  610. be translated into SQL appropriate for SQL Server 2000.
  611. This happens if:
  612. <list type="bullet">
  613. <item>
  614. The tree contains
  615. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression"/>
  616. </item>
  617. <item>
  618. The tree contains
  619. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression"/>
  620. with property Limit of type
  621. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression"/>
  622. </item>
  623. <item>
  624. The tree contains
  625. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  626. with property Count of type
  627. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression"/>
  628. </item>
  629. </list>
  630. The visitor only checks for expressions for which the support differs between SQL Server 2000 and SQL Server 2005,
  631. but does not check/throw for expressions that are not supported for both providers.
  632. Implementation note: In the cases when the visitor encounters an expression that requires rewrite,
  633. it still needs to walk its structure in case something below it is not supported and needs to throw.
  634. </summary>
  635. </member>
  636. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.NeedsRewrite(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  637. <summary>
  638. The entry point
  639. </summary>
  640. <param name="expr"> </param>
  641. <returns> True if the tree needs to be rewriten, false otherwise </returns>
  642. </member>
  643. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.#ctor">
  644. <summary>
  645. Default Constructor
  646. </summary>
  647. </member>
  648. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)">
  649. <summary>
  650. Default handling for DbUnaryExpression-derived classes. Simply visits its argument
  651. </summary>
  652. <param name="expr"> The DbUnaryExpression to visit </param>
  653. <returns> </returns>
  654. </member>
  655. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)">
  656. <summary>
  657. Default handling for DbBinaryExpression-derived classes. Visits both arguments.
  658. </summary>
  659. <param name="expr"> The DbBinaryExpression to visit </param>
  660. <returns> </returns>
  661. </member>
  662. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitAggregate(System.Data.Entity.Core.Common.CommandTrees.DbAggregate)">
  663. <summary>
  664. Walks the structure
  665. </summary>
  666. <param name="aggregate"> </param>
  667. <returns> </returns>
  668. </member>
  669. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionBinding(System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding)">
  670. <summary>
  671. DbExpressionBinding handler
  672. </summary>
  673. <param name="expressionBinding"> </param>
  674. <returns> </returns>
  675. </member>
  676. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  677. <summary>
  678. Used as handler for expressions
  679. </summary>
  680. <param name="expression"> </param>
  681. <returns> </returns>
  682. </member>
  683. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitSortClause(System.Data.Entity.Core.Common.CommandTrees.DbSortClause)">
  684. <summary>
  685. Used as handler for SortClauses
  686. </summary>
  687. <param name="sortClause"> </param>
  688. <returns> </returns>
  689. </member>
  690. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitList``1(System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.ListElementHandler{``0},System.Collections.Generic.IList{``0})">
  691. <summary>
  692. Helper method for iterating a list
  693. </summary>
  694. <typeparam name="TElementType"> </typeparam>
  695. <param name="handler"> </param>
  696. <param name="list"> </param>
  697. <returns> </returns>
  698. </member>
  699. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitAggregateList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbAggregate})">
  700. <summary>
  701. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding"/>s.
  702. </summary>
  703. <param name="list"> </param>
  704. <returns> </returns>
  705. </member>
  706. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionBindingList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding})">
  707. <summary>
  708. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding"/>s.
  709. </summary>
  710. <param name="list"> </param>
  711. <returns> </returns>
  712. </member>
  713. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitExpressionList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression})">
  714. <summary>
  715. Handing for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpression"/>s.
  716. </summary>
  717. <param name="list"> </param>
  718. <returns> </returns>
  719. </member>
  720. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitSortClauseList(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbSortClause})">
  721. <summary>
  722. Handling for list of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSortClause"/>s.
  723. </summary>
  724. <param name="list"> </param>
  725. <returns> </returns>
  726. </member>
  727. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  728. <summary>
  729. Called when an <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpression"/> of an otherwise unrecognized type is encountered.
  730. </summary>
  731. <param name="expression"> The expression </param>
  732. <returns> </returns>
  733. <exception cref="T:System.NotSupportedException">
  734. Always thrown if this method is called, since it indicates that
  735. <paramref name="expression"/>
  736. is of an unsupported type
  737. </exception>
  738. </member>
  739. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)">
  740. <summary>
  741. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  742. </summary>
  743. <param name="expression"> The DbAndExpression that is being visited. </param>
  744. <returns> </returns>
  745. </member>
  746. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)">
  747. <summary>
  748. Not supported on SQL Server 2000.
  749. </summary>
  750. <param name="expression"> The DbApplyExpression that is being visited. </param>
  751. <exception cref="T:System.NotSupportedException">Always</exception>
  752. </member>
  753. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression)">
  754. <summary>
  755. Default handling for DbArithmeticExpression. Visits all arguments.
  756. </summary>
  757. <param name="expression"> The DbArithmeticExpression that is being visited. </param>
  758. <returns> </returns>
  759. </member>
  760. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression)">
  761. <summary>
  762. Walks the strucutre
  763. </summary>
  764. <param name="expression"> The DbCaseExpression that is being visited. </param>
  765. <returns> </returns>
  766. </member>
  767. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCastExpression)">
  768. <summary>
  769. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  770. </summary>
  771. <param name="expression"> The DbCastExpression that is being visited. </param>
  772. <returns> </returns>
  773. </member>
  774. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression)">
  775. <summary>
  776. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  777. </summary>
  778. <param name="expression"> The DbComparisonExpression that is being visited. </param>
  779. <returns> </returns>
  780. </member>
  781. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)">
  782. <summary>
  783. Returns false
  784. </summary>
  785. <param name="expression"> The DbConstantExpression that is being visited. </param>
  786. <returns> </returns>
  787. </member>
  788. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCrossJoinExpression)">
  789. <summary>
  790. Walks the structure
  791. </summary>
  792. <param name="expression"> The DbCrossJoinExpression that is being visited. </param>
  793. <returns> </returns>
  794. </member>
  795. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDerefExpression)">
  796. <summary>
  797. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  798. </summary>
  799. <param name="expression"> The DeRefExpression that is being visited. </param>
  800. <returns> </returns>
  801. </member>
  802. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression)">
  803. <summary>
  804. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  805. </summary>
  806. <param name="expression"> The DbDistinctExpression that is being visited. </param>
  807. <returns> </returns>
  808. </member>
  809. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbElementExpression)">
  810. <summary>
  811. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  812. </summary>
  813. <param name="expression"> The DbElementExpression that is being visited. </param>
  814. <returns> </returns>
  815. </member>
  816. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression)">
  817. <summary>
  818. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  819. </summary>
  820. <param name="expression"> The DbEntityRefExpression that is being visited. </param>
  821. <returns> </returns>
  822. </member>
  823. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  824. <summary>
  825. Returns true, the tree needs to be rewritten.
  826. </summary>
  827. <param name="expression"> The DbExceptExpression that is being visited. </param>
  828. <returns> </returns>
  829. </member>
  830. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)">
  831. <summary>
  832. Walks the structure
  833. </summary>
  834. <param name="expression"> The DbFilterExpression that is being visited. </param>
  835. <returns> </returns>
  836. </member>
  837. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  838. <summary>
  839. Visits the arguments
  840. </summary>
  841. <param name="expression"> The DbFunctionExpression that is being visited. </param>
  842. <returns> </returns>
  843. </member>
  844. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression)">
  845. <summary>
  846. Visits the arguments and lambda body
  847. </summary>
  848. <param name="expression"> The DbLambdaExpression that is being visited. </param>
  849. <returns> </returns>
  850. </member>
  851. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression)">
  852. <summary>
  853. Walks the structure
  854. </summary>
  855. <param name="expression"> The DbExpression that is being visited. </param>
  856. <returns> </returns>
  857. </member>
  858. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  859. <summary>
  860. Returns true.
  861. </summary>
  862. <param name="expression"> The DbIntersectExpression that is being visited. </param>
  863. <returns> </returns>
  864. </member>
  865. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)">
  866. <summary>
  867. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  868. </summary>
  869. <param name="expression"> The DbIsEmptyExpression that is being visited. </param>
  870. <returns> </returns>
  871. </member>
  872. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)">
  873. <summary>
  874. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  875. </summary>
  876. <param name="expression"> The DbIsNullExpression that is being visited. </param>
  877. <returns> </returns>
  878. </member>
  879. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression)">
  880. <summary>
  881. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  882. </summary>
  883. <param name="expression"> The DbIsOfExpression that is being visited. </param>
  884. <returns> </returns>
  885. </member>
  886. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)">
  887. <summary>
  888. Walks the structure
  889. </summary>
  890. <param name="expression"> The DbJoinExpression that is being visited. </param>
  891. <returns> </returns>
  892. </member>
  893. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression)">
  894. <summary>
  895. Walks the structure
  896. </summary>
  897. <param name="expression"> The DbLikeExpression that is being visited. </param>
  898. <returns> </returns>
  899. </member>
  900. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression)">
  901. <summary>
  902. Walks the structure
  903. </summary>
  904. <param name="expression"> </param>
  905. <returns> </returns>
  906. <exception cref="T:System.NotSupportedException">expression.Limit is DbParameterReferenceExpression</exception>
  907. </member>
  908. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  909. <summary>
  910. Walks the arguments
  911. </summary>
  912. <param name="expression"> The DbNewInstanceExpression that is being visited. </param>
  913. <returns> </returns>
  914. </member>
  915. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNotExpression)">
  916. <summary>
  917. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  918. </summary>
  919. <param name="expression"> The DbNotExpression that is being visited. </param>
  920. <returns> </returns>
  921. </member>
  922. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNullExpression)">
  923. <summary>
  924. Returns false
  925. </summary>
  926. <param name="expression"> The DbNullExpression that is being visited. </param>
  927. <returns> false </returns>
  928. </member>
  929. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression)">
  930. <summary>
  931. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  932. </summary>
  933. <param name="expression"> The DbOfTypeExpression that is being visited. </param>
  934. <returns> </returns>
  935. </member>
  936. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression)">
  937. <summary>
  938. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  939. </summary>
  940. <param name="expression"> The DbOrExpression that is being visited. </param>
  941. <returns> </returns>
  942. </member>
  943. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbInExpression)">
  944. <summary>
  945. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbInExpression"/>
  946. </summary>
  947. <param name="expression"> The DbInExpression that is being visited. </param>
  948. <returns> </returns>
  949. </member>
  950. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression)">
  951. <summary>
  952. Returns false
  953. </summary>
  954. <param name="expression"> The DbParameterReferenceExpression that is being visited. </param>
  955. <returns> </returns>
  956. </member>
  957. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)">
  958. <summary>
  959. Walks the structure
  960. </summary>
  961. <param name="expression"> The DbProjectExpression that is being visited. </param>
  962. <returns> </returns>
  963. </member>
  964. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)">
  965. <summary>
  966. Returns false
  967. </summary>
  968. <param name="expression"> The DbPropertyExpression that is being visited. </param>
  969. <returns> </returns>
  970. </member>
  971. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)">
  972. <summary>
  973. Walks the structure
  974. </summary>
  975. <param name="expression"> The DbQuantifierExpression that is being visited. </param>
  976. <returns> </returns>
  977. </member>
  978. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefExpression)">
  979. <summary>
  980. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  981. </summary>
  982. <param name="expression"> The DbRefExpression that is being visited. </param>
  983. <returns> </returns>
  984. </member>
  985. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefKeyExpression)">
  986. <summary>
  987. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  988. </summary>
  989. <param name="expression"> The DbRefKeyExpression that is being visited. </param>
  990. <returns> </returns>
  991. </member>
  992. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRelationshipNavigationExpression)">
  993. <summary>
  994. Walks the structure
  995. </summary>
  996. <param name="expression"> The DbRelationshipNavigationExpression that is being visited. </param>
  997. <returns> </returns>
  998. </member>
  999. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbScanExpression)">
  1000. <summary>
  1001. Returns false;
  1002. </summary>
  1003. <param name="expression"> The DbScanExpression that is being visited. </param>
  1004. <returns> </returns>
  1005. </member>
  1006. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  1007. <summary>
  1008. Resturns true
  1009. </summary>
  1010. <param name="expression"> </param>
  1011. <returns> </returns>
  1012. <exception cref="T:System.NotSupportedException">expression.Count is DbParameterReferenceExpression</exception>
  1013. </member>
  1014. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSortExpression)">
  1015. <summary>
  1016. Walks the structure
  1017. </summary>
  1018. <param name="expression"> The DbSortExpression that is being visited. </param>
  1019. <returns> </returns>
  1020. </member>
  1021. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbTreatExpression)">
  1022. <summary>
  1023. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitUnaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbUnaryExpression)"/>
  1024. </summary>
  1025. <param name="expression"> The DbTreatExpression that is being visited. </param>
  1026. <returns> </returns>
  1027. </member>
  1028. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)">
  1029. <summary>
  1030. <see cref="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.VisitBinaryExpression(System.Data.Entity.Core.Common.CommandTrees.DbBinaryExpression)"/>
  1031. </summary>
  1032. <param name="expression"> The DbUnionAllExpression that is being visited. </param>
  1033. <returns> </returns>
  1034. </member>
  1035. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)">
  1036. <summary>
  1037. Returns false
  1038. </summary>
  1039. <param name="expression"> The DbVariableReferenceExpression that is being visited. </param>
  1040. <returns> false </returns>
  1041. </member>
  1042. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ConformanceChecker.ListElementHandler`1">
  1043. <summary>
  1044. 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})"/>
  1045. </summary>
  1046. <typeparam name="TElementType"> </typeparam>
  1047. <param name="element"> </param>
  1048. <returns> </returns>
  1049. </member>
  1050. <member name="T:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter">
  1051. <summary>
  1052. Rewrites an expression tree to make it suitable for translation to SQL appropriate for SQL Server 2000
  1053. In particular, it replaces expressions that are not directly supported on SQL Server 2000
  1054. with alternative translations. The following expressions are translated:
  1055. <list type="bullet">
  1056. <item>
  1057. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/>
  1058. </item>
  1059. <item>
  1060. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>
  1061. </item>
  1062. <item>
  1063. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  1064. </item>
  1065. </list>
  1066. The other expressions are copied unmodified.
  1067. The new expression belongs to a new query command tree.
  1068. </summary>
  1069. </member>
  1070. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Rewrite(System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree)">
  1071. <summary>
  1072. The only entry point.
  1073. Rewrites the given tree by replacing expressions that are not directly supported on SQL Server 2000
  1074. with alterntive translations.
  1075. </summary>
  1076. <param name="originalTree"> The tree to rewrite </param>
  1077. <returns> The new tree </returns>
  1078. </member>
  1079. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.#ctor(System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace)">
  1080. <summary>
  1081. Private Constructor.
  1082. </summary>
  1083. <param name="metadata"> </param>
  1084. </member>
  1085. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  1086. <summary>
  1087. <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)"/>
  1088. </summary>
  1089. <param name="e"> </param>
  1090. <returns> </returns>
  1091. </member>
  1092. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  1093. <summary>
  1094. <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)"/>
  1095. </summary>
  1096. <param name="e"> </param>
  1097. <returns> </returns>
  1098. </member>
  1099. <member name="M:System.Data.Entity.SqlServer.SqlGen.Sql8ExpressionRewriter.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  1100. <summary>
  1101. <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)"/>
  1102. Logicaly, <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/> translates to:
  1103. SELECT Y.x1, Y.x2, ..., Y.xn
  1104. FROM (
  1105. SELECT X.x1, X.x2, ..., X.xn,
  1106. FROM input AS X
  1107. EXCEPT
  1108. SELECT TOP(count) Z.x1, Z.x2, ..., Z.xn
  1109. FROM input AS Z
  1110. ORDER BY sk1, sk2, ...
  1111. ) AS Y
  1112. ORDER BY sk1, sk2, ...
  1113. 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
  1114. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>
  1115. .
  1116. The implementation of EXCEPT is non-duplicate eliminating, and does equality comparison only over the
  1117. equality comparable columns of the input.
  1118. This corresponds to the following expression tree:
  1119. SORT
  1120. |
  1121. NON-DISTINCT EXCEPT (specially translated,
  1122. |
  1123. | - Left: clone of input
  1124. | - Right:
  1125. |
  1126. Limit
  1127. |
  1128. | - Limit: Count
  1129. | - Input
  1130. |
  1131. Sort
  1132. |
  1133. input
  1134. </summary>
  1135. <param name="e"> </param>
  1136. <returns> </returns>
  1137. </member>
  1138. <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)">
  1139. <summary>
  1140. 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.
  1141. <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)"/>
  1142. </summary>
  1143. <param name="left"> </param>
  1144. <param name="right"> </param>
  1145. <param name="expressionKind"> </param>
  1146. <returns> </returns>
  1147. </member>
  1148. <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)">
  1149. <summary>
  1150. 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"/>,
  1151. and for translating the "Except" part of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>.
  1152. into the follwoing expression:
  1153. A INTERSECT B, A EXCEPT B
  1154. (DISTINCT)
  1155. |
  1156. FILTER
  1157. |
  1158. | - Input: A
  1159. | - Predicate:(NOT)
  1160. |
  1161. ANY
  1162. |
  1163. | - Input: B
  1164. | - Predicate: (B.b1 = A.a1 or (B.b1 is null and A.a1 is null))
  1165. AND (B.b2 = A.a2 or (B.b2 is null and A.a2 is null))
  1166. AND ...
  1167. AND (B.bn = A.an or (B.bn is null and A.an is null)))
  1168. Here, A corresponds to right and B to left.
  1169. (NOT) is present when transforming Except
  1170. 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"/>.
  1171. (DISTINCT) is present when transforming for the purpose of translating
  1172. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression"/> or <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression"/>.
  1173. For <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression"/>, the input to ANY is caped with project which projects out only
  1174. the columns represented in the sortExpressionsOverLeft list and only these are used in the predicate.
  1175. This is because we want to support skip over input with non-equal comarable columns and we have no way to recognize these.
  1176. </summary>
  1177. <param name="left"> </param>
  1178. <param name="right"> </param>
  1179. <param name="expressionKind"> </param>
  1180. <param name="sortExpressionsOverLeft"> note that this list gets destroyed by this method </param>
  1181. <param name="sortExpressionsBindingVariableName"> </param>
  1182. <returns> </returns>
  1183. </member>
  1184. <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})">
  1185. <summary>
  1186. Adds the flattened properties on the input to the flattenedProperties list.
  1187. </summary>
  1188. <param name="input"> </param>
  1189. <param name="flattenedProperties"> </param>
  1190. </member>
  1191. <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)">
  1192. <summary>
  1193. Helper method for
  1194. <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)"/>
  1195. Removes all pairs of property expressions from list1 and list2, for which the property expression in list1
  1196. does not have a 'matching' property expression in list2.
  1197. The lists list1 and list2 are known to not create duplicate, and the purpose of the sortList is just for this method.
  1198. Thus, to optimize the match process, we remove the seen property expressions from the sort list in
  1199. <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)"/>
  1200. when iterating both list simultaneously.
  1201. </summary>
  1202. <param name="list1"> </param>
  1203. <param name="list2"> </param>
  1204. <param name="sortList"> </param>
  1205. <param name="list1BindingVariableName"> </param>
  1206. <param name="sortExpressionsBindingVariableName"> </param>
  1207. <returns> </returns>
  1208. </member>
  1209. <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)">
  1210. <summary>
  1211. 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)"/>
  1212. Checks whether expr has a 'match' in the given list of property expressions.
  1213. If it does, the matching expression is removed form the list, to speed up future matching.
  1214. </summary>
  1215. <param name="expr"> </param>
  1216. <param name="sortList"> </param>
  1217. <param name="exprBindingVariableName"> </param>
  1218. <param name="sortExpressionsBindingVariableName"> </param>
  1219. <returns> </returns>
  1220. </member>
  1221. <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)">
  1222. <summary>
  1223. Determines whether two expressions match.
  1224. They match if they are of the shape
  1225. expr1 -> DbPropertyExpression(... (DbPropertyExpression(DbVariableReferenceExpression(expr1BindingVariableName), nameX), ..., name1)
  1226. expr1 -> DbPropertyExpression(... (DbPropertyExpression(DbVariableReferenceExpression(expr2BindingVariableName), nameX), ..., name1),
  1227. i.e. if they only differ in the name of the binding.
  1228. </summary>
  1229. <param name="expr1"> </param>
  1230. <param name="expr2"> </param>
  1231. <param name="expr1BindingVariableName"> </param>
  1232. <param name="expr2BindingVariableName"> </param>
  1233. <returns> </returns>
  1234. </member>
  1235. <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})">
  1236. <summary>
  1237. Helper method for
  1238. <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)"/>
  1239. Creates a
  1240. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression"/>
  1241. over the given inputBinding that projects out the given flattenedProperties.
  1242. and updates the flattenedProperties to be over the newly created project.
  1243. </summary>
  1244. <param name="inputBinding"> </param>
  1245. <param name="flattenedProperties"> </param>
  1246. <returns>
  1247. 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"/>
  1248. </returns>
  1249. </member>
  1250. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder">
  1251. <summary>
  1252. This class is like StringBuilder. While traversing the tree for the first time,
  1253. we do not know all the strings that need to be appended e.g. things that need to be
  1254. renamed, nested select statements etc. So, we use a builder that can collect
  1255. all kinds of sql fragments.
  1256. </summary>
  1257. </member>
  1258. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.Append(System.Object)">
  1259. <summary>
  1260. Add an object to the list - we do not verify that it is a proper sql fragment
  1261. since this is an internal method.
  1262. </summary>
  1263. <param name="s"> </param>
  1264. </member>
  1265. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.AppendLine">
  1266. <summary>
  1267. This is to pretty print the SQL. The writer <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlWriter.Write(System.String)"/>
  1268. needs to know about new lines so that it can add the right amount of
  1269. indentation at the beginning of lines.
  1270. </summary>
  1271. </member>
  1272. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  1273. <summary>
  1274. We delegate the writing of the fragment to the appropriate type.
  1275. </summary>
  1276. <param name="writer"> </param>
  1277. <param name="sqlGenerator"> </param>
  1278. </member>
  1279. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.IsEmpty">
  1280. <summary>
  1281. 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)"/>
  1282. to determine whether a sql statement can be reused.
  1283. </summary>
  1284. </member>
  1285. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler">
  1286. <summary>
  1287. Enacapsulates the logic required to translate function calls represented as instances of DbFunctionExpression into SQL.
  1288. There are several special cases that modify how the translation should proceed. These include:
  1289. - 'Special' canonical functions, for which the function name or arguments differ between the EDM canonical function and the SQL function
  1290. - 'Special' server functions, which are similar to the 'special' canonical functions but sourced by the SQL Server provider manifest
  1291. - Niladic functions, which require the parentheses that would usually follow the function name to be omitted
  1292. - Spatial canonical functions, which must translate to a static method call, instance method call, or instance property access against
  1293. one of the built-in spatial CLR UDTs (geography/geometry).
  1294. </summary>
  1295. </member>
  1296. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeStoreFunctionHandlers">
  1297. <summary>
  1298. All special store functions and their handlers
  1299. </summary>
  1300. <returns> </returns>
  1301. </member>
  1302. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeCanonicalFunctionHandlers">
  1303. <summary>
  1304. All special non-aggregate canonical functions and their handlers
  1305. </summary>
  1306. <returns> </returns>
  1307. </member>
  1308. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeFunctionNameToOperatorDictionary">
  1309. <summary>
  1310. Initalizes the mapping from functions to TSql operators
  1311. for all functions that translate to TSql operators
  1312. </summary>
  1313. <returns> </returns>
  1314. </member>
  1315. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeDateAddFunctionNameToDatepartDictionary">
  1316. <summary>
  1317. Initalizes the mapping from names of canonical function for date/time addition
  1318. to corresponding dateparts
  1319. </summary>
  1320. <returns> </returns>
  1321. </member>
  1322. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeDateDiffFunctionNameToDatepartDictionary">
  1323. <summary>
  1324. Initalizes the mapping from names of canonical function for date/time difference
  1325. to corresponding dateparts
  1326. </summary>
  1327. <returns> </returns>
  1328. </member>
  1329. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeographyStaticMethodFunctionsDictionary">
  1330. <summary>
  1331. Initalizes the mapping from names of canonical function that represent static geography methods to their corresponding
  1332. static method name, qualified with the 'geography::' prefix.
  1333. </summary>
  1334. <returns> </returns>
  1335. </member>
  1336. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeographyInstancePropertyFunctionsDictionary">
  1337. <summary>
  1338. Initalizes the mapping from names of canonical function that represent geography instance properties to their corresponding
  1339. store property name.
  1340. </summary>
  1341. <returns> </returns>
  1342. </member>
  1343. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeRenamedGeographyInstanceMethodFunctions">
  1344. <summary>
  1345. Initalizes the mapping of canonical function name to instance method name for geography instance functions that differ in name from the sql server equivalent.
  1346. </summary>
  1347. <returns> </returns>
  1348. </member>
  1349. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeometryStaticMethodFunctionsDictionary">
  1350. <summary>
  1351. Initalizes the mapping from names of canonical function that represent static geometry methods to their corresponding
  1352. static method name, qualified with the 'geometry::' prefix.
  1353. </summary>
  1354. <returns> </returns>
  1355. </member>
  1356. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeGeometryInstancePropertyFunctionsDictionary">
  1357. <summary>
  1358. Initalizes the mapping from names of canonical function that represent geometry instance properties to their corresponding
  1359. store property name.
  1360. </summary>
  1361. <returns> </returns>
  1362. </member>
  1363. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.InitializeRenamedGeometryInstanceMethodFunctions">
  1364. <summary>
  1365. Initalizes the mapping of canonical function name to instance method name for geometry instance functions that differ in name from the sql server equivalent.
  1366. </summary>
  1367. <returns> </returns>
  1368. </member>
  1369. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpecialStoreFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1370. <summary>
  1371. Determines whether the given function is a store function that
  1372. requires special handling
  1373. </summary>
  1374. <param name="e"> </param>
  1375. <returns> </returns>
  1376. </member>
  1377. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpecialCanonicalFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1378. <summary>
  1379. Determines whether the given function is a canonical function that
  1380. requires special handling
  1381. </summary>
  1382. <param name="e"> </param>
  1383. <returns> </returns>
  1384. </member>
  1385. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsSpatialCanonicalFunction(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression,System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind@)">
  1386. <summary>
  1387. Determines whether the given function is a canonical function the translates
  1388. to a spatial (geography/geometry) property access or method call.
  1389. </summary>
  1390. <param name="e"> </param>
  1391. <returns> </returns>
  1392. </member>
  1393. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleFunctionDefault(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1394. <summary>
  1395. Default handling for functions.
  1396. Translates them to FunctionName(arg1, arg2, ..., argn)
  1397. </summary>
  1398. <param name="e"> </param>
  1399. <returns> </returns>
  1400. </member>
  1401. <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)">
  1402. <summary>
  1403. Default handling for functions with a given name.
  1404. Translates them to FunctionName(arg1, arg2, ..., argn)
  1405. </summary>
  1406. <param name="e"> </param>
  1407. <param name="functionName"> </param>
  1408. <returns> </returns>
  1409. </member>
  1410. <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)">
  1411. <summary>
  1412. Default handling for functions with a given name and given return value cast.
  1413. Translates them to CAST(FunctionName(arg1, arg2, ..., argn) AS returnType)
  1414. </summary>
  1415. <param name="e"> </param>
  1416. <param name="functionName"> </param>
  1417. <param name="returnType"> </param>
  1418. <returns> </returns>
  1419. </member>
  1420. <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)">
  1421. <summary>
  1422. Default handling on function arguments.
  1423. Appends the list of arguments to the given result
  1424. If the function is niladic it does not append anything,
  1425. otherwise it appends (arg1, arg2, .., argn)
  1426. </summary>
  1427. <param name="e"> </param>
  1428. <param name="result"> </param>
  1429. </member>
  1430. <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)">
  1431. <summary>
  1432. Handler for functions that need to be translated to different store function based on version
  1433. </summary>
  1434. <param name="e"> </param>
  1435. <param name="preKatmaiName"> </param>
  1436. <param name="katmaiName"> </param>
  1437. <returns> </returns>
  1438. </member>
  1439. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialStoreFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1440. <summary>
  1441. Handler for special build in functions
  1442. </summary>
  1443. <param name="e"> </param>
  1444. <returns> </returns>
  1445. </member>
  1446. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleSpecialCanonicalFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1447. <summary>
  1448. Handler for special canonical functions
  1449. </summary>
  1450. <param name="e"> </param>
  1451. <returns> </returns>
  1452. </member>
  1453. <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)">
  1454. <summary>
  1455. Dispatches the special function processing to the appropriate handler
  1456. </summary>
  1457. <param name="handlers"> </param>
  1458. <param name="e"> </param>
  1459. <returns> </returns>
  1460. </member>
  1461. <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)">
  1462. <summary>
  1463. Handles functions that are translated into TSQL operators.
  1464. The given function should have one or two arguments.
  1465. Functions with one arguemnt are translated into
  1466. op arg
  1467. Functions with two arguments are translated into
  1468. arg0 op arg1
  1469. Also, the arguments can be optionaly enclosed in parethesis
  1470. </summary>
  1471. <param name="e"> </param>
  1472. <param name="parenthesiseArguments"> Whether the arguments should be enclosed in parethesis </param>
  1473. <returns> </returns>
  1474. </member>
  1475. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleConcatFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1476. <summary>
  1477. <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>
  1478. </summary>
  1479. <param name="sqlgen"> </param>
  1480. <param name="e"> </param>
  1481. <returns> </returns>
  1482. </member>
  1483. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionBitwise(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1484. <summary>
  1485. <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>
  1486. </summary>
  1487. <param name="sqlgen"> </param>
  1488. <param name="e"> </param>
  1489. <returns> </returns>
  1490. </member>
  1491. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleDatepartDateFunction(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1492. <summary>
  1493. Handles special case in which datapart 'type' parameter is present. all the functions
  1494. handles here have *only* the 1st parameter as datepart. datepart value is passed along
  1495. the QP as string and has to be expanded as TSQL keyword.
  1496. </summary>
  1497. <param name="sqlgen"> </param>
  1498. <param name="e"> </param>
  1499. <returns> </returns>
  1500. </member>
  1501. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDatepart(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1502. <summary>
  1503. Handler for canonical functions for extracting date parts.
  1504. For example:
  1505. Year(date) -> DATEPART( year, date)
  1506. </summary>
  1507. <param name="sqlgen"> </param>
  1508. <param name="e"> </param>
  1509. <returns> </returns>
  1510. </member>
  1511. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionGetTotalOffsetMinutes(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1512. <summary>
  1513. Handler for canonical funcitons for GetTotalOffsetMinutes.
  1514. GetTotalOffsetMinutes(e) --> Datepart(tzoffset, e)
  1515. </summary>
  1516. <param name="sqlgen"> </param>
  1517. <param name="e"> </param>
  1518. <returns> </returns>
  1519. </member>
  1520. <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)">
  1521. <summary>
  1522. Handler for turning a canonical function into DATEPART
  1523. Results in DATEPART(datepart, e)
  1524. </summary>
  1525. <param name="datepart"> </param>
  1526. <param name="e"> </param>
  1527. <returns> </returns>
  1528. </member>
  1529. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1530. <summary>
  1531. Handler for the canonical function CurrentDateTime
  1532. For Sql8 and Sql9: CurrentDateTime() -> GetDate()
  1533. For Sql10: CurrentDateTime() -> SysDateTime()
  1534. </summary>
  1535. <param name="sqlgen"> </param>
  1536. <param name="e"> </param>
  1537. <returns> </returns>
  1538. </member>
  1539. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentUtcDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1540. <summary>
  1541. Handler for the canonical function CurrentUtcDateTime
  1542. For Sql8 and Sql9: CurrentUtcDateTime() -> GetUtcDate()
  1543. For Sql10: CurrentUtcDateTime() -> SysUtcDateTime()
  1544. </summary>
  1545. <param name="sqlgen"> </param>
  1546. <param name="e"> </param>
  1547. <returns> </returns>
  1548. </member>
  1549. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCurrentDateTimeOffset(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1550. <summary>
  1551. Handler for the canonical function CurrentDateTimeOffset
  1552. For Sql8 and Sql9: throw
  1553. For Sql10: CurrentDateTimeOffset() -> SysDateTimeOffset()
  1554. </summary>
  1555. <param name="sqlgen"> </param>
  1556. <param name="e"> </param>
  1557. <returns> </returns>
  1558. </member>
  1559. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateDateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1560. <summary>
  1561. 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
  1562. Pre Katmai creates datetime.
  1563. On Katmai creates datetime2.
  1564. </summary>
  1565. <param name="sqlgen"> </param>
  1566. <param name="e"> </param>
  1567. <returns> </returns>
  1568. </member>
  1569. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateDateTimeOffset(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1570. <summary>
  1571. 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
  1572. Pre Katmai not supported.
  1573. On Katmai creates datetimeoffset.
  1574. </summary>
  1575. <param name="sqlgen"> </param>
  1576. <param name="e"> </param>
  1577. <returns> </returns>
  1578. </member>
  1579. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionCreateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1580. <summary>
  1581. 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
  1582. Pre Katmai not supported.
  1583. On Katmai creates time.
  1584. </summary>
  1585. <param name="sqlgen"> </param>
  1586. <param name="e"> </param>
  1587. <returns> </returns>
  1588. </member>
  1589. <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)">
  1590. <summary>
  1591. Helper for all date and time types creating functions.
  1592. The given expression is in general trainslated into:
  1593. CONVERT(@typename, [datePart] + [timePart] + [timeZonePart], 121), where the datePart and the timeZonePart are optional
  1594. Only on Katmai, if a date part is present it is wrapped with a call for adding years as shown below.
  1595. The individual parts are translated as:
  1596. Date part:
  1597. PRE KATMAI: convert(varchar(255), @year) + '-' + convert(varchar(255), @month) + '-' + convert(varchar(255), @day)
  1598. KATMAI: DateAdd(year, @year-1, covert(@typename, '0001' + '-' + convert(varchar(255), @month) + '-' + convert(varchar(255), @day) + [possibly time ], 121)
  1599. Time part:
  1600. PRE KATMAI: convert(varchar(255), @hour)+ ':' + convert(varchar(255), @minute)+ ':' + str(@second, 6, 3)
  1601. KATMAI: convert(varchar(255), @hour)+ ':' + convert(varchar(255), @minute)+ ':' + str(@second, 10, 7)
  1602. Time zone part:
  1603. (case when @tzoffset >= 0 then '+' else '-' end) + convert(varchar(255), ABS(@tzoffset)/60) + ':' + convert(varchar(255), ABS(@tzoffset)%60)
  1604. </summary>
  1605. <param name="typeName"> </param>
  1606. <param name="args"> </param>
  1607. <param name="hasDatePart"> </param>
  1608. <param name="hasTimeZonePart"> </param>
  1609. <returns> </returns>
  1610. </member>
  1611. <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)">
  1612. <summary>
  1613. Helper method that wrapps the given expession with a conver to varchar(255)
  1614. </summary>
  1615. <param name="result"> </param>
  1616. <param name="e"> </param>
  1617. </member>
  1618. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTruncateTime(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1619. <summary>
  1620. TruncateTime(DateTime X)
  1621. PreKatmai: TRUNCATETIME(X) => CONVERT(DATETIME, CONVERT(VARCHAR(255), expression, 102), 102)
  1622. Katmai: TRUNCATETIME(X) => CONVERT(DATETIME2, CONVERT(VARCHAR(255), expression, 102), 102)
  1623. TruncateTime(DateTimeOffset X)
  1624. TRUNCATETIME(X) => CONVERT(datetimeoffset, CONVERT(VARCHAR(255), expression, 102)
  1625. + ' 00:00:00 ' + Right(convert(varchar(255), @arg, 121), 6), 102)
  1626. </summary>
  1627. <param name="sqlgen"> </param>
  1628. <param name="e"> </param>
  1629. <returns> </returns>
  1630. </member>
  1631. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateAddKatmaiOrNewer(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1632. <summary>
  1633. Handler for date addition functions supported only starting from Katmai
  1634. </summary>
  1635. <param name="sqlgen"> </param>
  1636. <param name="e"> </param>
  1637. <returns> </returns>
  1638. </member>
  1639. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateAdd(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1640. <summary>
  1641. Handler for all date/time addition canonical functions.
  1642. Translation, e.g.
  1643. AddYears(datetime, number) => DATEADD(year, number, datetime)
  1644. </summary>
  1645. <param name="sqlgen"> </param>
  1646. <param name="e"> </param>
  1647. <returns> </returns>
  1648. </member>
  1649. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateDiffKatmaiOrNewer(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1650. <summary>
  1651. Hanndler for date differencing functions supported only starting from Katmai
  1652. </summary>
  1653. <param name="sqlgen"> </param>
  1654. <param name="e"> </param>
  1655. <returns> </returns>
  1656. </member>
  1657. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionDateDiff(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1658. <summary>
  1659. Handler for all date/time addition canonical functions.
  1660. Translation, e.g.
  1661. DiffYears(datetime, number) => DATEDIFF(year, number, datetime)
  1662. </summary>
  1663. <param name="sqlgen"> </param>
  1664. <param name="e"> </param>
  1665. <returns> </returns>
  1666. </member>
  1667. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionIndexOf(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1668. <summary>
  1669. Function rename IndexOf -> CHARINDEX
  1670. </summary>
  1671. <param name="sqlgen"> </param>
  1672. <param name="e"> </param>
  1673. <returns> </returns>
  1674. </member>
  1675. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionNewGuid(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1676. <summary>
  1677. Function rename NewGuid -> NEWID
  1678. </summary>
  1679. <param name="sqlgen"> </param>
  1680. <param name="e"> </param>
  1681. <returns> </returns>
  1682. </member>
  1683. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionLength(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1684. <summary>
  1685. Function rename Length -> LEN
  1686. </summary>
  1687. <param name="sqlgen"> </param>
  1688. <param name="e"> </param>
  1689. <returns> </returns>
  1690. </member>
  1691. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionRound(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1692. <summary>
  1693. Round(numericExpression) -> Round(numericExpression, 0);
  1694. Round(numericExpression, digits) -> Round(numericExpression, digits);
  1695. </summary>
  1696. <param name="sqlgen"> </param>
  1697. <param name="e"> </param>
  1698. <returns> </returns>
  1699. </member>
  1700. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTruncate(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1701. <summary>
  1702. Truncate(numericExpression) -> Round(numericExpression, 0, 1); (does not exist as canonical function yet)
  1703. Truncate(numericExpression, digits) -> Round(numericExpression, digits, 1);
  1704. </summary>
  1705. <param name="sqlgen"> </param>
  1706. <param name="e"> </param>
  1707. <returns> </returns>
  1708. </member>
  1709. <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)">
  1710. <summary>
  1711. Common handler for the canonical functions ROUND and TRUNCATE
  1712. </summary>
  1713. <param name="e"> </param>
  1714. <param name="round"> </param>
  1715. <returns> </returns>
  1716. </member>
  1717. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionAbs(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1718. <summary>
  1719. Handle the canonical function Abs().
  1720. </summary>
  1721. <param name="sqlgen"> </param>
  1722. <param name="e"> </param>
  1723. <returns> </returns>
  1724. </member>
  1725. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionTrim(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1726. <summary>
  1727. TRIM(string) -> LTRIM(RTRIM(string))
  1728. </summary>
  1729. <param name="sqlgen"> </param>
  1730. <param name="e"> </param>
  1731. <returns> </returns>
  1732. </member>
  1733. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionToLower(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1734. <summary>
  1735. Function rename ToLower -> LOWER
  1736. </summary>
  1737. <param name="sqlgen"> </param>
  1738. <param name="e"> </param>
  1739. <returns> </returns>
  1740. </member>
  1741. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionToUpper(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1742. <summary>
  1743. Function rename ToUpper -> UPPER
  1744. </summary>
  1745. <param name="sqlgen"> </param>
  1746. <param name="e"> </param>
  1747. <returns> </returns>
  1748. </member>
  1749. <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)">
  1750. <summary>
  1751. Function to translate the StartsWith, EndsWith and Contains canonical functions to LIKE expression in T-SQL
  1752. and also add the trailing ESCAPE '~' when escaping of the search string for the LIKE expression has occurred
  1753. </summary>
  1754. <param name="sqlgen"> </param>
  1755. <param name="targetExpression"> </param>
  1756. <param name="constSearchParamExpression"> </param>
  1757. <param name="result"> </param>
  1758. <param name="insertPercentStart"> </param>
  1759. <param name="insertPercentEnd"> </param>
  1760. </member>
  1761. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionContains(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1762. <summary>
  1763. Handler for Contains. Wraps the normal translation with a case statement
  1764. </summary>
  1765. <param name="sqlgen"> </param>
  1766. <param name="e"> </param>
  1767. <returns> </returns>
  1768. </member>
  1769. <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)">
  1770. <summary>
  1771. CONTAINS(arg0, arg1) => arg0 LIKE '%arg1%'
  1772. </summary>
  1773. <param name="sqlgen"> </param>
  1774. <param name="args"> </param>
  1775. <param name="result"> </param>
  1776. <returns> </returns>
  1777. </member>
  1778. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionStartsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1779. <summary>
  1780. Handler for StartsWith. Wraps the normal translation with a case statement
  1781. </summary>
  1782. <param name="sqlgen"> </param>
  1783. <param name="e"> </param>
  1784. <returns> </returns>
  1785. </member>
  1786. <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)">
  1787. <summary>
  1788. STARTSWITH(arg0, arg1) => arg0 LIKE 'arg1%'
  1789. </summary>
  1790. <param name="sqlgen"> </param>
  1791. <param name="args"> </param>
  1792. <param name="result"> </param>
  1793. <returns> </returns>
  1794. </member>
  1795. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.HandleCanonicalFunctionEndsWith(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1796. <summary>
  1797. Handler for EndsWith. Wraps the normal translation with a case statement
  1798. </summary>
  1799. <param name="sqlgen"> </param>
  1800. <param name="e"> </param>
  1801. <returns> </returns>
  1802. </member>
  1803. <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)">
  1804. <summary>
  1805. ENDSWITH(arg0, arg1) => arg0 LIKE '%arg1'
  1806. </summary>
  1807. <param name="sqlgen"> </param>
  1808. <param name="args"> </param>
  1809. <param name="result"> </param>
  1810. <returns> </returns>
  1811. </member>
  1812. <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)">
  1813. <summary>
  1814. Turns a predicate into a statement returning a bit
  1815. PREDICATE => CASE WHEN (PREDICATE) THEN CAST(1 AS BIT) WHEN (NOT (PREDICATE)) CAST (O AS BIT) END
  1816. The predicate is produced by the given predicateTranslator.
  1817. </summary>
  1818. <param name="predicateTranslator"> </param>
  1819. <param name="e"> </param>
  1820. <returns> </returns>
  1821. </member>
  1822. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.WriteFunctionName(System.Data.Entity.SqlServer.SqlGen.SqlBuilder,System.Data.Entity.Core.Metadata.Edm.EdmFunction)">
  1823. <summary>
  1824. Writes the function name to the given SqlBuilder.
  1825. </summary>
  1826. <param name="function"> </param>
  1827. <param name="result"> </param>
  1828. </member>
  1829. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.IsStoreFunction(System.Data.Entity.Core.Metadata.Edm.EdmFunction)">
  1830. <summary>
  1831. Is this a Store function (ie) does it have the builtinAttribute specified and it is not a canonical function?
  1832. </summary>
  1833. <param name="function"> </param>
  1834. <returns> </returns>
  1835. </member>
  1836. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt64(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1837. <summary>
  1838. determines if the function requires the return type be enforeced by use of a cast expression
  1839. </summary>
  1840. <param name="e"> </param>
  1841. <returns> </returns>
  1842. </member>
  1843. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt32(System.Data.Entity.SqlServer.SqlGen.SqlGenerator,System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1844. <summary>
  1845. determines if the function requires the return type be enforeced by use of a cast expression
  1846. </summary>
  1847. <param name="e"> </param>
  1848. <returns> </returns>
  1849. </member>
  1850. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToInt16(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1851. <summary>
  1852. determines if the function requires the return type be enforeced by use of a cast expression
  1853. </summary>
  1854. <param name="e"> </param>
  1855. <returns> </returns>
  1856. </member>
  1857. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlFunctionCallHandler.CastReturnTypeToSingle(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  1858. <summary>
  1859. determines if the function requires the return type be enforeced by use of a cast expression
  1860. </summary>
  1861. <param name="e"> </param>
  1862. <returns> </returns>
  1863. </member>
  1864. <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)">
  1865. <summary>
  1866. Determines if the function requires the return type be enforced by use of a cast expression
  1867. </summary>
  1868. <param name="e"> </param>
  1869. <param name="functionsRequiringReturnTypeCast"> </param>
  1870. <param name="type"> </param>
  1871. <returns> </returns>
  1872. </member>
  1873. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlGenerator">
  1874. <summary>
  1875. Translates the command object into a SQL string that can be executed on
  1876. SQL Server 2000 and SQL Server 2005.
  1877. </summary>
  1878. <remarks>
  1879. The translation is implemented as a visitor <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor`1"/>
  1880. over the query tree. It makes a single pass over the tree, collecting the sql
  1881. fragments for the various nodes in the tree <see cref="T:System.Data.Entity.SqlServer.SqlGen.ISqlFragment"/>.
  1882. The major operations are
  1883. <list type="bullet">
  1884. <item>
  1885. Select statement minimization. Multiple nodes in the query tree
  1886. that can be part of a single SQL select statement are merged. e.g. a
  1887. Filter node that is the input of a Project node can typically share the
  1888. same SQL statement.
  1889. </item>
  1890. <item>
  1891. Alpha-renaming. As a result of the statement minimization above, there
  1892. could be name collisions when using correlated subqueries
  1893. <example>
  1894. <code>Filter(
  1895. b = Project( c.x
  1896. c = Extent(foo)
  1897. )
  1898. exists (
  1899. Filter(
  1900. c = Extent(foo)
  1901. b.x = c.x
  1902. )
  1903. )
  1904. )</code>
  1905. The first Filter, Project and Extent will share the same SQL select statement.
  1906. The alias for the Project i.e. b, will be replaced with c.
  1907. If the alias c for the Filter within the exists clause is not renamed,
  1908. we will get <c>c.x = c.x</c>, which is incorrect.
  1909. Instead, the alias c within the second filter should be renamed to c1, to give
  1910. <c>c.x = c1.x</c> i.e. b is renamed to c, and c is renamed to c1.
  1911. </example>
  1912. </item>
  1913. <item>
  1914. Join flattening. In the query tree, a list of join nodes is typically
  1915. represented as a tree of Join nodes, each with 2 children. e.g.
  1916. <example>
  1917. <code>a = Join(InnerJoin
  1918. b = Join(CrossJoin
  1919. c = Extent(foo)
  1920. d = Extent(foo)
  1921. )
  1922. e = Extent(foo)
  1923. on b.c.x = e.x
  1924. )</code>
  1925. If translated directly, this will be translated to
  1926. <code>FROM ( SELECT c.*, d.*
  1927. FROM foo as c
  1928. CROSS JOIN foo as d) as b
  1929. INNER JOIN foo as e on b.x' = e.x</code>
  1930. It would be better to translate this as
  1931. <code>FROM foo as c
  1932. CROSS JOIN foo as d
  1933. INNER JOIN foo as e on c.x = e.x</code>
  1934. This allows the optimizer to choose an appropriate join ordering for evaluation.
  1935. </example>
  1936. </item>
  1937. <item>
  1938. Select * and column renaming. In the example above, we noticed that
  1939. in some cases we add
  1940. <c>SELECT * FROM ...</c>
  1941. to complete the SQL
  1942. statement. i.e. there is no explicit PROJECT list.
  1943. In this case, we enumerate all the columns available in the FROM clause
  1944. This is particularly problematic in the case of Join trees, since the columns
  1945. from the extents joined might have the same name - this is illegal. To solve
  1946. this problem, we will have to rename columns if they are part of a SELECT *
  1947. for a JOIN node - we do not need renaming in any other situation.
  1948. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  1949. .
  1950. </item>
  1951. </list>
  1952. <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>
  1953. <para>
  1954. 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.
  1955. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  1956. </para>
  1957. <para>
  1958. Building the SQL. There are 2 phases
  1959. <list type="numbered">
  1960. <item>
  1961. Traverse the tree, producing a sql builder
  1962. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  1963. </item>
  1964. <item>
  1965. Write the SqlBuilder into a string, renaming the aliases and columns
  1966. as needed.
  1967. </item>
  1968. </list>
  1969. In the first phase, we traverse the tree. We cannot generate the SQL string right away, since
  1970. <list type="bullet">
  1971. <item>The WHERE clause has to be visited before the from clause.</item>
  1972. <item>
  1973. extent aliases and column aliases need to be renamed. To minimize
  1974. renaming collisions, all the names used must be known, before any renaming
  1975. choice is made.
  1976. </item>
  1977. </list>
  1978. To defer the renaming choices, we use symbols
  1979. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  1980. . These are renamed in the second phase. Since visitor methods cannot transfer information to child nodes through parameters, we use some global stacks,
  1981. <list type="bullet">
  1982. <item>
  1983. A stack for the current SQL select statement. This is needed by
  1984. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/>
  1985. to create a
  1986. list of free variables used by a select statement. This is needed for
  1987. alias renaming.
  1988. </item>
  1989. <item>
  1990. A stack for the join context. When visiting an extent,
  1991. we need to know whether we are inside a join or not. If we are inside
  1992. a join, we do not create a new SELECT statement.
  1993. </item>
  1994. </list>
  1995. </para>
  1996. <para>
  1997. Global state. To enable renaming, we maintain
  1998. <list type="bullet">
  1999. <item>The set of all extent aliases used.</item>
  2000. <item>The set of all parameter names.</item>
  2001. <item>The set of all column names that may need to be renamed.</item>
  2002. </list>
  2003. Finally, we have a symbol table to lookup variable references. All references to the same extent have the same symbol.
  2004. </para>
  2005. <para>
  2006. Sql select statement sharing. Each of the relational operator nodes
  2007. <list type="bullet">
  2008. <item>Project</item>
  2009. <item>Filter</item>
  2010. <item>GroupBy</item>
  2011. <item>Sort/OrderBy</item>
  2012. </list>
  2013. 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.
  2014. <example>
  2015. <code>Project(b.x
  2016. b = Filter(
  2017. c = Extent(foo)
  2018. c.x = 5)
  2019. )</code>
  2020. The Extent node creates a new SqlSelectStatement. This is added to the
  2021. symbol table by the Filter as {c, Symbol(c)}. Thus, <c>c.x</c> is resolved to
  2022. <c>Symbol(c).x</c>.
  2023. Looking at the project node, we add {b, Symbol(c)} to the symbol table if the
  2024. SQL statement is reused, and {b, Symbol(b)}, if there is no reuse.
  2025. Thus, <c>b.x</c> is resolved to <c>Symbol(c).x</c> if there is reuse, and to
  2026. <c>Symbol(b).x</c> if there is no reuse.
  2027. </example>
  2028. </para>
  2029. </remarks>
  2030. </member>
  2031. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.selectStatementStack">
  2032. <summary>
  2033. Every relational node has to pass its SELECT statement to its children
  2034. This allows them (DbVariableReferenceExpression eventually) to update the list of
  2035. outer extents (free variables) used by this select statement.
  2036. </summary>
  2037. </member>
  2038. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.isParentAJoinStack">
  2039. <summary>
  2040. Nested joins and extents need to know whether they should create
  2041. a new Select statement, or reuse the parent's. This flag
  2042. indicates whether the parent is a join or not.
  2043. </summary>
  2044. </member>
  2045. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.isVarRefSingle">
  2046. <summary>
  2047. VariableReferenceExpressions are allowed only as children of DbPropertyExpression
  2048. or MethodExpression. The cheapest way to ensure this is to set the following
  2049. property in DbVariableReferenceExpression and reset it in the allowed parent expressions.
  2050. </summary>
  2051. </member>
  2052. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._candidateParametersToForceNonUnicode">
  2053. <summary>
  2054. Maintain the list of (string) DbParameterReferenceExpressions that should be compensated, viz.
  2055. forced to non-unicode format. A parameter is added to the list if it is being compared to a
  2056. non-unicode store column and none of its other usages in the query tree, disqualify it
  2057. (For example - if the parameter is also being projected or compared to a unicode column)
  2058. The goal of the compensation is to have the store index picked up by the server.
  2059. String constants are also compensated and the decision is local, unlike parameters.
  2060. </summary>
  2061. </member>
  2062. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._forceNonUnicode">
  2063. <summary>
  2064. Set and reset in DbComparisonExpression and DbLikeExpression visit methods. Maintains
  2065. global state information that the children of these nodes are candidates for compensation.
  2066. </summary>
  2067. </member>
  2068. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator._ignoreForceNonUnicodeFlag">
  2069. <summary>
  2070. 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.
  2071. </summary>
  2072. </member>
  2073. <member name="F:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.sqlVersion">
  2074. <summary>
  2075. The current SQL Server version
  2076. </summary>
  2077. </member>
  2078. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.#ctor(System.Data.Entity.SqlServer.SqlVersion)">
  2079. <summary>
  2080. Basic constructor.
  2081. </summary>
  2082. <param name="sqlVersion"> server version </param>
  2083. </member>
  2084. <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}@)">
  2085. <summary>
  2086. General purpose static function that can be called from System.Data assembly
  2087. </summary>
  2088. <param name="sqlVersion"> Server version </param>
  2089. <param name="tree"> command tree </param>
  2090. <param name="parameters"> Parameters to add to the command tree corresponding to constants in the command tree. Used only in ModificationCommandTrees. </param>
  2091. <param name="commandType"> CommandType for generated command. </param>
  2092. <returns> The string representing the SQL to be executed. </returns>
  2093. </member>
  2094. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GenerateSql(System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree,System.Collections.Generic.HashSet{System.String}@)">
  2095. <summary>
  2096. Translate a command tree to a SQL string.
  2097. The input tree could be translated to either a SQL SELECT statement
  2098. or a SELECT expression. This choice is made based on the return type
  2099. of the expression
  2100. CollectionType => select statement
  2101. non collection type => select expression
  2102. </summary>
  2103. <param name="tree"> </param>
  2104. <returns> The string representing the SQL to be executed. </returns>
  2105. </member>
  2106. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.WriteSql(System.Data.Entity.SqlServer.SqlGen.ISqlFragment)">
  2107. <summary>
  2108. Convert the SQL fragments to a string.
  2109. We have to setup the Stream for writing.
  2110. </summary>
  2111. <param name="sqlStatement"> </param>
  2112. <returns> A string representing the SQL to be executed. </returns>
  2113. </member>
  2114. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)">
  2115. <summary>
  2116. Translate(left) AND Translate(right)
  2117. </summary>
  2118. <param name="e"> </param>
  2119. <returns>
  2120. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> .
  2121. </returns>
  2122. </member>
  2123. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)">
  2124. <summary>
  2125. An apply is just like a join, so it shares the common join processing
  2126. 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)"/>
  2127. </summary>
  2128. <param name="e"> </param>
  2129. <returns>
  2130. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  2131. </returns>
  2132. </member>
  2133. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression)">
  2134. <summary>
  2135. 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)"/>.
  2136. We handle the other expressions directly.
  2137. </summary>
  2138. <param name="e"> </param>
  2139. <returns>
  2140. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2141. </returns>
  2142. </member>
  2143. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression)">
  2144. <summary>
  2145. If the ELSE clause is null, we do not write it out.
  2146. </summary>
  2147. <param name="e"> </param>
  2148. <returns>
  2149. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2150. </returns>
  2151. </member>
  2152. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCastExpression)">
  2153. <summary>
  2154. </summary>
  2155. <param name="e"> </param>
  2156. <returns> </returns>
  2157. </member>
  2158. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression)">
  2159. <summary>
  2160. The parser generates Not(Equals(...)) for &lt;&gt;.
  2161. </summary>
  2162. <param name="e"> </param>
  2163. <returns>
  2164. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> .
  2165. </returns>
  2166. </member>
  2167. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CheckIfForceNonUnicodeRequired(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2168. <summary>
  2169. Checks if the arguments of the input Comparison or Like expression are candidates
  2170. for compensation. If yes, sets global state variable - _forceNonUnicode.
  2171. </summary>
  2172. <param name="e"> DBComparisonExpression or DbLikeExpression </param>
  2173. </member>
  2174. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchPatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2175. <summary>
  2176. The grammar for the pattern that we are looking for is -
  2177. Pattern := Target OP Source | Source OP Target
  2178. OP := Like | In | Comparison
  2179. Source := Non-unicode DbPropertyExpression
  2180. Target := Target FUNC Target | DbConstantExpression | DBParameterExpression
  2181. FUNC := CONCAT | RTRIM | LTRIM | TRIM | SUBSTRING | TOLOWER | TOUPPER | REVERSE | REPLACE
  2182. </summary>
  2183. <param name="e"> </param>
  2184. <returns> </returns>
  2185. </member>
  2186. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchTargetPatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2187. <summary>
  2188. Matches the non-terminal symbol "target" in above grammar.
  2189. </summary>
  2190. <param name="expr"> </param>
  2191. <returns> </returns>
  2192. </member>
  2193. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.MatchSourcePatternForForcingNonUnicode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2194. <summary>
  2195. Determines if the expression represents a non-unicode string column(char/varchar store type)
  2196. </summary>
  2197. <param name="argument"> </param>
  2198. <returns> </returns>
  2199. </member>
  2200. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsConstParamOrNullExpressionUnicodeNotSpecified(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2201. <summary>
  2202. Determines if the expression represents a string constant or parameter with the facet, unicode=null.
  2203. </summary>
  2204. <param name="argument"> </param>
  2205. <returns> </returns>
  2206. </member>
  2207. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)">
  2208. <summary>
  2209. Generate tsql for a constant. Avoid the explicit cast (if possible) when
  2210. the isCastOptional parameter is set
  2211. </summary>
  2212. <param name="e"> the constant expression </param>
  2213. <param name="isCastOptional"> can we avoid the CAST </param>
  2214. <returns> the tsql fragment </returns>
  2215. </member>
  2216. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertValidDouble(System.Double)">
  2217. <summary>
  2218. Helper method for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  2219. </summary>
  2220. <param name="value"> A double value </param>
  2221. <exception cref="T:System.NotSupportedException">
  2222. If a value of positive or negative infinity, or
  2223. <see cref="F:System.Double.NaN"/>
  2224. is specified
  2225. </exception>
  2226. </member>
  2227. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertValidSingle(System.Single)">
  2228. <summary>
  2229. Helper method for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  2230. </summary>
  2231. <param name="value"> A single value </param>
  2232. <exception cref="T:System.NotSupportedException">
  2233. If a value of positive or negative infinity, or
  2234. <see cref="F:System.Single.NaN"/>
  2235. is specified
  2236. </exception>
  2237. </member>
  2238. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.WrapWithCastIfNeeded(System.Boolean,System.String,System.String,System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2239. <summary>
  2240. Helper function for <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitConstant(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression,System.Boolean)"/>
  2241. Appends the given constant value to the result either 'as is' or wrapped with a cast to the given type.
  2242. </summary>
  2243. <param name="cast"> </param>
  2244. <param name="value"> </param>
  2245. <param name="typeName"> </param>
  2246. <param name="result"> </param>
  2247. </member>
  2248. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)">
  2249. <summary>
  2250. We do not pass constants as parameters.
  2251. </summary>
  2252. <param name="e"> </param>
  2253. <returns>
  2254. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> . Strings are wrapped in single quotes and escaped. Numbers are written literally.
  2255. </returns>
  2256. </member>
  2257. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDerefExpression)">
  2258. <summary>
  2259. </summary>
  2260. <param name="e"> </param>
  2261. <returns> </returns>
  2262. </member>
  2263. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression)">
  2264. <summary>
  2265. The DISTINCT has to be added to the beginning of SqlSelectStatement.Select,
  2266. but it might be too late for that. So, we use a flag on SqlSelectStatement
  2267. instead, and add the "DISTINCT" in the second phase.
  2268. </summary>
  2269. <param name="e"> </param>
  2270. <returns>
  2271. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2272. </returns>
  2273. </member>
  2274. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbElementExpression)">
  2275. <summary>
  2276. An element expression returns a scalar - so it is translated to
  2277. ( Select ... )
  2278. </summary>
  2279. <param name="e"> </param>
  2280. <returns> </returns>
  2281. </member>
  2282. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)">
  2283. <summary>
  2284. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>
  2285. </summary>
  2286. <param name="e"> </param>
  2287. <returns> </returns>
  2288. </member>
  2289. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2290. <summary>
  2291. Only concrete expression types will be visited.
  2292. </summary>
  2293. <param name="e"> </param>
  2294. <returns> </returns>
  2295. </member>
  2296. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbScanExpression)">
  2297. <summary>
  2298. </summary>
  2299. <param name="e"> </param>
  2300. <returns>
  2301. 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
  2302. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2303. with the From field set.
  2304. </returns>
  2305. </member>
  2306. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GetTargetTSql(System.Data.Entity.Core.Metadata.Edm.EntitySetBase)">
  2307. <summary>
  2308. Gets escaped TSql identifier describing this entity set.
  2309. </summary>
  2310. <returns> </returns>
  2311. </member>
  2312. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)">
  2313. <summary>
  2314. 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)"/>,
  2315. <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.
  2316. Each does the following.
  2317. <list type="number">
  2318. <item>Visit the input expression</item>
  2319. <item>
  2320. Determine if the input's SQL statement can be reused, or a new
  2321. one must be created.
  2322. </item>
  2323. <item>Create a new symbol table scope</item>
  2324. <item>
  2325. Push the Sql statement onto a stack, so that children can
  2326. update the free variable list.
  2327. </item>
  2328. <item>Visit the non-input expression.</item>
  2329. <item>Cleanup</item>
  2330. </list>
  2331. </summary>
  2332. <param name="e"> </param>
  2333. <returns>
  2334. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2335. </returns>
  2336. </member>
  2337. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  2338. <summary>
  2339. Lambda functions are not supported.
  2340. The functions supported are:
  2341. <list type="number">
  2342. <item>Canonical Functions - We recognize these by their dataspace, it is DataSpace.CSpace</item>
  2343. <item>Store Functions - We recognize these by the BuiltInAttribute and not being Canonical</item>
  2344. <item>User-defined Functions - All the rest</item>
  2345. </list>
  2346. We handle Canonical and Store functions the same way: If they are in the list of functions
  2347. that need special handling, we invoke the appropriate handler, otherwise we translate them to
  2348. FunctionName(arg1, arg2, ..., argn).
  2349. We translate user-defined functions to NamespaceName.FunctionName(arg1, arg2, ..., argn).
  2350. </summary>
  2351. <param name="e"> </param>
  2352. <returns>
  2353. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2354. </returns>
  2355. </member>
  2356. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression)">
  2357. <summary>
  2358. </summary>
  2359. <param name="e"> </param>
  2360. <returns> </returns>
  2361. </member>
  2362. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefKeyExpression)">
  2363. <summary>
  2364. </summary>
  2365. <param name="e"> </param>
  2366. <returns> </returns>
  2367. </member>
  2368. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression)">
  2369. <summary>
  2370. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> for general details.
  2371. We modify both the GroupBy and the Select fields of the SqlSelectStatement.
  2372. GroupBy gets just the keys without aliases,
  2373. and Select gets the keys and the aggregates with aliases.
  2374. Sql Server does not support arbitrarily complex expressions inside aggregates,
  2375. and requires keys to have reference to the input scope,
  2376. so in some cases we create a nested query in which we alias the arguments to the aggregates.
  2377. The exact limitations of Sql Server are:
  2378. <list type="number">
  2379. <item>
  2380. If an expression being aggregated contains an outer reference, then that outer
  2381. reference must be the only column referenced in the expression (SQLBUDT #488741)
  2382. </item>
  2383. <item>
  2384. Sql Server cannot perform an aggregate function on an expression containing
  2385. an aggregate or a subquery. (SQLBUDT #504600)
  2386. </item>
  2387. <item>
  2388. Sql Server requries each GROUP BY expression (key) to contain at least one column
  2389. that is not an outer reference. (SQLBUDT #616523)
  2390. </item>
  2391. <item>
  2392. Aggregates on the right side of an APPLY cannot reference columns from the left side.
  2393. (SQLBUDT #617683)
  2394. </item>
  2395. </list>
  2396. The default translation, without inner query is:
  2397. SELECT
  2398. kexp1 AS key1, kexp2 AS key2,... kexpn AS keyn,
  2399. aggf1(aexpr1) AS agg1, .. aggfn(aexprn) AS aggn
  2400. FROM input AS a
  2401. GROUP BY kexp1, kexp2, .. kexpn
  2402. When we inject an innner query, the equivalent translation is:
  2403. SELECT
  2404. key1 AS key1, key2 AS key2, .. keyn AS keys,
  2405. aggf1(agg1) AS agg1, aggfn(aggn) AS aggn
  2406. FROM (
  2407. SELECT
  2408. kexp1 AS key1, kexp2 AS key2,... kexpn AS keyn,
  2409. aexpr1 AS agg1, .. aexprn AS aggn
  2410. FROM input AS a
  2411. ) as a
  2412. GROUP BY key1, key2, keyn
  2413. </summary>
  2414. <param name="e"> </param>
  2415. <returns>
  2416. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2417. </returns>
  2418. </member>
  2419. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)">
  2420. <summary>
  2421. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>
  2422. </summary>
  2423. <param name="e"> </param>
  2424. <returns> </returns>
  2425. </member>
  2426. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)">
  2427. <summary>
  2428. Not(IsEmpty) has to be handled specially, so we delegate to
  2429. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsEmptyExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression,System.Boolean)"/>.
  2430. </summary>
  2431. <param name="e"> </param>
  2432. <returns>
  2433. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> . <code>[NOT] EXISTS( ... )</code>
  2434. </returns>
  2435. </member>
  2436. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)">
  2437. <summary>
  2438. Not(IsNull) is handled specially, so we delegate to
  2439. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsNullExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression,System.Boolean)"/>
  2440. </summary>
  2441. <param name="e"> </param>
  2442. <returns>
  2443. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> <code>IS [NOT] NULL</code>
  2444. </returns>
  2445. </member>
  2446. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression)">
  2447. <summary>
  2448. No error is raised if the store cannot support this.
  2449. </summary>
  2450. <param name="e"> </param>
  2451. <returns>
  2452. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2453. </returns>
  2454. </member>
  2455. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbCrossJoinExpression)">
  2456. <summary>
  2457. <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)"/>
  2458. </summary>
  2459. <param name="e"> </param>
  2460. <returns>
  2461. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  2462. </returns>
  2463. </member>
  2464. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)">
  2465. <summary>
  2466. <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)"/>
  2467. </summary>
  2468. <param name="e"> </param>
  2469. <returns>
  2470. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> .
  2471. </returns>
  2472. </member>
  2473. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression)">
  2474. <summary>
  2475. </summary>
  2476. <param name="e"> </param>
  2477. <returns>
  2478. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2479. </returns>
  2480. </member>
  2481. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression)">
  2482. <summary>
  2483. Translates to TOP expression. For Sql8, limit can only be a constant expression
  2484. </summary>
  2485. <param name="e"> </param>
  2486. <returns>
  2487. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2488. </returns>
  2489. </member>
  2490. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  2491. <summary>
  2492. DbNewInstanceExpression is allowed as a child of DbProjectExpression only.
  2493. If anyone else is the parent, we throw.
  2494. We also perform special casing for collections - where we could convert
  2495. them into Unions
  2496. <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.
  2497. </summary>
  2498. <param name="e"> </param>
  2499. <returns> </returns>
  2500. </member>
  2501. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNotExpression)">
  2502. <summary>
  2503. The Not expression may cause the translation of its child to change.
  2504. These children are
  2505. <list type="bullet">
  2506. <item>
  2507. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbNotExpression"/>
  2508. NOT(Not(x)) becomes x
  2509. </item>
  2510. <item>
  2511. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression"/>
  2512. NOT EXISTS becomes EXISTS
  2513. </item>
  2514. <item>
  2515. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression"/>
  2516. IS NULL becomes IS NOT NULL
  2517. </item>
  2518. <item>
  2519. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression"/>
  2520. = becomes &lt;&gt;
  2521. </item>
  2522. </list>
  2523. </summary>
  2524. <param name="e"> </param>
  2525. <returns>
  2526. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2527. </returns>
  2528. </member>
  2529. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNullExpression)">
  2530. <summary>
  2531. </summary>
  2532. <param name="e"> </param>
  2533. <returns>
  2534. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2535. </returns>
  2536. </member>
  2537. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression)">
  2538. <summary>
  2539. </summary>
  2540. <param name="e"> </param>
  2541. <returns>
  2542. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2543. </returns>
  2544. </member>
  2545. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression)">
  2546. <summary>
  2547. Visit a DbOrExpression and consider the subexpressions
  2548. for whether to generate OR conditions or an IN clause.
  2549. </summary>
  2550. <param name="e"> DbOrExpression to be visited </param>
  2551. <returns>
  2552. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> fragment of SQL generated
  2553. </returns>
  2554. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbAndExpression)"/>
  2555. </member>
  2556. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbInExpression)">
  2557. <summary>
  2558. Visits a DbInExpression and generates the corresponding SQL fragment.
  2559. </summary>
  2560. <param name="e"> A <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbInExpression"/> that specifies the expression to be visited. </param>
  2561. <returns>
  2562. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/> that specifies the generated SQL fragment.
  2563. </returns>
  2564. </member>
  2565. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.TryTranslateIntoIn(System.Data.Entity.Core.Common.CommandTrees.DbOrExpression,System.Data.Entity.SqlServer.SqlGen.ISqlFragment@)">
  2566. <summary>
  2567. Determine if a DbOrExpression can be optimized into one or more IN clauses
  2568. and generate an ISqlFragment if it is possible.
  2569. </summary>
  2570. <param name="e"> DbOrExpression to attempt translation upon </param>
  2571. <param name="sqlFragment"> Fragment of SQL generated </param>
  2572. <returns> True if an IN clause is possible and sqlFragment has been generated, false otherwise </returns>
  2573. </member>
  2574. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsKeyForIn(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  2575. <summary>
  2576. Determines if a DbExpression is a valid key for the purposes of generating an In clause optimization.
  2577. </summary>
  2578. <param name="e"> DbExpression to consider </param>
  2579. <returns> True if the expression can be used as a key, false otherwise </returns>
  2580. </member>
  2581. <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}})">
  2582. <summary>
  2583. Looks at both sides of a DbBinaryExpression to consider if either side is a valid candidate to
  2584. be a key and if so adds it to the KeyToListMap as a key with the other side as the value.
  2585. </summary>
  2586. <param name="e"> DbBinaryExpression to consider </param>
  2587. <param name="values"> KeyToListMap to add the sides of the binary expression to </param>
  2588. <returns> True if the expression was added, false otherwise </returns>
  2589. </member>
  2590. <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}})">
  2591. <summary>
  2592. Attempts to build a KeyToListMap containing valid references and the appropriate value equality
  2593. tests associated with each so that they can be optimized into IN clauses. Calls itself recursively
  2594. to consider additional OR branches.
  2595. </summary>
  2596. <param name="e"> DbExpression representing the branch to evaluate </param>
  2597. <param name="values"> KeyToListMap to which to add references and value equality tests encountered </param>
  2598. <returns> True if this branch contained just equality tests or further OR branches, false otherwise </returns>
  2599. </member>
  2600. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpression)">
  2601. <summary>
  2602. This method handles the DBParameterReference expressions. If the parameter is in
  2603. a part of the tree, which matches our criteria for forcing to non-unicode, then
  2604. we add it to the list of candidate parameters. If the parameter occurs in a different
  2605. usage scenario, then disqualify it from being forced to non-unicode.
  2606. </summary>
  2607. <param name="e"> </param>
  2608. <returns>
  2609. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2610. </returns>
  2611. </member>
  2612. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)">
  2613. <summary>
  2614. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> for the general ideas.
  2615. </summary>
  2616. <param name="e"> </param>
  2617. <returns>
  2618. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2619. </returns>
  2620. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  2621. </member>
  2622. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)">
  2623. <summary>
  2624. This method handles record flattening, which works as follows.
  2625. consider an expression <c>Prop(y, Prop(x, Prop(d, Prop(c, Prop(b, Var(a)))))</c>
  2626. where a,b,c are joins, d is an extent and x and y are fields.
  2627. b has been flattened into a, and has its own SELECT statement.
  2628. c has been flattened into b.
  2629. d has been flattened into c.
  2630. We visit the instance, so we reach Var(a) first. This gives us a (join)symbol.
  2631. Symbol(a).b gives us a join symbol, with a SELECT statement i.e. Symbol(b).
  2632. From this point on , we need to remember Symbol(b) as the source alias,
  2633. and then try to find the column. So, we use a SymbolPair.
  2634. We have reached the end when the symbol no longer points to a join symbol.
  2635. </summary>
  2636. <param name="e"> </param>
  2637. <returns>
  2638. 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
  2639. <see cref="T:System.Data.Entity.SqlServer.SqlGen.SymbolPair"/>
  2640. 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.
  2641. </returns>
  2642. </member>
  2643. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)">
  2644. <summary>
  2645. Any(input, x) => Exists(Filter(input,x))
  2646. All(input, x) => Not Exists(Filter(input, not(x))
  2647. </summary>
  2648. <param name="e"> </param>
  2649. <returns> </returns>
  2650. </member>
  2651. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRefExpression)">
  2652. <summary>
  2653. </summary>
  2654. <param name="e"> </param>
  2655. <returns> </returns>
  2656. </member>
  2657. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbRelationshipNavigationExpression)">
  2658. <summary>
  2659. </summary>
  2660. <param name="e"> </param>
  2661. <returns> </returns>
  2662. </member>
  2663. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression)">
  2664. <summary>
  2665. For Sql9 it translates to:
  2666. SELECT Y.x1, Y.x2, ..., Y.xn
  2667. FROM (
  2668. SELECT X.x1, X.x2, ..., X.xn, row_number() OVER (ORDER BY sk1, sk2, ...) AS [row_number]
  2669. FROM input as X
  2670. ) as Y
  2671. WHERE Y.[row_number] &gt; count
  2672. ORDER BY sk1, sk2, ...
  2673. </summary>
  2674. <param name="e"> </param>
  2675. <returns>
  2676. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2677. </returns>
  2678. </member>
  2679. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbSortExpression)">
  2680. <summary>
  2681. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  2682. </summary>
  2683. <param name="e"> </param>
  2684. <returns>
  2685. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2686. </returns>
  2687. <seealso cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/>
  2688. </member>
  2689. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbTreatExpression)">
  2690. <summary>
  2691. </summary>
  2692. <param name="e"> </param>
  2693. <returns>
  2694. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2695. </returns>
  2696. </member>
  2697. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)">
  2698. <summary>
  2699. This code is shared by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression)"/>
  2700. and <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression)"/>
  2701. <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)"/>
  2702. Since the left and right expression may not be Sql select statements,
  2703. we must wrap them up to look like SQL select statements.
  2704. </summary>
  2705. <param name="e"> </param>
  2706. <returns> </returns>
  2707. </member>
  2708. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)">
  2709. <summary>
  2710. This method determines whether an extent from an outer scope(free variable)
  2711. is used in the CurrentSelectStatement.
  2712. An extent in an outer scope, if its symbol is not in the FromExtents
  2713. of the CurrentSelectStatement.
  2714. </summary>
  2715. <param name="e"> </param>
  2716. <returns>
  2717. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/> .
  2718. </returns>
  2719. </member>
  2720. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitAggregate(System.Data.Entity.Core.Common.CommandTrees.DbAggregate,System.Object)">
  2721. <summary>
  2722. Aggregates are not visited by the normal visitor walk.
  2723. </summary>
  2724. <param name="aggregate"> The aggregate go be translated </param>
  2725. <param name="aggregateArgument"> The translated aggregate argument </param>
  2726. <returns> </returns>
  2727. </member>
  2728. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.ParenthesizeExpressionIfNeeded(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.SqlServer.SqlGen.SqlBuilder)">
  2729. <summary>
  2730. Dump out an expression - optionally wrap it with parantheses if possible
  2731. </summary>
  2732. <param name="e"> </param>
  2733. <param name="result"> </param>
  2734. </member>
  2735. <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)">
  2736. <summary>
  2737. Handler for inline binary expressions.
  2738. Produces left op right.
  2739. For associative operations does flattening.
  2740. Puts parenthesis around the arguments if needed.
  2741. </summary>
  2742. <param name="op"> </param>
  2743. <param name="expressionKind"> </param>
  2744. <param name="left"> </param>
  2745. <param name="right"> </param>
  2746. <returns> </returns>
  2747. </member>
  2748. <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)">
  2749. <summary>
  2750. Creates a flat list of the associative arguments.
  2751. For example, for ((A1 + (A2 - A3)) + A4) it will create A1, (A2 - A3), A4
  2752. Only 'unfolds' the given arguments that are of the given expression kind.
  2753. </summary>
  2754. <param name="expressionKind"> </param>
  2755. <param name="arguments"> </param>
  2756. <returns> </returns>
  2757. </member>
  2758. <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)">
  2759. <summary>
  2760. Helper method for FlattenAssociativeExpression.
  2761. Creates a flat list of the associative arguments and appends to the given argument list.
  2762. For example, for ((A1 + (A2 - A3)) + A4) it will add A1, (A2 - A3), A4 to the list.
  2763. Only 'unfolds' the given expression if it is of the given expression kind.
  2764. </summary>
  2765. <param name="expressionKind"> </param>
  2766. <param name="argumentList"> </param>
  2767. <param name="expression"> </param>
  2768. </member>
  2769. <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)">
  2770. <summary>
  2771. Private handler for comparison expressions - almost identical to VisitBinaryExpression.
  2772. We special case constants, so that we don't emit unnecessary casts
  2773. </summary>
  2774. <param name="op"> the comparison op </param>
  2775. <param name="left"> the left-side expression </param>
  2776. <param name="right"> the right-side expression </param>
  2777. <returns> </returns>
  2778. </member>
  2779. <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@)">
  2780. <summary>
  2781. This is called by the relational nodes. It does the following
  2782. <list>
  2783. <item>
  2784. If the input is not a SqlSelectStatement, it assumes that the input
  2785. is a collection expression, and creates a new SqlSelectStatement
  2786. </item>
  2787. </list>
  2788. </summary>
  2789. <param name="inputExpression"> </param>
  2790. <param name="inputVarName"> </param>
  2791. <param name="inputVarType"> </param>
  2792. <param name="fromSymbol"> </param>
  2793. <returns>
  2794. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/> and the main fromSymbol for this select statement.
  2795. </returns>
  2796. </member>
  2797. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsEmptyExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression,System.Boolean)">
  2798. <summary>
  2799. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsEmptyExpression)"/>
  2800. </summary>
  2801. <param name="e"> </param>
  2802. <param name="negate"> Was the parent a DbNotExpression? </param>
  2803. <returns> </returns>
  2804. </member>
  2805. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitCollectionConstructor(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)">
  2806. <summary>
  2807. Translate a NewInstance(Element(X)) expression into
  2808. "select top(1) * from X"
  2809. </summary>
  2810. <param name="e"> </param>
  2811. <returns> </returns>
  2812. </member>
  2813. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitIsNullExpression(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression,System.Boolean)">
  2814. <summary>
  2815. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbIsNullExpression)"/>
  2816. </summary>
  2817. <param name="e"> </param>
  2818. <param name="negate"> Was the parent a DbNotExpression? </param>
  2819. <returns> </returns>
  2820. </member>
  2821. <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)">
  2822. <summary>
  2823. This handles the processing of join expressions.
  2824. The extents on a left spine are flattened, while joins
  2825. not on the left spine give rise to new nested sub queries.
  2826. Joins work differently from the rest of the visiting, in that
  2827. the parent (i.e. the join node) creates the SqlSelectStatement
  2828. for the children to use.
  2829. The "parameter" IsInJoinContext indicates whether a child extent should
  2830. add its stuff to the existing SqlSelectStatement, or create a new SqlSelectStatement
  2831. By passing true, we ask the children to add themselves to the parent join,
  2832. by passing false, we ask the children to create new Select statements for
  2833. themselves.
  2834. This method is called from <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression)"/> and
  2835. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression)"/>.
  2836. </summary>
  2837. <param name="inputs"> </param>
  2838. <param name="joinKind"> </param>
  2839. <param name="joinString"> </param>
  2840. <param name="joinCondition"> </param>
  2841. <returns>
  2842. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement"/>
  2843. </returns>
  2844. </member>
  2845. <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)">
  2846. <summary>
  2847. 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)"/>.
  2848. This is responsible for maintaining the symbol table after visiting
  2849. a child of a join expression.
  2850. The child's sql statement may need to be completed.
  2851. The child's result could be one of
  2852. <list type="number">
  2853. <item>The same as the parent's - this is treated specially.</item>
  2854. <item>A sql select statement, which may need to be completed</item>
  2855. <item>An extent - just copy it to the from clause</item>
  2856. <item>
  2857. Anything else (from a collection-valued expression) -
  2858. unnest and copy it.
  2859. </item>
  2860. </list>
  2861. If the input was a Join, we need to create a new join symbol,
  2862. otherwise, we create a normal symbol.
  2863. We then call AddFromSymbol to add the AS clause, and update the symbol table.
  2864. If the child's result was the same as the parent's, we have to clean up
  2865. the list of symbols in the FromExtents list, since this contains symbols from
  2866. the children of both the parent and the child.
  2867. The happens when the child visited is a Join, and is the leftmost child of
  2868. the parent.
  2869. </summary>
  2870. <param name="fromExtentFragment"> </param>
  2871. <param name="result"> </param>
  2872. <param name="input"> </param>
  2873. <param name="fromSymbolStart"> </param>
  2874. </member>
  2875. <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}@)">
  2876. <summary>
  2877. We assume that this is only called as a child of a Project.
  2878. This replaces <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression)"/>, since
  2879. we do not allow DbNewInstanceExpression as a child of any node other than
  2880. DbProjectExpression.
  2881. We write out the translation of each of the columns in the record.
  2882. </summary>
  2883. <param name="e"> </param>
  2884. <param name="aliasesNeedRenaming"> </param>
  2885. <param name="newColumns"> </param>
  2886. <returns>
  2887. A <see cref="T:System.Data.Entity.SqlServer.SqlGen.SqlBuilder"/>
  2888. </returns>
  2889. </member>
  2890. <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)">
  2891. <summary>
  2892. Handler for set operations
  2893. It generates left separator right.
  2894. Only for SQL 8.0 it may need to create a new select statement
  2895. above the set operation if the left child's output columns got renamed
  2896. </summary>
  2897. <param name="left"> </param>
  2898. <param name="right"> </param>
  2899. <param name="separator"> </param>
  2900. <returns> </returns>
  2901. </member>
  2902. <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})">
  2903. <summary>
  2904. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  2905. Add the column names from the referenced extent/join to the
  2906. select statement.
  2907. If the symbol is a JoinSymbol, we recursively visit all the extents,
  2908. halting at real extents and JoinSymbols that have an associated SqlSelectStatement.
  2909. The column names for a real extent can be derived from its type.
  2910. The column names for a Join Select statement can be got from the
  2911. list of columns that was created when the Join's select statement
  2912. was created.
  2913. We do the following for each column.
  2914. <list type="number">
  2915. <item>Add the SQL string for each column to the SELECT clause</item>
  2916. <item>
  2917. Add the column to the list of columns - so that it can
  2918. become part of the "type" of a JoinSymbol
  2919. </item>
  2920. <item>
  2921. Check if the column name collides with a previous column added
  2922. to the same select statement. Flag both the columns for renaming if true.
  2923. </item>
  2924. <item>Add the column to a name lookup dictionary for collision detection.</item>
  2925. </list>
  2926. </summary>
  2927. <param name="selectStatement"> The select statement that started off as SELECT * </param>
  2928. <param name="symbol"> The symbol containing the type information for the columns to be added. </param>
  2929. <param name="columnList">
  2930. Columns that have been added to the Select statement. This is created in
  2931. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  2932. .
  2933. </param>
  2934. <param name="columnDictionary"> A dictionary of the columns above. </param>
  2935. </member>
  2936. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CreateOptionalColumn(System.Data.Entity.SqlServer.SqlGen.Symbol,System.Data.Entity.SqlServer.SqlGen.Symbol)">
  2937. <summary>
  2938. Creates an optional column and registers the corresponding symbol with
  2939. the optionalColumnUsageManager it has not already been registered.
  2940. </summary>
  2941. <param name="inputColumnSymbol"> </param>
  2942. <param name="column"> </param>
  2943. <returns> </returns>
  2944. </member>
  2945. <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)">
  2946. <summary>
  2947. Helper method for AddColumns. Adds a column with the given column name
  2948. to the Select list of the given select statement.
  2949. </summary>
  2950. <param name="selectStatement"> The select statement to whose SELECT part the column should be added </param>
  2951. <param name="symbol"> The symbol from which the column to be added originated </param>
  2952. <param name="columnList">
  2953. Columns that have been added to the Select statement. This is created in
  2954. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)"/>
  2955. .
  2956. </param>
  2957. <param name="columnDictionary"> A dictionary of the columns above. </param>
  2958. <param name="columnName"> The name of the column to be added. </param>
  2959. </member>
  2960. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddDefaultColumns(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement)">
  2961. <summary>
  2962. Expands Select * to "select the_list_of_columns"
  2963. If the columns are taken from an extent, they are written as
  2964. {original_column_name AS Symbol(original_column)} to allow renaming.
  2965. If the columns are taken from a Join, they are written as just
  2966. {original_column_name}, since there cannot be a name collision.
  2967. We concatenate the columns from each of the inputs to the select statement.
  2968. Since the inputs may be joins that are flattened, we need to recurse.
  2969. The inputs are inferred from the symbols in FromExtents.
  2970. </summary>
  2971. <param name="selectStatement"> </param>
  2972. <returns> </returns>
  2973. </member>
  2974. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AddFromSymbol(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.String,System.Data.Entity.SqlServer.SqlGen.Symbol)">
  2975. <summary>
  2976. <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)"/>
  2977. </summary>
  2978. <param name="selectStatement"> </param>
  2979. <param name="inputVarName"> </param>
  2980. <param name="fromSymbol"> </param>
  2981. </member>
  2982. <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)">
  2983. <summary>
  2984. This method is called after the input to a relational node is visited.
  2985. <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)"/>
  2986. There are 2 scenarios
  2987. <list type="number">
  2988. <item>
  2989. The fromSymbol is new i.e. the select statement has just been
  2990. created, or a join extent has been added.
  2991. </item>
  2992. <item>The fromSymbol is old i.e. we are reusing a select statement.</item>
  2993. </list>
  2994. If we are not reusing the select statement, we have to complete the
  2995. FROM clause with the alias
  2996. <code>-- if the input was an extent
  2997. FROM = [SchemaName].[TableName]
  2998. -- if the input was a Project
  2999. FROM = (SELECT ... FROM ... WHERE ...)</code>
  3000. These become
  3001. <code>-- if the input was an extent
  3002. FROM = [SchemaName].[TableName] AS alias
  3003. -- if the input was a Project
  3004. FROM = (SELECT ... FROM ... WHERE ...) AS alias</code>
  3005. and look like valid FROM clauses.
  3006. Finally, we have to add the alias to the global list of aliases used,
  3007. and also to the current symbol table.
  3008. </summary>
  3009. <param name="selectStatement"> </param>
  3010. <param name="inputVarName"> The alias to be used. </param>
  3011. <param name="fromSymbol"> </param>
  3012. <param name="addToSymbolTable"> </param>
  3013. </member>
  3014. <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})">
  3015. <summary>
  3016. Translates a list of SortClauses.
  3017. Used in the translation of OrderBy
  3018. </summary>
  3019. <param name="orderByClause"> The SqlBuilder to which the sort keys should be appended </param>
  3020. <param name="sortKeys"> </param>
  3021. </member>
  3022. <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@)">
  3023. <summary>
  3024. <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@)"/>
  3025. </summary>
  3026. <param name="oldStatement"> </param>
  3027. <param name="inputVarName"> </param>
  3028. <param name="inputVarType"> </param>
  3029. <param name="fromSymbol"> </param>
  3030. <returns> </returns>
  3031. </member>
  3032. <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@)">
  3033. <summary>
  3034. This is called after a relational node's input has been visited, and the
  3035. input's sql statement cannot be reused. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression)"/>
  3036. When the input's sql statement cannot be reused, we create a new sql
  3037. statement, with the old one as the from clause of the new statement.
  3038. The old statement must be completed i.e. if it has an empty select list,
  3039. the list of columns must be projected out.
  3040. If the old statement being completed has a join symbol as its from extent,
  3041. the new statement must have a clone of the join symbol as its extent.
  3042. We cannot reuse the old symbol, but the new select statement must behave
  3043. as though it is working over the "join" record.
  3044. </summary>
  3045. <param name="oldStatement"> </param>
  3046. <param name="inputVarName"> </param>
  3047. <param name="inputVarType"> </param>
  3048. <param name="finalizeOldStatement"> </param>
  3049. <param name="fromSymbol"> </param>
  3050. <returns> A new select statement, with the old one as the from clause. </returns>
  3051. </member>
  3052. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.EscapeSingleQuote(System.String,System.Boolean)">
  3053. <summary>
  3054. Before we embed a string literal in a SQL string, we should
  3055. convert all ' to '', and enclose the whole string in single quotes.
  3056. </summary>
  3057. <param name="s"> </param>
  3058. <param name="isUnicode"> </param>
  3059. <returns> The escaped sql string. </returns>
  3060. </member>
  3061. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GetSqlPrimitiveType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3062. <summary>
  3063. Returns the sql primitive/native type name.
  3064. It will include size, precision or scale depending on type information present in the
  3065. type facets
  3066. </summary>
  3067. <param name="type"> </param>
  3068. <returns> </returns>
  3069. </member>
  3070. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.HandleCountExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3071. <summary>
  3072. Handles the expression represending DbLimitExpression.Limit and DbSkipExpression.Count.
  3073. If it is a constant expression, it simply does to string thus avoiding casting it to the specific value
  3074. (which would be done if <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression)"/> is called)
  3075. </summary>
  3076. <param name="e"> </param>
  3077. <returns> </returns>
  3078. </member>
  3079. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsApplyExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3080. <summary>
  3081. This is used to determine if a particular expression is an Apply operation.
  3082. This is only the case when the DbExpressionKind is CrossApply or OuterApply.
  3083. </summary>
  3084. <param name="e"> </param>
  3085. <returns> </returns>
  3086. </member>
  3087. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsJoinExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3088. <summary>
  3089. This is used to determine if a particular expression is a Join operation.
  3090. This is true for DbCrossJoinExpression and DbJoinExpression, the
  3091. latter of which may have one of several different ExpressionKinds.
  3092. </summary>
  3093. <param name="e"> </param>
  3094. <returns> </returns>
  3095. </member>
  3096. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsComplexExpression(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3097. <summary>
  3098. This is used to determine if a calling expression needs to place
  3099. round brackets around the translation of the expression e.
  3100. Constants, parameters and properties do not require brackets,
  3101. everything else does.
  3102. </summary>
  3103. <param name="e"> </param>
  3104. <returns> true, if the expression needs brackets </returns>
  3105. </member>
  3106. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsCompatible(System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement,System.Data.Entity.Core.Common.CommandTrees.DbExpressionKind)">
  3107. <summary>
  3108. Determine if the owner expression can add its unique sql to the input's
  3109. SqlSelectStatement
  3110. </summary>
  3111. <param name="result"> The SqlSelectStatement of the input to the relational node. </param>
  3112. <param name="expressionKind"> The kind of the expression node(not the input's) </param>
  3113. <returns> </returns>
  3114. </member>
  3115. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.QuoteIdentifier(System.String)">
  3116. <summary>
  3117. We use the normal box quotes for SQL server. We do not deal with ANSI quotes
  3118. i.e. double quotes.
  3119. </summary>
  3120. <param name="name"> </param>
  3121. <returns> </returns>
  3122. </member>
  3123. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3124. <summary>
  3125. Simply calls <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean,System.Boolean)"/>
  3126. with addDefaultColumns set to true and markAllDefaultColumnsAsUsed set to false.
  3127. </summary>
  3128. <param name="e"> </param>
  3129. <returns> </returns>
  3130. </member>
  3131. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.VisitExpressionEnsureSqlStatement(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Boolean,System.Boolean)">
  3132. <summary>
  3133. 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}@)"/>
  3134. 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)"/>,
  3135. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression)"/>.
  3136. SqlGenerator needs its child to have a proper alias if the child is
  3137. just an extent or a join.
  3138. The normal relational nodes result in complete valid SQL statements.
  3139. For the rest, we need to treat them as there was a dummy
  3140. <code>-- originally {expression}
  3141. -- change that to
  3142. SELECT *
  3143. FROM {expression} as c</code>
  3144. DbLimitExpression needs to start the statement but not add the default columns
  3145. </summary>
  3146. <param name="e"> </param>
  3147. <param name="addDefaultColumns"> </param>
  3148. <param name="markAllDefaultColumnsAsUsed"> </param>
  3149. <returns> </returns>
  3150. </member>
  3151. <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)">
  3152. <summary>
  3153. This method is called by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbFilterExpression)"/> and
  3154. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression)"/>
  3155. </summary>
  3156. <param name="input"> </param>
  3157. <param name="predicate"> </param>
  3158. <param name="negatePredicate">
  3159. 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.
  3160. </param>
  3161. <returns> </returns>
  3162. </member>
  3163. <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)">
  3164. <summary>
  3165. If the sql fragment for an input expression is not a SqlSelect statement
  3166. or other acceptable form (e.g. an extent as a SqlBuilder), we need
  3167. to wrap it in a form acceptable in a FROM clause. These are
  3168. primarily the
  3169. <list type="bullet">
  3170. <item>The set operation expressions - union all, intersect, except</item>
  3171. <item>TVFs, which are conceptually similar to tables</item>
  3172. </list>
  3173. </summary>
  3174. <param name="result"> </param>
  3175. <param name="sqlFragment"> </param>
  3176. <param name="expressionKind"> </param>
  3177. </member>
  3178. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByAggregatesNeedInnerQuery(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbAggregate},System.String)">
  3179. <summary>
  3180. Helper method for the Group By visitor
  3181. Returns true if at least one of the aggregates in the given list
  3182. has an argument that is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/> and is not
  3183. a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>,
  3184. either potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>
  3185. This is really due to the following two limitations of Sql Server:
  3186. <list type="number">
  3187. <item>
  3188. If an expression being aggregated contains an outer reference, then that outer
  3189. reference must be the only column referenced in the expression (SQLBUDT #488741)
  3190. </item>
  3191. <item>
  3192. Sql Server cannot perform an aggregate function on an expression containing
  3193. an aggregate or a subquery. (SQLBUDT #504600)
  3194. </item>
  3195. </list>
  3196. Potentially, we could furhter optimize this.
  3197. </summary>
  3198. <param name="aggregates"> </param>
  3199. <param name="inputVarRefName"> </param>
  3200. <returns> </returns>
  3201. </member>
  3202. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByAggregateNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)">
  3203. <summary>
  3204. Returns true if the given expression is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/> or a
  3205. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>
  3206. referencing the given inputVarRefName, either
  3207. potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  3208. </summary>
  3209. <param name="expression"> </param>
  3210. <param name="inputVarRefName"> </param>
  3211. <returns> </returns>
  3212. </member>
  3213. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByKeysNeedInnerQuery(System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbExpression},System.String)">
  3214. <summary>
  3215. Helper method for the Group By visitor
  3216. Returns true if at least one of the expressions in the given list
  3217. is not <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/>
  3218. referencing the given inputVarRefName potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  3219. This is really due to the following limitation: Sql Server requires each GROUP BY expression
  3220. (key) to contain at least one column that is not an outer reference. (SQLBUDT #616523)
  3221. Potentially, we could further optimize this.
  3222. </summary>
  3223. <param name="keys"> </param>
  3224. <param name="inputVarRefName"> </param>
  3225. <returns> </returns>
  3226. </member>
  3227. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByKeyNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String)">
  3228. <summary>
  3229. Returns true if the given expression is not <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over
  3230. <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/> referencing the given inputVarRefName
  3231. potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  3232. This is really due to the following limitation: Sql Server requires each GROUP BY expression
  3233. (key) to contain at least one column that is not an outer reference. (SQLBUDT #616523)
  3234. Potentially, we could further optimize this.
  3235. </summary>
  3236. <param name="expression"> </param>
  3237. <param name="inputVarRefName"> </param>
  3238. <returns> </returns>
  3239. </member>
  3240. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.GroupByExpressionNeedsInnerQuery(System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.String,System.Boolean)">
  3241. <summary>
  3242. Helper method for processing Group By keys and aggregates.
  3243. Returns true if the given expression is not a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression"/>
  3244. (and allowConstants is specified)or a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression"/> over
  3245. a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression"/> referencing the given inputVarRefName,
  3246. either potentially capped with a <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbCastExpression"/>.
  3247. </summary>
  3248. <param name="expression"> </param>
  3249. <param name="inputVarRefName"> </param>
  3250. <param name="allowConstants"> </param>
  3251. <returns> </returns>
  3252. </member>
  3253. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertKatmaiOrNewer(System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind)">
  3254. <summary>
  3255. Throws not supported exception if the server is pre-katmai
  3256. </summary>
  3257. <param name="primitiveTypeKind"> </param>
  3258. </member>
  3259. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.AssertKatmaiOrNewer(System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression)">
  3260. <summary>
  3261. Throws not supported exception if the server is pre-katmai
  3262. </summary>
  3263. <param name="e"> </param>
  3264. </member>
  3265. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.CurrentSelectStatement">
  3266. <summary>
  3267. The top of the stack
  3268. </summary>
  3269. </member>
  3270. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.IsParentAJoin">
  3271. <summary>
  3272. Determine if the parent is a join.
  3273. </summary>
  3274. </member>
  3275. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.KeyFieldExpressionComparer">
  3276. <summary>
  3277. Required by the KeyToListMap to allow certain DbExpression subclasses to be used as a key
  3278. which is not normally possible given their lack of Equals and GetHashCode implementations
  3279. for testing object value equality.
  3280. </summary>
  3281. </member>
  3282. <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)">
  3283. <summary>
  3284. Compare two DbExpressions to see if they are equal for the purposes of
  3285. our key management. We only support DbPropertyExpression, DbParameterReferenceExpression,
  3286. VariableReferenceExpression and DbCastExpression types. Everything else will fail to
  3287. be considered equal.
  3288. </summary>
  3289. <param name="x"> First DbExpression to consider for equality </param>
  3290. <param name="y"> Second DbExpression to consider for equality </param>
  3291. <returns> True if the types are allowed and equal, false otherwise </returns>
  3292. </member>
  3293. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.KeyFieldExpressionComparer.GetHashCode(System.Data.Entity.Core.Common.CommandTrees.DbExpression)">
  3294. <summary>
  3295. Calculates a hashcode for a given number of DbExpression subclasses to allow the KeyToListMap
  3296. to efficiently and reliably locate existing keys.
  3297. </summary>
  3298. <param name="obj"> DbExpression to calculate a hashcode for </param>
  3299. <returns> Integer containing the hashcode </returns>
  3300. </member>
  3301. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder">
  3302. <summary>
  3303. This class is used for building the SELECT clause of a Sql Statement
  3304. It is used to gather information about required and optional columns
  3305. and whether TOP and DISTINCT should be specified.
  3306. The underlying SqlBuilder is used for gathering the required columns.
  3307. The list of OptionalColumns is used for gathering the optional columns.
  3308. Whether a given OptionalColumn should be written is known only after the entire
  3309. command tree has been processed.
  3310. The IsDistinct property indicates that we want distinct columns.
  3311. This is given out of band, since the input expression to the select clause
  3312. may already have some columns projected out, and we use append-only SqlBuilders.
  3313. The DISTINCT is inserted when we finally write the object into a string.
  3314. Also, we have a Top property, which is non-null if the number of results should
  3315. be limited to certain number. It is given out of band for the same reasons as DISTINCT.
  3316. </summary>
  3317. </member>
  3318. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  3319. <summary>
  3320. Writes the string representing the Select statement:
  3321. SELECT (DISTINCT) (TOP topClause) (optionalColumns) (requiredColumns)
  3322. If Distinct is specified or this is part of a top most statement
  3323. all optional columns are marked as used.
  3324. Optional columns are only written if marked as used.
  3325. In addition, if no required columns are specified and no optional columns are
  3326. marked as used, the first optional column is written.
  3327. </summary>
  3328. <param name="writer"> </param>
  3329. <param name="sqlGenerator"> </param>
  3330. </member>
  3331. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.WriteOptionalColumns(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  3332. <summary>
  3333. Writes the optional columns that are used.
  3334. If this is the topmost statement or distict is specifed as part of the same statement
  3335. all optoinal columns are written.
  3336. </summary>
  3337. <param name="writer"> </param>
  3338. <param name="sqlGenerator"> </param>
  3339. <returns> Whether at least one column got written </returns>
  3340. </member>
  3341. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.IsDistinct">
  3342. <summary>
  3343. Do we need to add a DISTINCT at the beginning of the SELECT
  3344. </summary>
  3345. </member>
  3346. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectClauseBuilder.IsEmpty">
  3347. <summary>
  3348. Whether any columns have been specified.
  3349. </summary>
  3350. </member>
  3351. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement">
  3352. <summary>
  3353. A SqlSelectStatement represents a canonical SQL SELECT statement.
  3354. It has fields for the 5 main clauses
  3355. <list type="number">
  3356. <item>SELECT</item>
  3357. <item>FROM</item>
  3358. <item>WHERE</item>
  3359. <item>GROUP BY</item>
  3360. <item>ORDER BY</item>
  3361. </list>
  3362. We do not have HAVING, since the CQT does not have such a node.
  3363. Each of the fields is a SqlBuilder, so we can keep appending SQL strings
  3364. or other fragments to build up the clause.
  3365. The FromExtents contains the list of inputs in use for the select statement.
  3366. There is usually just one element in this - Select statements for joins may
  3367. temporarily have more than one.
  3368. If the select statement is created by a Join node, we maintain a list of
  3369. all the extents that have been flattened in the join in AllJoinExtents
  3370. <example>
  3371. in J(j1= J(a,b), c)
  3372. FromExtents has 2 nodes JoinSymbol(name=j1, ...) and Symbol(name=c)
  3373. AllJoinExtents has 3 nodes Symbol(name=a), Symbol(name=b), Symbol(name=c)
  3374. </example>
  3375. If any expression in the non-FROM clause refers to an extent in a higher scope,
  3376. we add that extent to the OuterExtents list. This list denotes the list
  3377. of extent aliases that may collide with the aliases used in this select statement.
  3378. It is set by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/>.
  3379. An extent is an outer extent if it is not one of the FromExtents.
  3380. </summary>
  3381. </member>
  3382. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  3383. <summary>
  3384. Write out a SQL select statement as a string.
  3385. We have to
  3386. <list type="number">
  3387. <item>
  3388. Check whether the aliases extents we use in this statement have
  3389. to be renamed.
  3390. We first create a list of all the aliases used by the outer extents.
  3391. For each of the FromExtents( or AllJoinExtents if it is non-null),
  3392. rename it if it collides with the previous list.
  3393. </item>
  3394. <item>Write each of the clauses (if it exists) as a string</item>
  3395. </list>
  3396. </summary>
  3397. <param name="writer"> </param>
  3398. <param name="sqlGenerator"> </param>
  3399. </member>
  3400. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.OutputColumnsRenamed">
  3401. <summary>
  3402. Whether the columns ouput by this sql statement were renamed from what given in the command tree.
  3403. </summary>
  3404. </member>
  3405. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlSelectStatement.OutputColumns">
  3406. <summary>
  3407. A dictionary of output columns
  3408. </summary>
  3409. </member>
  3410. <member name="T:System.Data.Entity.SqlServer.SqlGen.SqlWriter">
  3411. <summary>
  3412. This extends StringWriter primarily to add the ability to add an indent
  3413. to each line that is written out.
  3414. </summary>
  3415. </member>
  3416. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlWriter.#ctor(System.Text.StringBuilder)">
  3417. <summary>
  3418. </summary>
  3419. <param name="b"> </param>
  3420. </member>
  3421. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlWriter.Write(System.String)">
  3422. <summary>
  3423. Reset atBeginningofLine if we detect the newline string.
  3424. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlBuilder.AppendLine"/>
  3425. Add as many tabs as the value of indent if we are at the
  3426. beginning of a line.
  3427. </summary>
  3428. <param name="value"> </param>
  3429. </member>
  3430. <member name="M:System.Data.Entity.SqlServer.SqlGen.SqlWriter.WriteLine">
  3431. <summary>
  3432. </summary>
  3433. </member>
  3434. <member name="P:System.Data.Entity.SqlServer.SqlGen.SqlWriter.Indent">
  3435. <summary>
  3436. The number of tabs to be added at the beginning of each new line.
  3437. </summary>
  3438. </member>
  3439. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolPair">
  3440. <summary>
  3441. The SymbolPair exists to solve the record flattening problem.
  3442. <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>
  3443. Consider a property expression D(v, "j3.j2.j1.a.x")
  3444. where v is a VarRef, j1, j2, j3 are joins, a is an extent and x is a columns.
  3445. This has to be translated eventually into {j'}.{x'}
  3446. The source field represents the outermost SqlStatement representing a join
  3447. expression (say j2) - this is always a Join symbol.
  3448. The column field keeps moving from one join symbol to the next, until it
  3449. stops at a non-join symbol.
  3450. This is returned by <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression)"/>,
  3451. but never makes it into a SqlBuilder.
  3452. </summary>
  3453. </member>
  3454. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolTable">
  3455. <summary>
  3456. The symbol table is quite primitive - it is a stack with a new entry for
  3457. each scope. Lookups search from the top of the stack to the bottom, until
  3458. an entry is found.
  3459. The symbols are of the following kinds
  3460. <list type="bullet">
  3461. <item>
  3462. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  3463. represents tables (extents/nested selects/unnests)
  3464. </item>
  3465. <item>
  3466. <see cref="T:System.Data.Entity.SqlServer.SqlGen.JoinSymbol"/>
  3467. represents Join nodes
  3468. </item>
  3469. <item>
  3470. <see cref="T:System.Data.Entity.SqlServer.SqlGen.Symbol"/>
  3471. columns.
  3472. </item>
  3473. </list>
  3474. Symbols represent names <see cref="M:System.Data.Entity.SqlServer.SqlGen.SqlGenerator.Visit(System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression)"/> to be resolved,
  3475. or things to be renamed.
  3476. </summary>
  3477. </member>
  3478. <member name="T:System.Data.Entity.SqlServer.SqlGen.SymbolUsageManager">
  3479. <summary>
  3480. Tracks the usage of symbols.
  3481. When registering a symbol with the usage manager if an input symbol is specified,
  3482. than the usage of the two is 'connected' - if one ever gets marked as used,
  3483. the other one becomes 'used' too.
  3484. </summary>
  3485. </member>
  3486. <member name="T:System.Data.Entity.SqlServer.SqlGen.TopClause">
  3487. <summary>
  3488. TopClause represents the a TOP expression in a SqlSelectStatement.
  3489. It has a count property, which indicates how many TOP rows should be selected and a
  3490. boolen WithTies property.
  3491. </summary>
  3492. </member>
  3493. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.#ctor(System.Data.Entity.SqlServer.SqlGen.ISqlFragment,System.Boolean)">
  3494. <summary>
  3495. Creates a TopClause with the given topCount and withTies.
  3496. </summary>
  3497. <param name="topCount"> </param>
  3498. <param name="withTies"> </param>
  3499. </member>
  3500. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.#ctor(System.Int32,System.Boolean)">
  3501. <summary>
  3502. Creates a TopClause with the given topCount and withTies.
  3503. </summary>
  3504. <param name="topCount"> </param>
  3505. <param name="withTies"> </param>
  3506. </member>
  3507. <member name="M:System.Data.Entity.SqlServer.SqlGen.TopClause.WriteSql(System.Data.Entity.SqlServer.SqlGen.SqlWriter,System.Data.Entity.SqlServer.SqlGen.SqlGenerator)">
  3508. <summary>
  3509. Write out the TOP part of sql select statement
  3510. It basically writes TOP (X) [WITH TIES].
  3511. The brackets around X are ommited for Sql8.
  3512. </summary>
  3513. <param name="writer"> </param>
  3514. <param name="sqlGenerator"> </param>
  3515. </member>
  3516. <member name="P:System.Data.Entity.SqlServer.SqlGen.TopClause.WithTies">
  3517. <summary>
  3518. Do we need to add a WITH_TIES to the top statement
  3519. </summary>
  3520. </member>
  3521. <member name="P:System.Data.Entity.SqlServer.SqlGen.TopClause.TopCount">
  3522. <summary>
  3523. How many top rows should be selected.
  3524. </summary>
  3525. </member>
  3526. <member name="T:System.Data.Entity.SqlServer.SqlProviderManifest">
  3527. <summary>
  3528. The Provider Manifest for SQL Server
  3529. </summary>
  3530. </member>
  3531. <member name="F:System.Data.Entity.SqlServer.SqlProviderManifest.varcharMaxSize">
  3532. <summary>
  3533. Maximum size of SQL Server unicode
  3534. </summary>
  3535. </member>
  3536. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.#ctor(System.String)">
  3537. <summary>
  3538. Initializes a new instance of the <see cref="T:System.Data.Entity.SqlServer.SqlProviderManifest"/> class.
  3539. </summary>
  3540. <param name="manifestToken"> A token used to infer the capabilities of the store. </param>
  3541. </member>
  3542. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.EscapeLikeText(System.String,System.Boolean,System.Boolean@)">
  3543. <summary>
  3544. Function to detect wildcard characters %, _, [ and ^ and escape them with a preceding ~
  3545. This escaping is used when StartsWith, EndsWith and Contains canonical and CLR functions
  3546. are translated to their equivalent LIKE expression
  3547. NOTE: This code has been copied from LinqToSql
  3548. </summary>
  3549. <param name="text"> Original input as specified by the user </param>
  3550. <param name="alwaysEscapeEscapeChar"> escape the escape character ~ regardless whether wildcard characters were encountered </param>
  3551. <param name="usedEscapeChar"> true if the escaping was performed, false if no escaping was required </param>
  3552. <returns> The escaped string that can be used as pattern in a LIKE expression </returns>
  3553. </member>
  3554. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetDbInformation(System.String)">
  3555. <summary>
  3556. Providers should override this to return information specific to their provider.
  3557. This method should never return null.
  3558. </summary>
  3559. <param name="informationType"> The name of the information to be retrieved. </param>
  3560. <returns> An XmlReader at the begining of the information requested. </returns>
  3561. </member>
  3562. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetEdmType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3563. <summary>
  3564. This method takes a type and a set of facets and returns the best mapped equivalent type
  3565. in EDM.
  3566. </summary>
  3567. <param name="storeType"> A TypeUsage encapsulating a store type and a set of facets </param>
  3568. <returns> A TypeUsage encapsulating an EDM type and a set of facets </returns>
  3569. </member>
  3570. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.GetStoreType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3571. <summary>
  3572. This method takes a type and a set of facets and returns the best mapped equivalent type
  3573. in SQL Server, taking the store version into consideration.
  3574. </summary>
  3575. <param name="storeType"> A TypeUsage encapsulating an EDM type and a set of facets </param>
  3576. <returns> A TypeUsage encapsulating a store type and a set of facets </returns>
  3577. </member>
  3578. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.SupportsEscapingLikeArgument(System.Char@)">
  3579. <summary>
  3580. Returns true, SqlClient supports escaping strings to be used as arguments to like
  3581. The escape character is '~'
  3582. </summary>
  3583. <param name="escapeCharacter"> The character '~' </param>
  3584. <returns> True </returns>
  3585. </member>
  3586. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.EscapeLikeArgument(System.String)">
  3587. <summary>
  3588. Escapes the wildcard characters and the escape character in the given argument.
  3589. </summary>
  3590. <param name="argument"> </param>
  3591. <returns> Equivalent to the argument, with the wildcard characters and the escape character escaped </returns>
  3592. </member>
  3593. <member name="M:System.Data.Entity.SqlServer.SqlProviderManifest.SupportsInExpression">
  3594. <summary>
  3595. Returns a boolean that specifies whether the corresponding provider can handle expression trees
  3596. containing instances of DbInExpression.
  3597. The Sql provider handles instances of DbInExpression.
  3598. </summary>
  3599. <returns> <c>true</c>. </returns>
  3600. </member>
  3601. <member name="T:System.Data.Entity.SqlServer.SqlProviderServices">
  3602. <summary>
  3603. The DbProviderServices implementation for the SqlClient provider for SQL Server.
  3604. </summary>
  3605. </member>
  3606. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.#ctor">
  3607. <summary>
  3608. Private constructor to ensure only Singleton instance is created.
  3609. </summary>
  3610. </member>
  3611. <member name="F:System.Data.Entity.SqlServer.SqlProviderServices._providerInstance">
  3612. <summary>
  3613. Singleton object
  3614. </summary>
  3615. </member>
  3616. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.CreateDbCommandDefinition(System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Common.CommandTrees.DbCommandTree)">
  3617. <summary>
  3618. Create a Command Definition object, given the connection and command tree
  3619. </summary>
  3620. <param name="providerManifest"> provider manifest that was determined from metadata </param>
  3621. <param name="commandTree"> command tree for the statement </param>
  3622. <returns> an executable command definition object </returns>
  3623. </member>
  3624. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.CreateCommand(System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Common.CommandTrees.DbCommandTree)">
  3625. <summary>
  3626. Create a SqlCommand object, given the provider manifest and command tree
  3627. </summary>
  3628. <param name="providerManifest"> provider manifest </param>
  3629. <param name="commandTree"> command tree for the statement </param>
  3630. <returns> a command object </returns>
  3631. </member>
  3632. <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)">
  3633. <summary>
  3634. Creates a SqlParameter given a name, type, and direction
  3635. </summary>
  3636. </member>
  3637. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.EnsureSqlParameterValue(System.Object)">
  3638. <summary>
  3639. Validates that the specified value is compatible with SqlParameter and if not, attempts to return an appropriate value that is.
  3640. Currently only spatial values (DbGeography/DbGeometry) may not be directly usable with SqlParameter. For these types, an instance
  3641. of the corresponding SQL Server CLR spatial UDT will be manufactured based on the spatial data contained in
  3642. <paramref name="value" />.
  3643. If <paramref name="value" /> is an instance of DbGeography/DbGeometry that was read from SQL Server by this provider, then the wrapped
  3644. CLR UDT value is available via the ProviderValue property (see SqlSpatialServices for the full conversion process from instances of
  3645. DbGeography/DbGeometry to instances of the CLR SqlGeography/SqlGeometry UDTs)
  3646. </summary>
  3647. </member>
  3648. <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@)">
  3649. <summary>
  3650. Determines SqlDbType for the given primitive type. Extracts facet
  3651. information as well.
  3652. </summary>
  3653. </member>
  3654. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetParameterSize(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean)">
  3655. <summary>
  3656. Determines preferred value for SqlParameter.Size. Returns null
  3657. where there is no preference.
  3658. </summary>
  3659. </member>
  3660. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetKatmaiDateTimePrecision(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Boolean)">
  3661. <summary>
  3662. Returns SqlParameter.Precision where the type facet exists. Otherwise,
  3663. returns null or the maximum available precision to avoid truncation (which can occur
  3664. for output parameters).
  3665. </summary>
  3666. </member>
  3667. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetParameterPrecision(System.Data.Entity.Core.Metadata.Edm.TypeUsage,System.Nullable{System.Byte})">
  3668. <summary>
  3669. Returns SqlParameter.Precision where the type facet exists. Otherwise,
  3670. returns null.
  3671. </summary>
  3672. </member>
  3673. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetScale(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3674. <summary>
  3675. Returns SqlParameter.Scale where the type facet exists. Otherwise,
  3676. returns null.
  3677. </summary>
  3678. </member>
  3679. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetStringDbType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3680. <summary>
  3681. Chooses the appropriate SqlDbType for the given string type.
  3682. </summary>
  3683. </member>
  3684. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetBinaryDbType(System.Data.Entity.Core.Metadata.Edm.TypeUsage)">
  3685. <summary>
  3686. Chooses the appropriate SqlDbType for the given binary type.
  3687. </summary>
  3688. </member>
  3689. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetExecutionStrategy">
  3690. <inheritdoc/>
  3691. </member>
  3692. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  3693. <summary>
  3694. Create the database and the database objects.
  3695. If initial catalog is not specified, but AttachDBFilename is specified, we generate a random database name based on the AttachDBFilename.
  3696. Note: this causes pollution of the db, as when the connection string is later used, the mdf will get attached under a different name.
  3697. However if we try to replicate the name under which it would be attached, the following scenario would fail:
  3698. The file does not exist, but registered with database.
  3699. The user calls: If (DatabaseExists) DeleteDatabase
  3700. CreateDatabase
  3701. For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
  3702. </summary>
  3703. </member>
  3704. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetLdfFileName(System.String)">
  3705. <summary>
  3706. Get the Ldf name given the Mdf full name
  3707. </summary>
  3708. </member>
  3709. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GenerateDatabaseName(System.String)">
  3710. <summary>
  3711. Generates database name based on the given mdfFileName.
  3712. The logic is replicated from System.Web.DataAccess.SqlConnectionHelper
  3713. </summary>
  3714. </member>
  3715. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.GetMdfFileName(System.String)">
  3716. <summary>
  3717. Get the full mdf file name given the attachDBFile value from the connection string
  3718. </summary>
  3719. <param name="attachDBFile"> </param>
  3720. <returns> </returns>
  3721. </member>
  3722. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbDatabaseExists(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  3723. <summary>
  3724. Determines whether the database for the given connection exists.
  3725. There are three cases:
  3726. 1. Initial Catalog = X, AttachDBFilename = null: (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
  3727. 2. Initial Catalog = X, AttachDBFilename = F: if (SELECT Count(*) FROM sys.databases WHERE [name]= X) > true,
  3728. if not, try to open the connection and then return (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
  3729. 3. Initial Catalog = null, AttachDBFilename = F: Try to open the connection. If that succeeds the result is true, otherwise
  3730. if the there are no databases corresponding to the given file return false, otherwise throw.
  3731. Note: We open the connection to cover the scenario when the mdf exists, but is not attached.
  3732. Given that opening the connection would auto-attach it, it would not be appropriate to return false in this case.
  3733. Also note that checking for the existence of the file does not work for a remote server. (Dev11 #290487)
  3734. For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
  3735. </summary>
  3736. </member>
  3737. <member name="M:System.Data.Entity.SqlServer.SqlProviderServices.DbDeleteDatabase(System.Data.Common.DbConnection,System.Nullable{System.Int32},System.Data.Entity.Core.Metadata.Edm.StoreItemCollection)">
  3738. <summary>
  3739. Delete the database for the given connection.
  3740. There are three cases:
  3741. 1. If Initial Catalog is specified (X) drop database X
  3742. 2. Else if AttachDBFilename is specified (F) drop all the databases corresponding to F
  3743. if none throw
  3744. 3. If niether the catalog not the file name is specified - throw
  3745. Note that directly deleting the files does not work for a remote server. However, even for not attached
  3746. databases the current logic would work assuming the user does: if (DatabaseExists) DeleteDatabase
  3747. </summary>
  3748. <param name="connection"> </param>
  3749. <param name="commandTimeout"> </param>
  3750. <param name="storeItemCollection"> </param>
  3751. </member>
  3752. <member name="P:System.Data.Entity.SqlServer.SqlProviderServices.Instance">
  3753. <summary>
  3754. The Singleton instance of the SqlProviderServices type.
  3755. </summary>
  3756. </member>
  3757. <member name="M:System.Data.Entity.SqlServer.SqlProviderUtilities.GetRequiredSqlConnection(System.Data.Common.DbConnection)">
  3758. <summary>
  3759. Requires that the given connection is of type T.
  3760. Returns the connection or throws.
  3761. </summary>
  3762. </member>
  3763. <member name="T:System.Data.Entity.SqlServer.SqlSpatialDataReader">
  3764. <summary>
  3765. SqlClient specific implementation of <see cref="T:System.Data.Entity.Spatial.DbSpatialDataReader"/>
  3766. </summary>
  3767. </member>
  3768. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeography(System.Int32)">
  3769. <inheritdoc/>
  3770. </member>
  3771. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.GetGeometry(System.Int32)">
  3772. <inheritdoc/>
  3773. </member>
  3774. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.IsGeographyColumn(System.Int32)">
  3775. <inheritdoc/>
  3776. </member>
  3777. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.IsGeometryColumn(System.Int32)">
  3778. <inheritdoc/>
  3779. </member>
  3780. <member name="M:System.Data.Entity.SqlServer.SqlSpatialDataReader.CreateBinaryReadDelegate(System.Type)">
  3781. <summary>
  3782. Builds and compiles the Expression equivalent of the following:
  3783. (BinaryReader r) => { var result = new SpatialType(); result.Read(r); return r; }
  3784. The construct/read pattern is preferred over casting the result of calling GetValue on the DataReader,
  3785. because constructing the value directly allows client code to specify the type, rather than SqlClient using
  3786. the server-specified assembly qualified type name from TDS to try to locate the correct type on the client.
  3787. </summary>
  3788. <param name="spatialType"> </param>
  3789. <returns> </returns>
  3790. </member>
  3791. <member name="T:System.Data.Entity.SqlServer.SqlTypesAssembly">
  3792. <summary>
  3793. SqlTypesAssembly allows for late binding to the capabilities of a specific version of the Microsoft.SqlServer.Types assembly
  3794. </summary>
  3795. </member>
  3796. <member name="M:System.Data.Entity.SqlServer.SqlTypesAssembly.#ctor">
  3797. <summary>
  3798. For testing.
  3799. </summary>
  3800. </member>
  3801. <member name="T:System.Data.Entity.SqlServer.SqlVersion">
  3802. <summary>
  3803. This enumeration describes the current SQL Server version.
  3804. </summary>
  3805. </member>
  3806. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql8">
  3807. <summary>
  3808. SQL Server 8 (2000).
  3809. </summary>
  3810. </member>
  3811. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql9">
  3812. <summary>
  3813. SQL Server 9 (2005).
  3814. </summary>
  3815. </member>
  3816. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql10">
  3817. <summary>
  3818. SQL Server 10 (2008).
  3819. </summary>
  3820. </member>
  3821. <member name="F:System.Data.Entity.SqlServer.SqlVersion.Sql11">
  3822. <summary>
  3823. SQL Server 11 (2012).
  3824. </summary>
  3825. </member>
  3826. </members>
  3827. </doc>