Exemple #1
0
        public static Ptxsrcustcriteria BuildPtxsrcustcriteriaFromRow(DataRow row)
        {
            Ptxsrcustcriteria entity = new Ptxsrcustcriteria();

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