//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System.Data.Entity.Infrastructure.MappingViews; [assembly: DbMappingViewCacheTypeAttribute( typeof(EgtBEAMWALL.DataLayer.DatabaseContext), typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySetsfdb76d063f9297700cade9fd62b725785df17f714df4e62e333cb38007596c7a))] namespace Edm_EntityMappingGeneratedViews { using System; using System.CodeDom.Compiler; using System.Data.Entity.Core.Metadata.Edm; /// /// Implements a mapping view cache. /// [GeneratedCode("Entity Framework 6 Power Tools", "0.9.2.0")] internal sealed class ViewsForBaseEntitySetsfdb76d063f9297700cade9fd62b725785df17f714df4e62e333cb38007596c7a : DbMappingViewCache { /// /// Gets a hash value computed over the mapping closure. /// public override string MappingHashValue { get { return "fdb76d063f9297700cade9fd62b725785df17f714df4e62e333cb38007596c7a"; } } /// /// Gets a view corresponding to the specified extent. /// /// The extent. /// The mapping view, or null if the extent is not associated with a mapping view. 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(); } return null; } /// /// Gets the view for CodeFirstDatabase.BTLPartModel. /// /// The mapping view. 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_DON, T1.BTLPartModel_GRP, T1.BTLPartModel_H, T1.BTLPartModel_L, T1.BTLPartModel_Material, T1.BTLPartModel_NAM, T1.BTLPartModel_Id, T1.BTLPartModel_PDN, T1.BTLPartModel_ProjDbId, T1.BTLPartModel_ROT, T1.BTLPartModel_TBP, T1.BTLPartModel_UNT, 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.DON AS BTLPartModel_DON, T.GRP AS BTLPartModel_GRP, 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.ROT AS BTLPartModel_ROT, T.TBP AS BTLPartModel_TBP, T.UNT AS BTLPartModel_UNT, T.W AS BTLPartModel_W, True AS _from0 FROM DatabaseContext.BTLPartList AS T ) AS T1"); } /// /// Gets the view for CodeFirstDatabase.ProjModel. /// /// The mapping view. 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) 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, True AS _from0 FROM DatabaseContext.ProjList AS T ) AS T1"); } /// /// Gets the view for CodeFirstDatabase.ProdModel. /// /// The mapping view. 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) 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, True AS _from0 FROM DatabaseContext.ProdList AS T ) AS T1"); } /// /// Gets the view for CodeFirstDatabase.MachGroupModel. /// /// The mapping view. private static DbMappingView GetView3() { return new DbMappingView(@" SELECT VALUE -- Constructing MachGroupModel [CodeFirstDatabaseSchema.MachGroupModel](T1.MachGroupModel_DbId, T1.MachGroupModel_Assign, T1.MachGroupModel_H, T1.MachGroupModel_L, T1.MachGroupModel_Lock, T1.MachGroupModel_LogRev, T1.MachGroupModel_Id, T1.MachGroupModel_Material, T1.MachGroupModel_Name, T1.MachGroupModel_Order, T1.MachGroupModel_ProdDbId, T1.MachGroupModel_State, T1.MachGroupModel_W) FROM ( SELECT T.MachGroupDbId AS MachGroupModel_DbId, T.Assign AS MachGroupModel_Assign, 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.[Order] AS MachGroupModel_Order, T.ProdDbId AS MachGroupModel_ProdDbId, CAST(T.State AS [Edm.Int32]) AS MachGroupModel_State, T.W AS MachGroupModel_W, True AS _from0 FROM DatabaseContext.MachGroupList AS T ) AS T1"); } /// /// Gets the view for CodeFirstDatabase.PartModel. /// /// The mapping view. private static DbMappingView GetView4() { return new DbMappingView(@" SELECT VALUE -- Constructing PartModel [CodeFirstDatabaseSchema.PartModel](T1.PartModel_DbId, T1.PartModel_BTLPartDbId, T1.PartModel_CalcState, 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.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"); } /// /// Gets the view for DatabaseContext.BTLPartList. /// /// The mapping view. 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_DON, T1.BTLPartModel_GRP, T1.BTLPartModel_H, T1.BTLPartModel_L, T1.BTLPartModel_Material, T1.BTLPartModel_NAM, T1.BTLPartModel_PartId, T1.BTLPartModel_PDN, T1.BTLPartModel_ProjDbId, T1.BTLPartModel_ROT, T1.BTLPartModel_TBP, T1.BTLPartModel_UNT, 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.DON AS BTLPartModel_DON, T.GRP AS BTLPartModel_GRP, 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.ROT AS BTLPartModel_ROT, T.TBP AS BTLPartModel_TBP, T.UNT AS BTLPartModel_UNT, T.W AS BTLPartModel_W, True AS _from0 FROM CodeFirstDatabase.BTLPartModel AS T ) AS T1"); } /// /// Gets the view for DatabaseContext.ProjList. /// /// The mapping view. 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) 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, True AS _from0 FROM CodeFirstDatabase.ProjModel AS T ) AS T1"); } /// /// Gets the view for DatabaseContext.ProdList. /// /// The mapping view. 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) 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, True AS _from0 FROM CodeFirstDatabase.ProdModel AS T ) AS T1"); } /// /// Gets the view for DatabaseContext.MachGroupList. /// /// The mapping view. private static DbMappingView GetView8() { return new DbMappingView(@" SELECT VALUE -- Constructing MachGroupList [EgtBEAMWALL.DataLayer.MachGroupModel](T1.MachGroupModel_MachGroupDbId, T1.MachGroupModel_Assign, T1.MachGroupModel_H, T1.MachGroupModel_L, T1.MachGroupModel_Locked, T1.MachGroupModel_LogRev, T1.MachGroupModel_MachGroupId, T1.MachGroupModel_Material, T1.MachGroupModel_Name, T1.MachGroupModel_Order, T1.MachGroupModel_ProdDbId, T1.MachGroupModel_State, T1.MachGroupModel_W) FROM ( SELECT T.DbId AS MachGroupModel_MachGroupDbId, T.Assign AS MachGroupModel_Assign, 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.[Order] AS MachGroupModel_Order, T.ProdDbId AS MachGroupModel_ProdDbId, CAST(T.State AS [EgtBEAMWALL.DataLayer.ItemState]) AS MachGroupModel_State, T.W AS MachGroupModel_W, True AS _from0 FROM CodeFirstDatabase.MachGroupModel AS T ) AS T1"); } /// /// Gets the view for DatabaseContext.PartList. /// /// The mapping view. 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_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.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"); } /// /// Gets the view for CodeFirstDatabase.LogMachineModel. /// /// The mapping view. private static DbMappingView GetView10() { return new DbMappingView(@" SELECT VALUE -- Constructing LogMachineModel [CodeFirstDatabaseSchema.LogMachineModel](T1.LogMachineModel_DbId, T1.LogMachineModel_CncFileName, T1.LogMachineModel_Description, T1.LogMachineModel_DtEvent, T1.LogMachineModel_DtExported, T1.LogMachineModel_EventType, T1.LogMachineModel_MachineId, T1.LogMachineModel_Message, T1.LogMachineModel_SN, T1.LogMachineModel_Value) FROM ( SELECT T.LogDbId AS LogMachineModel_DbId, T.CncFileName AS LogMachineModel_CncFileName, T.Description AS LogMachineModel_Description, T.DtEvent AS LogMachineModel_DtEvent, T.DtExported AS LogMachineModel_DtExported, CAST(T.EventType AS [Edm.Int32]) AS LogMachineModel_EventType, T.MachineId AS LogMachineModel_MachineId, T.Message AS LogMachineModel_Message, T.SN AS LogMachineModel_SN, T.[Value] AS LogMachineModel_Value, True AS _from0 FROM DatabaseContext.LogMachineList AS T ) AS T1"); } /// /// Gets the view for DatabaseContext.LogMachineList. /// /// The mapping view. private static DbMappingView GetView11() { return new DbMappingView(@" SELECT VALUE -- Constructing LogMachineList [EgtBEAMWALL.DataLayer.LogMachineModel](T1.LogMachineModel_LogDbId, T1.LogMachineModel_CncFileName, T1.LogMachineModel_Description, T1.LogMachineModel_DtEvent, T1.LogMachineModel_DtExported, T1.LogMachineModel_EventType, T1.LogMachineModel_MachineId, T1.LogMachineModel_Message, T1.LogMachineModel_SN, T1.LogMachineModel_Value) FROM ( SELECT T.DbId AS LogMachineModel_LogDbId, T.CncFileName AS LogMachineModel_CncFileName, T.Description AS LogMachineModel_Description, T.DtEvent AS LogMachineModel_DtEvent, T.DtExported AS LogMachineModel_DtExported, CAST(T.EventType AS [EgtBEAMWALL.DataLayer.EventType]) AS LogMachineModel_EventType, T.MachineId AS LogMachineModel_MachineId, T.Message AS LogMachineModel_Message, T.SN AS LogMachineModel_SN, T.[Value] AS LogMachineModel_Value, True AS _from0 FROM CodeFirstDatabase.LogMachineModel AS T ) AS T1"); } /// /// Gets the view for CodeFirstDatabase.LogSupportModel. /// /// The mapping view. 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"); } /// /// Gets the view for DatabaseContext.LogSupportList. /// /// The mapping view. 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"); } } }