private void DeleteDetail(EVarCalc entity, bool filterModified) { if (entity == null) return; IDOUpdate objDO = new RHDOMnt.VarCalcDet(); EVarCalcDet objE = new EVarCalcDet(); objE.IdVarCalc = entity.IdVarCalc; objDO.Delete(objE); }
private void UpdateDetail(IList<EVarCalcDet> col, object[] primKey) { if (col == null) return; IDOUpdate objDO = new RHDOMnt.VarCalcDet(); foreach (EVarCalcDet objE in col) { object[] objRet = null; if (primKey != null) { objE.IdVarCalc = primKey[0].ToString(); } switch (objE.EntityState) { case EntityState.Added: objRet = objDO.Insert(objE); break; } } }