Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaesdeletesection(ref DataRow row, Vaesdeletesection entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("warningMessage", entity.warningMessage);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Vaesdeletesection BuildVaesdeletesectionFromRow(DataRow row)
        {
            Vaesdeletesection entity = new Vaesdeletesection();

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