Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamuusagecriteria(ref DataRow row, Icamuusagecriteria entity)
 {
     row.SetField("secure", entity.secure);
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Icamuusagecriteria BuildIcamuusagecriteriaFromRow(DataRow row)
        {
            Icamuusagecriteria entity = new Icamuusagecriteria();

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