示例#1
0
        public static Arstgetlistcriteria BuildArstgetlistcriteriaFromRow(DataRow row)
        {
            Arstgetlistcriteria entity = new Arstgetlistcriteria();

            entity.custno    = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.shiptogrp = row.IsNull("shiptogrp") ? string.Empty : row.Field <string>("shiptogrp");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArstgetlistcriteria(ref DataRow row, Arstgetlistcriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("shiptogrp", entity.shiptogrp);
     row.SetField("userfield", entity.userfield);
 }