public Core.Business.InstrumentProductedAreaClass Select(Guid id)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, id);
            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectInstrumentProductedAreaClass");

            if (reader != null && !reader.IsClosed && reader.Read())
            {
                Core.Business.InstrumentProductedAreaClass instrumentProductedAreaClass = new Core.Business.InstrumentProductedAreaClass();

                if (!reader.IsDBNull(0)) instrumentProductedAreaClass.Id = reader.GetGuid(0);
                if (!reader.IsDBNull(1)) instrumentProductedAreaClass.Name = reader.GetString(1);

                reader.Close();
                return instrumentProductedAreaClass;
            }
            else
            {
                if (reader != null && !reader.IsClosed)
                    reader.Close();

                return null;
            }
        }
        public IList<Core.Business.InstrumentProductedAreaClass> GetAllInstrumentProductedAreaClass()
        {
            IList<Core.Business.InstrumentProductedAreaClass> instrumentProductedAreaClasslist = new List<Core.Business.InstrumentProductedAreaClass>();
            SqlServerUtility sql = new SqlServerUtility();

            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectInstrumentProductedAreaClassesAll");

            if(reader != null)
            {
                while(reader.Read())
                {
                    Core.Business.InstrumentProductedAreaClass instrumentProductedAreaClass = new Core.Business.InstrumentProductedAreaClass();

                    if (!reader.IsDBNull(0)) instrumentProductedAreaClass.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) instrumentProductedAreaClass.Name = reader.GetString(1);

                    instrumentProductedAreaClass.MarkOld();
                    instrumentProductedAreaClasslist.Add(instrumentProductedAreaClass);
                }
                reader.Close();
            }
            return instrumentProductedAreaClasslist;
        }