private void buildDA(int objectTypeId) { ObjectTypeDA objectTypeDA = new ObjectTypeDA(); ObjectTypeEntity entity = objectTypeDA.get(objectTypeId); string name = entity.Tables[entity.FilledTableName].Rows[0][ObjectTypeEntity.FIELD_OBJECT_TYPE_NAME].ToString(); _abstractDA = (AbstractDAL)ClassFactory.createDAL(name); }
private void buildDA(String objectTypeName) { _abstractDA = (AbstractDAL)ClassFactory.createDAL(objectTypeName); }