예제 #1
0
        public static Icipfetchtransdetcriteria BuildIcipfetchtransdetcriteriaFromRow(DataRow row)
        {
            Icipfetchtransdetcriteria entity = new Icipfetchtransdetcriteria();

            entity.icetrowid = row.IsNull("icetrowid") ? string.Empty : row.Field <string>("icetrowid");
            entity.invty     = row.IsNull("invty") ? string.Empty : row.Field <string>("invty");
            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 UpdateRowFromIcipfetchtransdetcriteria(ref DataRow row, Icipfetchtransdetcriteria entity)
 {
     row.SetField("icetrowid", entity.icetrowid);
     row.SetField("invty", entity.invty);
     row.SetField("userfield", entity.userfield);
 }