Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcproductfieldcontrols(ref DataRow row, Icproductfieldcontrols entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("noupdtfl", entity.noupdtfl);
     row.SetField("lwhrequiredfl", entity.lwhrequiredfl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Icproductfieldcontrols BuildIcproductfieldcontrolsFromRow(DataRow row)
        {
            Icproductfieldcontrols entity = new Icproductfieldcontrols();

            entity.prod          = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.noupdtfl      = row.Field <bool>("noupdtfl");
            entity.lwhrequiredfl = row.Field <bool>("lwhrequiredfl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }