private ArrayList BuildParamInterface(EPerFoto value) { ArrayList arrPrm = new ArrayList(); arrPrm.Add(DataHelper.CreateParameter("@pidEmpresa", SqlDbType.Char, 3, value.IdEmpresa)); arrPrm.Add(DataHelper.CreateParameter("@pidPersonal", SqlDbType.Char, 7, value.IdPersonal)); return arrPrm; }
private void UpdateDetailC(EPerFoto objE, object[] primKey) { if (objE == null) return; IDOUpdate objDO = new RHDOMnt.PerFoto(); object[] objRet = null; if (primKey != null) { objE.IdPersonal = primKey[0].ToString(); } switch (objE.EntityState) { case EntityState.Added: objRet = objDO.Insert(objE); break; case EntityState.Modified: objDO.Update(objE); break; } }
private ArrayList BuildParamInterface(EPerFoto value) { ArrayList arrPrm = new ArrayList(); arrPrm.Add(DataHelper.CreateParameter("@pidEmpresa", SqlDbType.Char, 3, value.IdEmpresa)); arrPrm.Add(DataHelper.CreateParameter("@pidPersonal", SqlDbType.Char, 7, value.IdPersonal)); arrPrm.Add(DataHelper.CreateParameter("@pdsNombreArch", SqlDbType.VarChar, 100, value.DsNombreArch)); arrPrm.Add(DataHelper.CreateParameter("@pidFotografia", SqlDbType.VarBinary,int.MaxValue, value.IdFotografia)); return arrPrm; }