/// <summary> /// This method is used for selecting an object from the database /// </summary> /// <param name="associate">This is the Associate object that holds all information that is required so that the select should be made.</param> /// <param name="dbGenericEntity">This is the Associate Entity.</param> /// <returns></returns> public DataSet SelectInitialBudgetTest(IInitialBudget initialBudget, DBGenericEntity dbGenericEntity) { DataSet tableVerify = new DataSet(); tableVerify = dbGenericEntity.SelectObject(initialBudget) as DataSet; return(tableVerify); }
public DataSet SelectProjectFunctionTest(IProjectFunction projectFunction, DBGenericEntity dbGenericEntity) { DataSet tableVerify = new DataSet(); tableVerify = dbGenericEntity.SelectObject(projectFunction) as DataSet; return(tableVerify); }
public virtual DataRow SelectEntity() { try { DataSet objectDS = dbEntity.SelectObject(this); if (objectDS.Tables[0].Rows.Count == 0) { throw new IndException(ApplicationMessages.EXCEPTION_ENTITY_DOES_NOT_EXIST); } return(objectDS.Tables[0].Rows[0]); } catch (Exception ex) { throw new IndException(ex); } }
public DataSet SelectCurrentProjectTest(ICurrentProject currentProject, DBGenericEntity dbGenericEntity) { DataSet tableVerify = new DataSet(); tableVerify = dbGenericEntity.SelectObject(currentProject) as DataSet; return(tableVerify); }