コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEmailforshipnoticecriteria(ref DataRow row, Emailforshipnoticecriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("userfield2", entity.userfield2);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Emailforshipnoticecriteria BuildEmailforshipnoticecriteriaFromRow(DataRow row)
        {
            Emailforshipnoticecriteria entity = new Emailforshipnoticecriteria();

            entity.orderno    = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf   = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.userfield2 = row.IsNull("userfield2") ? string.Empty : row.Field <string>("userfield2");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }