//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System.Data.Entity.Infrastructure.MappingViews;

[assembly: DbMappingViewCacheTypeAttribute(
    typeof(EgtBEAMWALL.DataLayer.DatabaseContext),
    typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySets47a6a51e27ee277e915fd1421f83fa2aae50563a874ec88b922716849579f599))]

namespace Edm_EntityMappingGeneratedViews
{
    using System;
    using System.CodeDom.Compiler;
    using System.Data.Entity.Core.Metadata.Edm;

    /// <summary>
    /// Implements a mapping view cache.
    /// </summary>
    [GeneratedCode("Entity Framework 6 Power Tools", "0.9.2.0")]
    internal sealed class ViewsForBaseEntitySets47a6a51e27ee277e915fd1421f83fa2aae50563a874ec88b922716849579f599 : DbMappingViewCache
    {
        /// <summary>
        /// Gets a hash value computed over the mapping closure.
        /// </summary>
        public override string MappingHashValue
        {
            get { return "47a6a51e27ee277e915fd1421f83fa2aae50563a874ec88b922716849579f599"; }
        }

        /// <summary>
        /// Gets a view corresponding to the specified extent.
        /// </summary>
        /// <param name="extent">The extent.</param>
        /// <returns>The mapping view, or null if the extent is not associated with a mapping view.</returns>
        public override DbMappingView GetView(EntitySetBase extent)
        {
            if (extent == null)
            {
                throw new ArgumentNullException("extent");
            }

            var extentName = extent.EntityContainer.Name + "." + extent.Name;

            if (extentName == "CodeFirstDatabase.BTLPartModel")
            {
                return GetView0();
            }

            if (extentName == "CodeFirstDatabase.ProjModel")
            {
                return GetView1();
            }

            if (extentName == "CodeFirstDatabase.ProdModel")
            {
                return GetView2();
            }

            if (extentName == "CodeFirstDatabase.MachGroupModel")
            {
                return GetView3();
            }

            if (extentName == "CodeFirstDatabase.PartModel")
            {
                return GetView4();
            }

            if (extentName == "DatabaseContext.BTLPartList")
            {
                return GetView5();
            }

            if (extentName == "DatabaseContext.ProjList")
            {
                return GetView6();
            }

            if (extentName == "DatabaseContext.ProdList")
            {
                return GetView7();
            }

            if (extentName == "DatabaseContext.MachGroupList")
            {
                return GetView8();
            }

            if (extentName == "DatabaseContext.PartList")
            {
                return GetView9();
            }

            if (extentName == "CodeFirstDatabase.LogMachineModel")
            {
                return GetView10();
            }

            if (extentName == "DatabaseContext.LogMachineList")
            {
                return GetView11();
            }

            if (extentName == "CodeFirstDatabase.LogSupportModel")
            {
                return GetView12();
            }

            if (extentName == "DatabaseContext.LogSupportList")
            {
                return GetView13();
            }

            if (extentName == "CodeFirstDatabase.StatusMapModel")
            {
                return GetView14();
            }

            if (extentName == "DatabaseContext.StatusMapList")
            {
                return GetView15();
            }

            return null;
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.BTLPartModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView0()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing BTLPartModel
        [CodeFirstDatabaseSchema.BTLPartModel](T1.BTLPartModel_DbId, T1.BTLPartModel_CalcState, T1.BTLPartModel_CNT, T1.BTLPartModel_DO, T1.BTLPartModel_H, T1.BTLPartModel_L, T1.BTLPartModel_Material, T1.BTLPartModel_NAM, T1.BTLPartModel_Id, T1.BTLPartModel_PDN, T1.BTLPartModel_ProjDbId, T1.BTLPartModel_W)
    FROM (
        SELECT 
            T.BTLPartDbId AS BTLPartModel_DbId, 
            T.CALC_State AS BTLPartModel_CalcState, 
            T.CNT AS BTLPartModel_CNT, 
            T.DO AS BTLPartModel_DO, 
            T.H AS BTLPartModel_H, 
            T.L AS BTLPartModel_L, 
            T.Material AS BTLPartModel_Material, 
            T.NAM AS BTLPartModel_NAM, 
            T.PartId AS BTLPartModel_Id, 
            T.PDN AS BTLPartModel_PDN, 
            T.ProjDbId AS BTLPartModel_ProjDbId, 
            T.W AS BTLPartModel_W, 
            True AS _from0
        FROM DatabaseContext.BTLPartList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.ProjModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView1()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing ProjModel
        [CodeFirstDatabaseSchema.ProjModel](T1.ProjModel_ProjDbId, T1.ProjModel_BTLFileName, T1.ProjModel_DtCreated, T1.ProjModel_DtExported, T1.ProjModel_IsNew, T1.ProjModel_ListName, T1.ProjModel_Lock, T1.ProjModel_ProdDbId, T1.ProjModel_Id, T1.ProjModel_PType)
    FROM (
        SELECT 
            T.ProjDbId AS ProjModel_ProjDbId, 
            T.BTLFileName AS ProjModel_BTLFileName, 
            T.DtCreated AS ProjModel_DtCreated, 
            T.DtExported AS ProjModel_DtExported, 
            T.IsNew AS ProjModel_IsNew, 
            T.ListName AS ProjModel_ListName, 
            T.Locked AS ProjModel_Lock, 
            T.ProdDbId AS ProjModel_ProdDbId, 
            T.ProjId AS ProjModel_Id, 
            CAST(T.PType AS [Edm.Int32]) AS ProjModel_PType, 
            True AS _from0
        FROM DatabaseContext.ProjList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.ProdModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView2()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing ProdModel
        [CodeFirstDatabaseSchema.ProdModel](T1.ProdModel_ProdDbId, T1.ProdModel_Description, T1.ProdModel_DtCreated, T1.ProdModel_IsNew, T1.ProdModel_Lock, T1.ProdModel_Id, T1.ProdModel_PType)
    FROM (
        SELECT 
            T.ProdDbId AS ProdModel_ProdDbId, 
            T.Description AS ProdModel_Description, 
            T.DtCreated AS ProdModel_DtCreated, 
            T.IsNew AS ProdModel_IsNew, 
            T.Locked AS ProdModel_Lock, 
            T.ProdId AS ProdModel_Id, 
            CAST(T.PType AS [Edm.Int32]) AS ProdModel_PType, 
            True AS _from0
        FROM DatabaseContext.ProdList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.MachGroupModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView3()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing MachGroupModel
        [CodeFirstDatabaseSchema.MachGroupModel](T1.MachGroupModel_DbId, T1.MachGroupModel_DtEnd, T1.MachGroupModel_DtStart, T1.MachGroupModel_H, T1.MachGroupModel_L, T1.MachGroupModel_Lock, T1.MachGroupModel_LogRev, T1.MachGroupModel_Id, T1.MachGroupModel_Material, T1.MachGroupModel_Name, T1.MachGroupModel_ProdDbId, T1.MachGroupModel_ProdIndex, T1.MachGroupModel_State, T1.MachGroupModel_SupervisorId, T1.MachGroupModel_W)
    FROM (
        SELECT 
            T.MachGroupDbId AS MachGroupModel_DbId, 
            T.DtEnd AS MachGroupModel_DtEnd, 
            T.DtStart AS MachGroupModel_DtStart, 
            T.H AS MachGroupModel_H, 
            T.L AS MachGroupModel_L, 
            T.Locked AS MachGroupModel_Lock, 
            T.LogRev AS MachGroupModel_LogRev, 
            T.MachGroupId AS MachGroupModel_Id, 
            T.Material AS MachGroupModel_Material, 
            T.Name AS MachGroupModel_Name, 
            T.ProdDbId AS MachGroupModel_ProdDbId, 
            T.ProdIndex AS MachGroupModel_ProdIndex, 
            CAST(T.State AS [Edm.Int32]) AS MachGroupModel_State, 
            T.SupervisorId AS MachGroupModel_SupervisorId, 
            T.W AS MachGroupModel_W, 
            True AS _from0
        FROM DatabaseContext.MachGroupList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.PartModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView4()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing PartModel
        [CodeFirstDatabaseSchema.PartModel](T1.PartModel_DbId, T1.PartModel_BTLPartDbId, T1.PartModel_CalcState, T1.PartModel_DtEnd, T1.PartModel_DtStart, T1.PartModel_GRP, T1.PartModel_H, T1.PartModel_L, T1.PartModel_MachGroupDbId, T1.PartModel_Material, T1.PartModel_NAM, T1.PartModel_Id, T1.PartModel_PDN, T1.PartModel_ROT, T1.PartModel_State, T1.PartModel_W)
    FROM (
        SELECT 
            T.PartDbId AS PartModel_DbId, 
            T.BTLPartDbId AS PartModel_BTLPartDbId, 
            T.CALC_State AS PartModel_CalcState, 
            T.DtEnd AS PartModel_DtEnd, 
            T.DtStart AS PartModel_DtStart, 
            T.GRP AS PartModel_GRP, 
            T.H AS PartModel_H, 
            T.L AS PartModel_L, 
            T.MachGroupDbId AS PartModel_MachGroupDbId, 
            T.Material AS PartModel_Material, 
            T.NAM AS PartModel_NAM, 
            T.PartId AS PartModel_Id, 
            T.PDN AS PartModel_PDN, 
            T.ROT AS PartModel_ROT, 
            CAST(T.State AS [Edm.Int32]) AS PartModel_State, 
            T.W AS PartModel_W, 
            True AS _from0
        FROM DatabaseContext.PartList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.BTLPartList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView5()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing BTLPartList
        [EgtBEAMWALL.DataLayer.BTLPartModel](T1.BTLPartModel_BTLPartDbId, T1.[BTLPartModel.CALC_State], T1.BTLPartModel_CNT, T1.BTLPartModel_DO, T1.BTLPartModel_H, T1.BTLPartModel_L, T1.BTLPartModel_Material, T1.BTLPartModel_NAM, T1.BTLPartModel_PartId, T1.BTLPartModel_PDN, T1.BTLPartModel_ProjDbId, T1.BTLPartModel_W)
    FROM (
        SELECT 
            T.DbId AS BTLPartModel_BTLPartDbId, 
            T.CalcState AS [BTLPartModel.CALC_State], 
            T.CNT AS BTLPartModel_CNT, 
            T.DO AS BTLPartModel_DO, 
            T.H AS BTLPartModel_H, 
            T.L AS BTLPartModel_L, 
            T.Material AS BTLPartModel_Material, 
            T.NAM AS BTLPartModel_NAM, 
            T.Id AS BTLPartModel_PartId, 
            T.PDN AS BTLPartModel_PDN, 
            T.ProjDbId AS BTLPartModel_ProjDbId, 
            T.W AS BTLPartModel_W, 
            True AS _from0
        FROM CodeFirstDatabase.BTLPartModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.ProjList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView6()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing ProjList
        [EgtBEAMWALL.DataLayer.ProjModel](T1.ProjModel_ProjDbId, T1.ProjModel_BTLFileName, T1.ProjModel_DtCreated, T1.ProjModel_DtExported, T1.ProjModel_IsNew, T1.ProjModel_ListName, T1.ProjModel_Locked, T1.ProjModel_ProdDbId, T1.ProjModel_ProjId, T1.ProjModel_PType)
    FROM (
        SELECT 
            T.ProjDbId AS ProjModel_ProjDbId, 
            T.BTLFileName AS ProjModel_BTLFileName, 
            T.DtCreated AS ProjModel_DtCreated, 
            T.DtExported AS ProjModel_DtExported, 
            T.IsNew AS ProjModel_IsNew, 
            T.ListName AS ProjModel_ListName, 
            T.Lock AS ProjModel_Locked, 
            T.ProdDbId AS ProjModel_ProdDbId, 
            T.Id AS ProjModel_ProjId, 
            CAST(T.PType AS [EgtBEAMWALL.DataLayer.BWType]) AS ProjModel_PType, 
            True AS _from0
        FROM CodeFirstDatabase.ProjModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.ProdList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView7()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing ProdList
        [EgtBEAMWALL.DataLayer.ProdModel](T1.ProdModel_ProdDbId, T1.ProdModel_Description, T1.ProdModel_DtCreated, T1.ProdModel_IsNew, T1.ProdModel_Locked, T1.ProdModel_ProdId, T1.ProdModel_PType)
    FROM (
        SELECT 
            T.ProdDbId AS ProdModel_ProdDbId, 
            T.Description AS ProdModel_Description, 
            T.DtCreated AS ProdModel_DtCreated, 
            T.IsNew AS ProdModel_IsNew, 
            T.Lock AS ProdModel_Locked, 
            T.Id AS ProdModel_ProdId, 
            CAST(T.PType AS [EgtBEAMWALL.DataLayer.BWType]) AS ProdModel_PType, 
            True AS _from0
        FROM CodeFirstDatabase.ProdModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.MachGroupList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView8()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing MachGroupList
        [EgtBEAMWALL.DataLayer.MachGroupModel](T1.MachGroupModel_MachGroupDbId, T1.MachGroupModel_DtEnd, T1.MachGroupModel_DtStart, T1.MachGroupModel_H, T1.MachGroupModel_L, T1.MachGroupModel_Locked, T1.MachGroupModel_LogRev, T1.MachGroupModel_MachGroupId, T1.MachGroupModel_Material, T1.MachGroupModel_Name, T1.MachGroupModel_ProdDbId, T1.MachGroupModel_ProdIndex, T1.MachGroupModel_State, T1.MachGroupModel_SupervisorId, T1.MachGroupModel_W)
    FROM (
        SELECT 
            T.DbId AS MachGroupModel_MachGroupDbId, 
            T.DtEnd AS MachGroupModel_DtEnd, 
            T.DtStart AS MachGroupModel_DtStart, 
            T.H AS MachGroupModel_H, 
            T.L AS MachGroupModel_L, 
            T.Lock AS MachGroupModel_Locked, 
            T.LogRev AS MachGroupModel_LogRev, 
            T.Id AS MachGroupModel_MachGroupId, 
            T.Material AS MachGroupModel_Material, 
            T.Name AS MachGroupModel_Name, 
            T.ProdDbId AS MachGroupModel_ProdDbId, 
            T.ProdIndex AS MachGroupModel_ProdIndex, 
            CAST(T.State AS [EgtBEAMWALL.DataLayer.ItemState]) AS MachGroupModel_State, 
            T.SupervisorId AS MachGroupModel_SupervisorId, 
            T.W AS MachGroupModel_W, 
            True AS _from0
        FROM CodeFirstDatabase.MachGroupModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.PartList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView9()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing PartList
        [EgtBEAMWALL.DataLayer.PartModel](T1.PartModel_PartDbId, T1.PartModel_BTLPartDbId, T1.[PartModel.CALC_State], T1.PartModel_DtEnd, T1.PartModel_DtStart, T1.PartModel_GRP, T1.PartModel_H, T1.PartModel_L, T1.PartModel_MachGroupDbId, T1.PartModel_Material, T1.PartModel_NAM, T1.PartModel_PartId, T1.PartModel_PDN, T1.PartModel_ROT, T1.PartModel_State, T1.PartModel_W)
    FROM (
        SELECT 
            T.DbId AS PartModel_PartDbId, 
            T.BTLPartDbId AS PartModel_BTLPartDbId, 
            T.CalcState AS [PartModel.CALC_State], 
            T.DtEnd AS PartModel_DtEnd, 
            T.DtStart AS PartModel_DtStart, 
            T.GRP AS PartModel_GRP, 
            T.H AS PartModel_H, 
            T.L AS PartModel_L, 
            T.MachGroupDbId AS PartModel_MachGroupDbId, 
            T.Material AS PartModel_Material, 
            T.NAM AS PartModel_NAM, 
            T.Id AS PartModel_PartId, 
            T.PDN AS PartModel_PDN, 
            T.ROT AS PartModel_ROT, 
            CAST(T.State AS [EgtBEAMWALL.DataLayer.ItemState]) AS PartModel_State, 
            T.W AS PartModel_W, 
            True AS _from0
        FROM CodeFirstDatabase.PartModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.LogMachineModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView10()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing LogMachineModel
        [CodeFirstDatabaseSchema.LogMachineModel](T1.LogMachineModel_DbId, T1.LogMachineModel_AlarmCode, T1.LogMachineModel_AlarmDtEvent, T1.LogMachineModel_AlarmMessage, T1.LogMachineModel_AlarmOperation, T1.LogMachineModel_AlarmType, T1.LogMachineModel_CommExecuted, T1.LogMachineModel_CommandState, T1.LogMachineModel_CommandType, T1.LogMachineModel_Description, T1.LogMachineModel_NewOpState, T1.LogMachineModel_ResultType, T1.LogMachineModel_VarAddress, T1.LogMachineModel_VarValue)
    FROM (
        SELECT 
            T.LogDbId AS LogMachineModel_DbId, 
            T.AlarmCode AS LogMachineModel_AlarmCode, 
            T.AlarmDatetime AS LogMachineModel_AlarmDtEvent, 
            T.AlarmMessage AS LogMachineModel_AlarmMessage, 
            T.AlarmOperation AS LogMachineModel_AlarmOperation, 
            T.AlarmType AS LogMachineModel_AlarmType, 
            T.CommandExecutedCorrectly AS LogMachineModel_CommExecuted, 
            CAST(T.CommandState AS [Edm.Int32]) AS LogMachineModel_CommandState, 
            CAST(T.CommandType AS [Edm.Int32]) AS LogMachineModel_CommandType, 
            T.Description AS LogMachineModel_Description, 
            T.NewOpState AS LogMachineModel_NewOpState, 
            CAST(T.ResultType AS [Edm.Int32]) AS LogMachineModel_ResultType, 
            T.VarAddress AS LogMachineModel_VarAddress, 
            T.VarValue AS LogMachineModel_VarValue, 
            True AS _from0
        FROM DatabaseContext.LogMachineList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.LogMachineList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView11()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing LogMachineList
        [EgtBEAMWALL.DataLayer.LogMachineModel](T1.LogMachineModel_LogDbId, T1.LogMachineModel_AlarmCode, T1.LogMachineModel_AlarmDatetime, T1.LogMachineModel_AlarmMessage, T1.LogMachineModel_AlarmOperation, T1.LogMachineModel_AlarmType, T1.LogMachineModel_CommandExecutedCorrectly, T1.LogMachineModel_CommandState, T1.LogMachineModel_CommandType, T1.LogMachineModel_Description, T1.LogMachineModel_NewOpState, T1.LogMachineModel_ResultType, T1.LogMachineModel_VarAddress, T1.LogMachineModel_VarValue)
    FROM (
        SELECT 
            T.DbId AS LogMachineModel_LogDbId, 
            T.AlarmCode AS LogMachineModel_AlarmCode, 
            T.AlarmDtEvent AS LogMachineModel_AlarmDatetime, 
            T.AlarmMessage AS LogMachineModel_AlarmMessage, 
            T.AlarmOperation AS LogMachineModel_AlarmOperation, 
            T.AlarmType AS LogMachineModel_AlarmType, 
            T.CommExecuted AS LogMachineModel_CommandExecutedCorrectly, 
            CAST(T.CommandState AS [EgtBEAMWALL.DataLayer.CommandStates]) AS LogMachineModel_CommandState, 
            CAST(T.CommandType AS [EgtBEAMWALL.DataLayer.LogCommandTypes]) AS LogMachineModel_CommandType, 
            T.Description AS LogMachineModel_Description, 
            T.NewOpState AS LogMachineModel_NewOpState, 
            CAST(T.ResultType AS [EgtBEAMWALL.DataLayer.ResultTypes]) AS LogMachineModel_ResultType, 
            T.VarAddress AS LogMachineModel_VarAddress, 
            T.VarValue AS LogMachineModel_VarValue, 
            True AS _from0
        FROM CodeFirstDatabase.LogMachineModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.LogSupportModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView12()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing LogSupportModel
        [CodeFirstDatabaseSchema.LogSupportModel](T1.LogSupportModel_DbId, T1.LogSupportModel_DtEvent, T1.LogSupportModel_Level, T1.LogSupportModel_Message, T1.LogSupportModel_Target)
    FROM (
        SELECT 
            T.LogDbId AS LogSupportModel_DbId, 
            T.DtEvent AS LogSupportModel_DtEvent, 
            CAST(T.Level AS [Edm.Int32]) AS LogSupportModel_Level, 
            T.Message AS LogSupportModel_Message, 
            CAST(T.Target AS [Edm.Int32]) AS LogSupportModel_Target, 
            True AS _from0
        FROM DatabaseContext.LogSupportList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.LogSupportList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView13()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing LogSupportList
        [EgtBEAMWALL.DataLayer.LogSupportModel](T1.LogSupportModel_LogDbId, T1.LogSupportModel_DtEvent, T1.LogSupportModel_Level, T1.LogSupportModel_Message, T1.LogSupportModel_Target)
    FROM (
        SELECT 
            T.DbId AS LogSupportModel_LogDbId, 
            T.DtEvent AS LogSupportModel_DtEvent, 
            CAST(T.Level AS [EgtBEAMWALL.DataLayer.LogSupportLevel]) AS LogSupportModel_Level, 
            T.Message AS LogSupportModel_Message, 
            CAST(T.Target AS [EgtBEAMWALL.DataLayer.LogSupportTarget]) AS LogSupportModel_Target, 
            True AS _from0
        FROM CodeFirstDatabase.LogSupportModel AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for CodeFirstDatabase.StatusMapModel.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView14()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing StatusMapModel
        [CodeFirstDatabaseSchema.StatusMapModel](T1.StatusMapModel_DbId, T1.StatusMapModel_DtEvent, T1.StatusMapModel_Index, T1.StatusMapModel_Id, T1.StatusMapModel_ItemType, T1.StatusMapModel_Operation, T1.StatusMapModel_Session, T1.StatusMapModel_Val)
    FROM (
        SELECT 
            T.StatusId AS StatusMapModel_DbId, 
            T.DtEvent AS StatusMapModel_DtEvent, 
            T.Index AS StatusMapModel_Index, 
            T.ItemId AS StatusMapModel_Id, 
            CAST(T.ItemType AS [Edm.Int32]) AS StatusMapModel_ItemType, 
            CAST(T.Operation AS [Edm.Int32]) AS StatusMapModel_Operation, 
            T.Session AS StatusMapModel_Session, 
            T.Val AS StatusMapModel_Val, 
            True AS _from0
        FROM DatabaseContext.StatusMapList AS T
    ) AS T1");
        }

        /// <summary>
        /// Gets the view for DatabaseContext.StatusMapList.
        /// </summary>
        /// <returns>The mapping view.</returns>
        private static DbMappingView GetView15()
        {
            return new DbMappingView(@"
    SELECT VALUE -- Constructing StatusMapList
        [EgtBEAMWALL.DataLayer.StatusMapModel](T1.StatusMapModel_StatusId, T1.StatusMapModel_DtEvent, T1.StatusMapModel_Index, T1.StatusMapModel_ItemId, T1.StatusMapModel_ItemType, T1.StatusMapModel_Operation, T1.StatusMapModel_Session, T1.StatusMapModel_Val)
    FROM (
        SELECT 
            T.DbId AS StatusMapModel_StatusId, 
            T.DtEvent AS StatusMapModel_DtEvent, 
            T.Index AS StatusMapModel_Index, 
            T.Id AS StatusMapModel_ItemId, 
            CAST(T.ItemType AS [EgtBEAMWALL.DataLayer.StatusMapItemType]) AS StatusMapModel_ItemType, 
            CAST(T.Operation AS [EgtBEAMWALL.DataLayer.StatusMapOpType]) AS StatusMapModel_Operation, 
            T.Session AS StatusMapModel_Session, 
            T.Val AS StatusMapModel_Val, 
            True AS _from0
        FROM CodeFirstDatabase.StatusMapModel AS T
    ) AS T1");
        }
    }
}
