public bool is_there_relationship() { using (OGMContext db = new OGMContext()) { if (db.relationships_organization_leasing_contract.Where(r => r.PK_Organization == PK_Organization).Count() > 0) { return(true); } return(false); } }
public bool is_there_any_row() { using (OGMContext db = new OGMContext()) { if (db.DebitEquipments.Where(d => d.PK_Reason_Debit == PK_Reason_Debit).Count() > 0) { return(true); } return(false); } }
public bool is_there_group() { using (OGMContext db = new OGMContext()) { if (db.EquipmentGroups.Where(g => g.PK_Workshop == PK_Workshop).Count() > 0) { return(true); } return(false); } }
public bool is_there_relationships() { using (OGMContext db = new OGMContext()) { if (db.Equipments.Where(g => g.PK_Equipment_Group == PK_Equipment_Group).Count() > 0 || db.RowsAttachmentSpecification.Where(g => g.PK_Equipment_Group == PK_Equipment_Group).Count() > 0 || db.DebitEquipments.Where(g => g.PK_Equipment_Group == PK_Equipment_Group).Count() > 0) { return(true); } return(false); } }