Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceanmaintretrieveoperation(ref DataRow row, Iceanmaintretrieveoperation entity)
 {
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("operation", entity.operation);
     row.SetField("typecd", entity.typecd);
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Iceanmaintretrieveoperation BuildIceanmaintretrieveoperationFromRow(DataRow row)
        {
            Iceanmaintretrieveoperation entity = new Iceanmaintretrieveoperation();

            entity.jrnlno    = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.operation = row.IsNull("operation") ? string.Empty : row.Field <string>("operation");
            entity.typecd    = row.IsNull("typecd") ? string.Empty : row.Field <string>("typecd");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }