Guest User

Untitled

a guest
Apr 21st, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.239
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10.  
  11. [assembly: System.Data.Mapping.EntityViewGenerationAttribute(typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF))]
  12.  
  13. namespace Edm_EntityMappingGeneratedViews
  14. {
  15.  
  16.  
  17. /// <Summary>
  18. /// The type contains views for EntitySets and AssociationSets that were generated at design time.
  19. /// </Summary>
  20. public sealed class ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF : System.Data.Mapping.EntityViewContainer
  21. {
  22.  
  23. /// <Summary>
  24. /// The constructor stores the views for the extents and also the hash values generated based on the metadata and mapping closure and views.
  25. /// </Summary>
  26. public ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF()
  27. {
  28. this.EdmEntityContainerName = "ModelDanychContainer";
  29. this.StoreEntityContainerName = "CompanyProductModelDanychStoreContainer";
  30. this.HashOverMappingClosure = "7bc8349f29c1617df9ae4d4cf911514fa390f1599239927abcf6cdf6b88a70b4";
  31. this.HashOverAllExtentViews = "824efeb9c67dc9116294d52dd4d62bae50c4ca011f93909a7c94b9ee7e6a589f";
  32. this.ViewCount = 1610;
  33. }
  34.  
  35. /// <Summary>
  36. /// The method returns the view for the index given.
  37. /// </Summary>
  38. protected override System.Collections.Generic.KeyValuePair<string, string> GetViewAt(int index)
  39. {
  40. if ((index == 0))
  41. {
  42. return GetView0();
  43. }
  44. if ((index == 1))
  45. {
  46. return GetView1();
  47. }
  48. // snip
  49. if ((index == 1608))
  50. {
  51. return GetView1608();
  52. }
  53. if ((index == 1609))
  54. {
  55. return GetView1609();
  56. }
  57. throw new System.IndexOutOfRangeException();
  58. }
  59.  
  60. // two example GetViewXXX() methods follow
  61.  
  62. /// <Summary>
  63. /// return view for CompanyProductModelDanychStoreContainer.PoziomyCen
  64. /// </Summary>
  65. private System.Collections.Generic.KeyValuePair<string, string> GetView0()
  66. {
  67. return new System.Collections.Generic.KeyValuePair<string, string>("CompanyProductModelDanychStoreContainer.PoziomyCen", @"
  68. SELECT VALUE -- Constructing PoziomyCen
  69. [Company.Product.ModelDanych.Store.PoziomyCen](T1.PoziomyCen_Id, T1.PoziomyCen_Symbol, T1.PoziomyCen_Nazwa, T1.PoziomyCen_Opis, T1.PoziomyCen_FunkcjaWyboruCennika, T1.PoziomyCen_FunkcjaWyliczaniaCenyBazowej, T1.PoziomyCen_Marza)
  70. FROM (
  71. SELECT
  72. T.Id AS PoziomyCen_Id,
  73. T.Symbol AS PoziomyCen_Symbol,
  74. T.Nazwa AS PoziomyCen_Nazwa,
  75. T.Opis AS PoziomyCen_Opis,
  76. T.FunkcjaWyboruCennika AS PoziomyCen_FunkcjaWyboruCennika,
  77. T.FunkcjaWyliczaniaCenyBazowej AS PoziomyCen_FunkcjaWyliczaniaCenyBazowej,
  78. T.Marza AS PoziomyCen_Marza,
  79. True AS _from0
  80. FROM ModelDanychContainer.PoziomyCen AS T
  81. ) AS T1");
  82. }
  83.  
  84. /// <Summary>
  85. /// return view for ModelDanychContainer.KategoriaDokumentBinarny
  86. /// </Summary>
  87. private System.Collections.Generic.KeyValuePair<string, string> GetView813()
  88. {
  89. return new System.Collections.Generic.KeyValuePair<string, string>("ModelDanychContainer.KategoriaDokumentBinarny", @"
  90. SELECT VALUE -- Constructing KategoriaDokumentBinarny
  91. [Company.Product.ModelDanych.KategoriaDokumentBinarny](T3.KategoriaDokumentBinarny_Kategoria, T3.KategoriaDokumentBinarny_DokumentBinarny)
  92. FROM (
  93. SELECT -- Constructing Kategoria
  94. CreateRef(ModelDanychContainer.Kategorie, row(T2.KategoriaDokumentBinarny_Kategoria_Id),[Company.Product.ModelDanych.Kategoria]) AS KategoriaDokumentBinarny_Kategoria,
  95. T2.KategoriaDokumentBinarny_DokumentBinarny
  96. FROM (
  97. SELECT -- Constructing DokumentBinarny
  98. CreateRef(ModelDanychContainer.DokumentyDane, row(T1.KategoriaDokumentBinarny_DokumentBinarny_Id),[Company.Product.ModelDanych.DokumentBinarny]) AS KategoriaDokumentBinarny_DokumentBinarny,
  99. T1.KategoriaDokumentBinarny_Kategoria_Id
  100. FROM (
  101. SELECT
  102. T.Kategoria_Id AS KategoriaDokumentBinarny_Kategoria_Id,
  103. T.Id AS KategoriaDokumentBinarny_DokumentBinarny_Id,
  104. True AS _from0
  105. FROM CompanyProductModelDanychStoreContainer.DokumentyDane_DokumentBinarny AS T
  106. ) AS T1
  107. ) AS T2
  108. ) AS T3");
  109. }
Add Comment
Please, Sign In to add comment