protected override EntityBase CreateAndBuildEntity(DataHelper.Framework.SafeDataReader dr) { login_fiscal_year theEntity = new login_fiscal_year(); theEntity.FISCAL_YEAR = !dr.IsDBNull(0) ? dr.GetValue(0).ToString() : string.Empty; return(theEntity); }
protected override IDbDataParameter[] CreateSelectParameters(EntityBase anEntity) { login_fiscal_year theEntity = (login_fiscal_year)anEntity; List <IDbDataParameter> cmdParams = new List <IDbDataParameter>(); if (!string.IsNullOrEmpty(theEntity.FISCAL_YEAR)) { cmdParams.Add(DataAccessFactory.CreateDataParameter("VAR_FISCAL_YEAR", theEntity.FISCAL_YEAR)); } cmdParams.Add(DataAccessFactory.CreateDataParameter("Result", "")); return(cmdParams.ToArray()); }