コード例 #1
0
        public static Icipfetchprodcriteria BuildIcipfetchprodcriteriaFromRow(DataRow row)
        {
            Icipfetchprodcriteria entity = new Icipfetchprodcriteria();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            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 UpdateRowFromIcipfetchprodcriteria(ref DataRow row, Icipfetchprodcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }