public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from c in context.FootnoteMainTables where c.FootnoteNo == FootnoteNo && c.MainTable == MainTable.TableId select c).First(); context.DeleteObject(f); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from cv in context.FootnoteContVbls where cv.FootnoteNo == FootnoteNo && cv.MainTable == MainTable.TableId && cv.Contents == Content.Content && cv.Variable == Variable.Variable select cv).First(); context.DeleteObject(f); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from fvalue in context.FootnoteValues where fvalue.FootnoteNo == FootnoteNo && fvalue.ValuePool == Value.ValuePool && fvalue.ValueCode == Value.ValueCode select fvalue).First(); context.DeleteObject(f); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from cfvalue in context.FootnoteContValues where cfvalue.FootnoteNo == FootnoteNo && cfvalue.MainTable == MainTable.TableId && cfvalue.Contents == Content.Content && cfvalue.Variable == Variable.Variable && cfvalue.ValuePool == Value.ValuePool && cfvalue.ValueCode == Value.ValueCode select cfvalue).First(); context.DeleteObject(f); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from fcontTime in context.FootnoteContTimes where fcontTime.FootnoteNo == FootnoteNo && fcontTime.MainTable == ContentTime.Content.MainTable.TableId && fcontTime.Contents == ContentTime.Content.Content && fcontTime.TimePeriod == ContentTime.TimePeriod select fcontTime).FirstOrDefault(); if (f != null) { context.DeleteObject(f); } }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var f = (from c in context.FootnoteContents where c.FootnoteNo == FootnoteNo && c.MainTable == MainTable.TableId && c.Contents == Content.Content select c).FirstOrDefault(); if (f != null) { context.DeleteObject(f); } }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); if (!IsNew) { foreach (var content in _contents) { content.DeleteEntities(context); } foreach (var variable in _variables) { variable.DeleteEntities(context); } var subTable_Eng = (from st in context.SubTable_Eng where st.MainTable == this.TableId && st.SubTable == "1" select st).FirstOrDefault(); if (subTable_Eng != null) { context.DeleteObject(subTable_Eng); } var subTable = (from st in context.SubTables where st.MainTable == this.TableId && st.SubTable1 == "1" select st).FirstOrDefault(); if (subTable != null) { context.DeleteObject(subTable); } foreach (var f in Footnotes) { f.DeleteEntities(context); } foreach (var mainTableValueFootnote in MainTableValueFootnotes) { mainTableValueFootnote.DeleteEntities(context); } foreach (var variable in _removedVariables) { variable.DeleteEntities(context); } foreach (var content in RemovedContents) { content.DeleteEntities(context); } foreach (var footnote in RemovedFootnotes) { footnote.DeleteEntities(context); } var mainTableEng = (from mte in context.MainTable_Eng where mte.MainTable == TableId select mte).FirstOrDefault(); if (mainTableEng != null) { context.DeleteObject(mainTableEng); } var mainTable = (from mt in context.MainTables where mt.MainTable1 == TableId select mt).FirstOrDefault(); if (mainTable != null) { context.DeleteObject(mainTable); } } }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { var fEng = (from c in context.Footnote_Eng where c.FootnoteNo == FootnoteNo select c).FirstOrDefault(); if (fEng != null) { context.DeleteObject(fEng); } var f = (from c in context.Footnotes where c.FootnoteNo == FootnoteNo select c).FirstOrDefault(); if (f != null) { context.DeleteObject(f); } }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); foreach (PxTimeFootnote timeFootnote in _timeFootnotes) { timeFootnote.DeleteEntities(context); } var contTime = (from ct in context.ContentsTimes where ct.Contents == Content.Content && ct.MainTable == Content.MainTable.TableId && ct.TimePeriod == TimePeriod select ct).First(); context.DeleteObject(contTime); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { var var = (from v in context.SubTableVariables where v.MainTable == MainTable.TableId && v.SubTable == "1" && v.Variable == Variable select v).First(); context.DeleteObject(var); }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { base.DeleteEntities(context); var menuSel_Eng = (from mse in context.MenuSelection_Eng where mse.Menu == Parent.Menu && mse.Selection == Menu select mse).FirstOrDefault(); if (menuSel_Eng != null) { context.DeleteObject(menuSel_Eng); } var menusel = (from ms in context.MenuSelections where ms.Menu == Parent.Menu && ms.Selection == Menu select ms).FirstOrDefault(); if (menusel != null) { context.DeleteObject(menusel); } }
public override void DeleteEntities(PxMetaModel.PcAxisMetabaseEntities context) { foreach (PxTime time in _time) { time.DeleteEntities(context); } foreach (PxContentFootnote contentFootnote in Footnotes) { contentFootnote.DeleteEntities(context); } foreach (PxContentVariableFootnote contentVariableFootnote in ContentVariableFootnotes) { contentVariableFootnote.DeleteEntities(context); } foreach (PxContentValueFootnote contentValueFootnote in ContentValueFootnotes) { contentValueFootnote.DeleteEntities(context); } foreach (PxContentVariableFootnote contentVariableFootnote in RemovedContentVariableFootnotes) { contentVariableFootnote.DeleteEntities(context); } foreach (PxContentFootnote contentFootnote in RemovedFootnotes) { contentFootnote.DeleteEntities(context); } foreach (PxContentValueFootnote contentValueFootnote in RemovedContentValueFootnotes) { contentValueFootnote.DeleteEntities(context); } var contEngToDel = (from c in context.Contents_Eng where c.Contents == Content && c.MainTable == MainTable.TableId select c).FirstOrDefault(); if (contEngToDel != null) { context.DeleteObject(contEngToDel); } var contToDel = (from c in context.Contents where c.Contents == Content && c.MainTable == MainTable.TableId select c).FirstOrDefault(); if (contToDel != null) { context.DeleteObject(contToDel); } }