Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArshiptoagingcriteria(ref DataRow row, Arshiptoagingcriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("customfield", entity.customfield);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Arshiptoagingcriteria BuildArshiptoagingcriteriaFromRow(DataRow row)
        {
            Arshiptoagingcriteria entity = new Arshiptoagingcriteria();

            entity.custno      = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.shipto      = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.customfield = row.IsNull("customfield") ? string.Empty : row.Field <string>("customfield");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }