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

            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 UpdateRowFromIcwhseproductcopywhses(ref DataRow row, Icwhseproductcopywhses entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }