Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.239
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- [assembly: System.Data.Mapping.EntityViewGenerationAttribute(typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF))]
- namespace Edm_EntityMappingGeneratedViews
- {
- /// <Summary>
- /// The type contains views for EntitySets and AssociationSets that were generated at design time.
- /// </Summary>
- public sealed class ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF : System.Data.Mapping.EntityViewContainer
- {
- /// <Summary>
- /// The constructor stores the views for the extents and also the hash values generated based on the metadata and mapping closure and views.
- /// </Summary>
- public ViewsForBaseEntitySets37360DAFC71ADC97583BF467086D3628581B4BE0E3929CD5D528B1757F4877CF()
- {
- this.EdmEntityContainerName = "ModelDanychContainer";
- this.StoreEntityContainerName = "CompanyProductModelDanychStoreContainer";
- this.HashOverMappingClosure = "7bc8349f29c1617df9ae4d4cf911514fa390f1599239927abcf6cdf6b88a70b4";
- this.HashOverAllExtentViews = "824efeb9c67dc9116294d52dd4d62bae50c4ca011f93909a7c94b9ee7e6a589f";
- this.ViewCount = 1610;
- }
- /// <Summary>
- /// The method returns the view for the index given.
- /// </Summary>
- protected override System.Collections.Generic.KeyValuePair<string, string> GetViewAt(int index)
- {
- if ((index == 0))
- {
- return GetView0();
- }
- if ((index == 1))
- {
- return GetView1();
- }
- // snip
- if ((index == 1608))
- {
- return GetView1608();
- }
- if ((index == 1609))
- {
- return GetView1609();
- }
- throw new System.IndexOutOfRangeException();
- }
- // two example GetViewXXX() methods follow
- /// <Summary>
- /// return view for CompanyProductModelDanychStoreContainer.PoziomyCen
- /// </Summary>
- private System.Collections.Generic.KeyValuePair<string, string> GetView0()
- {
- return new System.Collections.Generic.KeyValuePair<string, string>("CompanyProductModelDanychStoreContainer.PoziomyCen", @"
- SELECT VALUE -- Constructing PoziomyCen
- [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)
- FROM (
- SELECT
- T.Id AS PoziomyCen_Id,
- T.Symbol AS PoziomyCen_Symbol,
- T.Nazwa AS PoziomyCen_Nazwa,
- T.Opis AS PoziomyCen_Opis,
- T.FunkcjaWyboruCennika AS PoziomyCen_FunkcjaWyboruCennika,
- T.FunkcjaWyliczaniaCenyBazowej AS PoziomyCen_FunkcjaWyliczaniaCenyBazowej,
- T.Marza AS PoziomyCen_Marza,
- True AS _from0
- FROM ModelDanychContainer.PoziomyCen AS T
- ) AS T1");
- }
- /// <Summary>
- /// return view for ModelDanychContainer.KategoriaDokumentBinarny
- /// </Summary>
- private System.Collections.Generic.KeyValuePair<string, string> GetView813()
- {
- return new System.Collections.Generic.KeyValuePair<string, string>("ModelDanychContainer.KategoriaDokumentBinarny", @"
- SELECT VALUE -- Constructing KategoriaDokumentBinarny
- [Company.Product.ModelDanych.KategoriaDokumentBinarny](T3.KategoriaDokumentBinarny_Kategoria, T3.KategoriaDokumentBinarny_DokumentBinarny)
- FROM (
- SELECT -- Constructing Kategoria
- CreateRef(ModelDanychContainer.Kategorie, row(T2.KategoriaDokumentBinarny_Kategoria_Id),[Company.Product.ModelDanych.Kategoria]) AS KategoriaDokumentBinarny_Kategoria,
- T2.KategoriaDokumentBinarny_DokumentBinarny
- FROM (
- SELECT -- Constructing DokumentBinarny
- CreateRef(ModelDanychContainer.DokumentyDane, row(T1.KategoriaDokumentBinarny_DokumentBinarny_Id),[Company.Product.ModelDanych.DokumentBinarny]) AS KategoriaDokumentBinarny_DokumentBinarny,
- T1.KategoriaDokumentBinarny_Kategoria_Id
- FROM (
- SELECT
- T.Kategoria_Id AS KategoriaDokumentBinarny_Kategoria_Id,
- T.Id AS KategoriaDokumentBinarny_DokumentBinarny_Id,
- True AS _from0
- FROM CompanyProductModelDanychStoreContainer.DokumentyDane_DokumentBinarny AS T
- ) AS T1
- ) AS T2
- ) AS T3");
- }
Add Comment
Please, Sign In to add comment