コード例 #1
0
        public Store Get(int nID, int nStoreID)
        {
            Connection.Open();
            Command.CommandText = StoreDA.Get(nID, nStoreID);

            SqlDataReader reader  = Command.ExecuteReader();
            Store         _oStore = new Store();

            if (reader.HasRows)
            {
                _oStore = MakeObject(reader);
            }
            reader.Close();
            Connection.Close();
            return(_oStore);
        }