Exemplo n.º 1
0
        public static Icsewloadttcriteria BuildIcsewloadttcriteriaFromRow(DataRow row)
        {
            Icsewloadttcriteria entity = new Icsewloadttcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.whse2     = row.IsNull("whse2") ? string.Empty : row.Field <string>("whse2");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsewloadttcriteria(ref DataRow row, Icsewloadttcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("whse2", entity.whse2);
     row.SetField("userfield", entity.userfield);
 }