Пример #1
0
        public static Icsabcloadttcriteria BuildIcsabcloadttcriteriaFromRow(DataRow row)
        {
            Icsabcloadttcriteria entity = new Icsabcloadttcriteria();

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