コード例 #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="SALSalesLineBatchPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class SALSalesLineBatch</returns>
        public SALSalesLineBatch SelectOne(SALSalesLineBatchPrimaryKey pk)
        {
            _sALSalesLineBatchWCF = new SALSalesLineBatch();
            _sALSalesLineBatch    = POS.DataLayer.SALSalesLineBatchBase.SelectOne(new POS.DataLayer.SALSalesLineBatchPrimaryKey(pk.SalesLineBatchID));

            _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
            _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
            _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

            return(_sALSalesLineBatchWCF);
        }
コード例 #2
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="SALSalesLineBatchPrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(SALSalesLineBatchPrimaryKey pk)
 {
     return(POS.DataLayer.SALSalesLineBatchBase.Delete(new POS.DataLayer.SALSalesLineBatchPrimaryKey(pk.SalesLineBatchID)));
 }