Ejemplo n.º 1
0
        //function overlooding TabAuthor
        public static PairModel Parse(DataSet1.TabAuthorRow uglyRow)
        {
            if (uglyRow == null)
            {
                return(null);
            }

            PairModel tempModel = new PairModel();

            tempModel.PairID   = uglyRow.AID.ToString();
            tempModel.PairName = uglyRow.AuthorName;

            return(tempModel);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get the value from TabAuthor
        /// </summary>
        /// <param name="AuthorRows">Name of the rows</param>
        /// <returns>Return the value from the rows selected</returns>
        public static TabAuthorModel Parse(DataSet1.TabAuthorRow AuthorRows)
        {
            if (AuthorRows == null)
            {
                return(null);
            }
            else
            {
                TabAuthorModel TabAuthor = new TabAuthorModel();
                TabAuthor.Aid        = AuthorRows.AID;
                TabAuthor.AuthorName = AuthorRows.AuthorName;

                return(TabAuthor);
            }
        }