Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaorderdelete(ref DataRow row, Vaorderdelete entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("ourproc", entity.ourproc);
     row.SetField("securitylvl", entity.securitylvl);
     row.SetField("lostbusreason", entity.lostbusreason);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Vaorderdelete BuildVaorderdeleteFromRow(DataRow row)
        {
            Vaorderdelete entity = new Vaorderdelete();

            entity.vano          = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf         = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.ourproc       = row.IsNull("ourproc") ? string.Empty : row.Field <string>("ourproc");
            entity.securitylvl   = row.IsNull("securitylvl") ? 0 : row.Field <int>("securitylvl");
            entity.lostbusreason = row.IsNull("lostbusreason") ? string.Empty : row.Field <string>("lostbusreason");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }