Example #1
0
        public static Arsosearchcriteria BuildArsosearchcriteriaFromRow(DataRow row)
        {
            Arsosearchcriteria entity = new Arsosearchcriteria();

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