Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasosetupaosecure(ref DataRow row, Sasosetupaosecure entity)
 {
     row.SetField("codeval", entity.codeval);
     row.SetField("descrip", entity.descrip);
     row.SetField("seqno", entity.seqno);
     row.SetField("selectedfl", entity.selectedfl);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Sasosetupaosecure BuildSasosetupaosecureFromRow(DataRow row)
        {
            Sasosetupaosecure entity = new Sasosetupaosecure();

            entity.codeval    = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval");
            entity.descrip    = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.seqno      = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.selectedfl = row.Field <bool>("selectedfl");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }